Commit graph

31 commits

Author SHA1 Message Date
Sandro Santilli 349acb6d7c Renamed max/min/avg macros to LW_MAX, LW_MIN, LW_AVG.
git-svn-id: http://svn.osgeo.org/postgis/trunk@1081 b70326c6-7e19-0410-871a-916f4a2858ee
2004-11-04 11:40:08 +00:00
Sandro Santilli 221f5327fe Fixed "compat.h" include to be local.
git-svn-id: http://svn.osgeo.org/postgis/trunk@1078 b70326c6-7e19-0410-871a-916f4a2858ee
2004-11-02 17:53:06 +00:00
Sandro Santilli e72eae5a31 Added a copy of GNU vsprintf.c file and compiled in.
git-svn-id: http://svn.osgeo.org/postgis/trunk@1077 b70326c6-7e19-0410-871a-916f4a2858ee
2004-11-02 16:48:54 +00:00
Sandro Santilli 4b167be8f6 min/max macro made available regardless of MINGW32 define.
git-svn-id: http://svn.osgeo.org/postgis/trunk@1076 b70326c6-7e19-0410-871a-916f4a2858ee
2004-11-02 15:59:10 +00:00
Sandro Santilli 4c2a5c676a Added AddPoint(line, point, [position]) and support API functions.
git-svn-id: http://svn.osgeo.org/postgis/trunk@1059 b70326c6-7e19-0410-871a-916f4a2858ee
2004-10-28 09:00:11 +00:00
Sandro Santilli 2f9b40db22 Obsoleted getbox2d(). Use getbox2d_p() or getbox2d_internal() instead.
git-svn-id: http://svn.osgeo.org/postgis/trunk@1041 b70326c6-7e19-0410-871a-916f4a2858ee
2004-10-25 17:07:09 +00:00
Sandro Santilli c69644c1c6 makeline_from_multipoint() implemented and exposed.
git-svn-id: http://svn.osgeo.org/postgis/trunk@1017 b70326c6-7e19-0410-871a-916f4a2858ee
2004-10-15 16:21:33 +00:00
Sandro Santilli e604af53ea Added makeline() aggregate and make_lwline() API method.
git-svn-id: http://svn.osgeo.org/postgis/trunk@1008 b70326c6-7e19-0410-871a-916f4a2858ee
2004-10-15 11:42:36 +00:00
Sandro Santilli 57bf5a303f Added a trailing zeros trimmer
git-svn-id: http://svn.osgeo.org/postgis/trunk@1005 b70326c6-7e19-0410-871a-916f4a2858ee
2004-10-15 09:41:01 +00:00
Sandro Santilli c6284886d0 Added point constructors PG funx.
git-svn-id: http://svn.osgeo.org/postgis/trunk@990 b70326c6-7e19-0410-871a-916f4a2858ee
2004-10-13 15:19:10 +00:00
Sandro Santilli 53559edffe Added simpler lwpoint constructors.
git-svn-id: http://svn.osgeo.org/postgis/trunk@989 b70326c6-7e19-0410-871a-916f4a2858ee
2004-10-13 14:26:36 +00:00
Sandro Santilli 98df5600a6 Added endiannes specification to unparse_WKB, AsBinary, lwgeom_to_wkb.
git-svn-id: http://svn.osgeo.org/postgis/trunk@984 b70326c6-7e19-0410-871a-916f4a2858ee
2004-10-11 14:03:33 +00:00
Sandro Santilli f8afcfa025 Added lwgeom_addBBOX() and lwcollection_construct_empty()
git-svn-id: http://svn.osgeo.org/postgis/trunk@975 b70326c6-7e19-0410-871a-916f4a2858ee
2004-10-11 09:32:44 +00:00
Sandro Santilli 163159d776 lwgeom_same new implementation
git-svn-id: http://svn.osgeo.org/postgis/trunk@974 b70326c6-7e19-0410-871a-916f4a2858ee
2004-10-11 07:15:20 +00:00
Sandro Santilli 0a753c3513 segmentize2d() port and use of new LWGEOM structure.
git-svn-id: http://svn.osgeo.org/postgis/trunk@972 b70326c6-7e19-0410-871a-916f4a2858ee
2004-10-10 20:31:23 +00:00
Sandro Santilli b6bd129246 Changed LWGEOM structure to point to an actual BOX2DFLOAT4.
Renamed most function to reflect a TYPE_method naming convention.
(you'll need a dump/reload for it to work)
Added more manipulation functions.


git-svn-id: http://svn.osgeo.org/postgis/trunk@967 b70326c6-7e19-0410-871a-916f4a2858ee
2004-10-08 13:20:55 +00:00
Sandro Santilli b2ea45f8d6 Changed ptarray2d_construct interface.
git-svn-id: http://svn.osgeo.org/postgis/trunk@955 b70326c6-7e19-0410-871a-916f4a2858ee
2004-10-07 17:18:50 +00:00
Sandro Santilli 1449cae461 API cleanup, more steps toward standalone library.
git-svn-id: http://svn.osgeo.org/postgis/trunk@951 b70326c6-7e19-0410-871a-916f4a2858ee
2004-10-07 10:03:23 +00:00
Sandro Santilli bafc0eea3c Added debugging lines, fixed a bug in TYPE_HASSRID and TYPE_HASBBOX macros.
git-svn-id: http://svn.osgeo.org/postgis/trunk@932 b70326c6-7e19-0410-871a-916f4a2858ee
2004-10-05 21:08:38 +00:00
Sandro Santilli 956920e4bc Bug fix in size computation.
git-svn-id: http://svn.osgeo.org/postgis/trunk@930 b70326c6-7e19-0410-871a-916f4a2858ee
2004-10-05 17:15:42 +00:00
Sandro Santilli be428ac347 Added ZM dimensions flags knowledge.
git-svn-id: http://svn.osgeo.org/postgis/trunk@929 b70326c6-7e19-0410-871a-916f4a2858ee
2004-10-05 16:28:34 +00:00
Sandro Santilli c434604554 ZM aware WKT/WKB input/output.
git-svn-id: http://svn.osgeo.org/postgis/trunk@924 b70326c6-7e19-0410-871a-916f4a2858ee
2004-10-05 07:53:02 +00:00
Sandro Santilli d745e459b8 Serialized form and WKB prepared to accept ZM flags replacing DD (dimensions)
git-svn-id: http://svn.osgeo.org/postgis/trunk@923 b70326c6-7e19-0410-871a-916f4a2858ee
2004-10-04 13:53:42 +00:00
Sandro Santilli c304b64232 Made GEOS<->LWGEOM converters keep geometry structures.
Fixed bug in serializers.
Added noop(geometry) for deserialize/serialize debugging.


git-svn-id: http://svn.osgeo.org/postgis/trunk@920 b70326c6-7e19-0410-871a-916f4a2858ee
2004-10-03 15:52:23 +00:00
Sandro Santilli 6550aaeed2 Added lwgeom_add(LWGEOM *to, int where, LWGEOM *what).
Added LWGEOM2GEOS keeping input geometry structure.


git-svn-id: http://svn.osgeo.org/postgis/trunk@919 b70326c6-7e19-0410-871a-916f4a2858ee
2004-10-01 14:49:34 +00:00
Sandro Santilli cf7dc0a2a6 Added runtime cast functions.
git-svn-id: http://svn.osgeo.org/postgis/trunk@917 b70326c6-7e19-0410-871a-916f4a2858ee
2004-10-01 07:51:00 +00:00
Sandro Santilli f3e6e82ff3 Added BBOX finders and its support in serializer.
git-svn-id: http://svn.osgeo.org/postgis/trunk@915 b70326c6-7e19-0410-871a-916f4a2858ee
2004-09-30 15:42:28 +00:00
Sandro Santilli 2a346e2d9a More common flags between LW<type>s.
LWGEOM_summary output made cleaner and moved to lwgeom_debug.c


git-svn-id: http://svn.osgeo.org/postgis/trunk@913 b70326c6-7e19-0410-871a-916f4a2858ee
2004-09-30 11:45:40 +00:00
Sandro Santilli 406c2623b7 Added missing liblwgeom.c file.
Made LWMPOINT, LWMLINE, LWMPOLY compatible with LWCOLLECTION.
Fixed reverse() and forcerhr() to maintain geometry structure.


git-svn-id: http://svn.osgeo.org/postgis/trunk@912 b70326c6-7e19-0410-871a-916f4a2858ee
2004-09-30 08:18:06 +00:00
Sandro Santilli 271ff4b266 Added serialize function for LWGEOM
git-svn-id: http://svn.osgeo.org/postgis/trunk@910 b70326c6-7e19-0410-871a-916f4a2858ee
2004-09-29 15:25:21 +00:00
Sandro Santilli 904c0d5652 Big layout change.
lwgeom.h is public API
liblwgeom.h is private header
lwgeom_pg.h is for PG-links
lw<type>.c contains type-specific functions


git-svn-id: http://svn.osgeo.org/postgis/trunk@909 b70326c6-7e19-0410-871a-916f4a2858ee
2004-09-29 10:50:30 +00:00