aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/geo_ops.c
Commit message (Collapse)AuthorAge
...
* Change elog(WARN) to elog(ERROR) and elog(ABORT).Bruce Momjian1998-01-05
|
* Disable checking for zero or one points with deeper parens on input.Thomas G. Lockhart1997-09-25
| | | | Polygon input would not accept single-point polygon output and dump.
* Add point_ne() function.Thomas G. Lockhart1997-09-20
| | | | Fix up tabbing of most function declarations.
* Inline memset() as MemSet().Bruce Momjian1997-09-18
|
* Used modified version of indent that understands over 100 typedefs.Bruce Momjian1997-09-08
|
* Add typdefs to pgindent run.Bruce Momjian1997-09-08
|
* Another PGINDENT run that changes variable indenting and case label ↵Bruce Momjian1997-09-08
| | | | indenting. Also static variable indenting.
* Massive commit to run PGINDENT on all *.c and *.h files.Bruce Momjian1997-09-07
|
* Cleanups needed for indent.Bruce Momjian1997-09-05
|
* Cleanups needed for indent.Bruce Momjian1997-09-05
|
* Cleanups needed for indent. Remove };Bruce Momjian1997-09-05
|
* Change time function names to be more consistent, and check for zero ↵Bruce Momjian1997-08-21
| | | | divides, from Michael Reifenberg.
* Make functions static where possible, enclose unused functions in #ifdef ↵Bruce Momjian1997-08-19
| | | | NOT_USED.
* Remove more (void) and fix -Wall warnings.Bruce Momjian1997-08-12
|
* Remove #ifdef'd support for old i/o styles.Thomas G. Lockhart1997-07-29
| | | | | | | | | | | | | | Change box terminology from "length" to "width". Use length terminology in common with other geometric types (usually perimeter). Fix bugs in line arithmetic which resulted in bad intersection calculations. Deprecate temporary unstored slope fields. Check explicitly for intersections at endpoints to avoid rounding ugliness. Add center() routines for lseg, path, polygon. Add distance() routines for circle-polygon, polygon-polygon. Check explicitly for points and polygons contained within polygons using an axis-crossing algorithm. (Old code just checked bounding boxes). Add routine to convert circle-box. *whew*
* Add upgradepath(), isoldpath(), upgradepoly() and revertpoly() to allowThomas G. Lockhart1997-06-03
| | | | | migration from pre-v6.1 geometric data types. Only allow new input syntax for paths and polygons.
* Put back old lines.Bruce Momjian1997-06-01
|
* Cleanup for AIX from Darren.Bruce Momjian1997-06-01
|
* Clean up redundant tests for valid pointers in geometric types.Thomas G. Lockhart1997-05-23
| | | | Fix up decoder field masks for timespan and reltime.
* From: Darren King <aixssd!darrenk@abs.net>Marc G. Fournier1997-05-22
| | | | | | | | | | Subject: [PATCHES] Re: [PORTS] AIX 6.1 fixes... Here are the patches for the two things that wouldn't make it thru the AIX compiler. The geo_ops.c change is harmless I believe. The nbtcompare.c patch fixes me, but I don't know about any other ports. Maybe wait on that one until Vadim decides what to do about the unsigned vs signed chars varlena issue.
* From: Olaf Mittelstaedt <MSTAEDT@va-sigi.va.fh-ulm.de>Marc G. Fournier1997-05-19
| | | | Minor patches to geo_ops.c to clean up compile under AIX 4.1.3
* Fix timezone manipulation code to avoid crashes on some machines.Thomas G. Lockhart1997-05-11
| | | | | | | Add type conversion functions for floating point numbers. Check for zero in unary minus floating point code (IEEE allows an explicit negative zero which looks ugly in a query result!). Ensure circle type has non-negative radius.
* Remove valid pointer checks for returns from palloc() since palloc() will notThomas G. Lockhart1997-05-06
| | | | return if storage is not allocated. Ref: Vadim 97/05/01
* More timezone patches by Thomas:Marc G. Fournier1997-04-25
| | | | | | | | | Here are patches which should help fix timezone problems in the datetime and abstime code. Also, I repatched varlena.c to add in some comments and a little error checking on top of Vadim's earlier repairs. There are slight mods to the circle data type to have the distance operator between circles measure the distance between closest points rather than between centers.
* Major patch from Thomas Lockhart <Thomas.G.Lockhart@jpl.nasa.gov>Marc G. Fournier1997-04-22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | OK, here are a passel of patches for the geometric data types. These add a "circle" data type, new operators and functions for the existing data types, and change the default formats for some of the existing types to make them consistant with each other. Current formatting conventions (e.g. compatible with v6.0 to allow dump/reload) are supported, but the new conventions should be an improvement and we can eventually drop the old conventions entirely. For example, there are two kinds of paths (connected line segments), open and closed, and the old format was '(1,2,1,2,3,4)' for a closed path with two points (1,2) and (3,4) '(0,2,1,2,3,4)' for an open path with two points (1,2) and (3,4) Pretty arcane, huh? The new format for paths is '((1,2),(3,4))' for a closed path with two points (1,2) and (3,4) '[(1,2),(3,4)]' for an open path with two points (1,2) and (3,4) For polygons, the old convention is '(0,4,2,0,4,3)' for a triangle with points at (0,0),(4,4), and (2,3) and the new convention is '((0,0),(4,4),(2,3))' for a triangle with points at (0,0),(4,4), and (2,3) Other data types which are also represented as lists of points (e.g. boxes, line segments, and polygons) have similar representations (they surround each point with parens). For v6.1, any format which can be interpreted as the old style format is decoded as such; we can remove that backwards compatibility but ugly convention for v7.0. This will allow dump/reloads from v6.0. These include some updates to the regression test files to change the test for creating a data type from "circle" to "widget" to keep the test from trashing the new builtin circle type.
* Date/Time updates from Thomas...Marc G. Fournier1997-03-14
|
* Add prototypes for oracle-compat functions. Rename geo-*.c adt to geo_*.cBruce Momjian1997-03-09