Commit graph

49 commits

Author SHA1 Message Date
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 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 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 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 e2a586c10d bug fixes
git-svn-id: http://svn.osgeo.org/postgis/trunk@916 b70326c6-7e19-0410-871a-916f4a2858ee
2004-09-30 16:06:05 +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 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
Sandro Santilli e1ce40dcd9 Changed LWGEOM to PG_LWGEOM.
Changed LWGEOM_construct to PG_LWGEOM_construct.


git-svn-id: http://svn.osgeo.org/postgis/trunk@908 b70326c6-7e19-0410-871a-916f4a2858ee
2004-09-29 06:31:42 +00:00
Sandro Santilli 5b6a7163d6 Removed ^Ms, added note about flatting nature of LWGEOM_EXPLODED.
git-svn-id: http://svn.osgeo.org/postgis/trunk@907 b70326c6-7e19-0410-871a-916f4a2858ee
2004-09-28 17:13:36 +00:00
Sandro Santilli 6c0c071607 Added ptarray_isccw(). Added extern modifiers to public prototypes.
git-svn-id: http://svn.osgeo.org/postgis/trunk@902 b70326c6-7e19-0410-871a-916f4a2858ee
2004-09-28 09:00:33 +00:00
Sandro Santilli 911c2db42f Added some const modifiers
git-svn-id: http://svn.osgeo.org/postgis/trunk@899 b70326c6-7e19-0410-871a-916f4a2858ee
2004-09-28 08:21:42 +00:00
Sandro Santilli 543968d2b7 Added lwpoint_size, lwline_size, lwpoly_size for computing
serialized size from deserialized objects.


git-svn-id: http://svn.osgeo.org/postgis/trunk@881 b70326c6-7e19-0410-871a-916f4a2858ee
2004-09-22 16:52:13 +00:00
Sandro Santilli eb473aed1a Some more source file cleanups.
git-svn-id: http://svn.osgeo.org/postgis/trunk@880 b70326c6-7e19-0410-871a-916f4a2858ee
2004-09-22 16:29:18 +00:00
Sandro Santilli 4c8fa68722 Moved size computation functions in module static scope.
Renamed public one to lwgeom_size(char *).


git-svn-id: http://svn.osgeo.org/postgis/trunk@879 b70326c6-7e19-0410-871a-916f4a2858ee
2004-09-22 16:09:54 +00:00
Sandro Santilli c657a75358 lw<type>_findlength function made statics of lwgeom_api.c.
public functions with those names should accept LW<TYPE> pointers instead..


git-svn-id: http://svn.osgeo.org/postgis/trunk@878 b70326c6-7e19-0410-871a-916f4a2858ee
2004-09-22 15:15:51 +00:00
Sandro Santilli a12153246e fixed a comment
git-svn-id: http://svn.osgeo.org/postgis/trunk@874 b70326c6-7e19-0410-871a-916f4a2858ee
2004-09-22 14:56:33 +00:00
Sandro Santilli 0f687e9f3f Renamed lwgeom_npoints_recursive to lwgeom_npoints and exposed in lwgeom.h.
Changed SERIALIZED_FORM macro to be less LWGEOM structure aware.
Added profiling header file.
Modified profiling calls to include total query time.
Initial profiling support in the mindistance function.


git-svn-id: http://svn.osgeo.org/postgis/trunk@872 b70326c6-7e19-0410-871a-916f4a2858ee
2004-09-22 11:42:45 +00:00
Sandro Santilli 6f27bd99cc Added lwgeom_empy_length(), lwgeom_constructempty_buf(), lwexploded_serialize_buf()
git-svn-id: http://svn.osgeo.org/postgis/trunk@862 b70326c6-7e19-0410-871a-916f4a2858ee
2004-09-21 15:44:53 +00:00
Sandro Santilli 05fad4e009 Added lwexploded_findlength
git-svn-id: http://svn.osgeo.org/postgis/trunk@861 b70326c6-7e19-0410-871a-916f4a2858ee
2004-09-21 10:57:26 +00:00
Sandro Santilli 31b86139f9 Added force_4d(geometry)
git-svn-id: http://svn.osgeo.org/postgis/trunk@855 b70326c6-7e19-0410-871a-916f4a2858ee
2004-09-20 17:03:41 +00:00
Sandro Santilli 1a3493fbf9 Added box3d_to_box2df_p to reduce number of required memcpys
git-svn-id: http://svn.osgeo.org/postgis/trunk@827 b70326c6-7e19-0410-871a-916f4a2858ee
2004-09-16 10:42:08 +00:00
Sandro Santilli ca19a49cf1 Added getbox2d_internal
git-svn-id: http://svn.osgeo.org/postgis/trunk@824 b70326c6-7e19-0410-871a-916f4a2858ee
2004-09-16 09:05:10 +00:00
Sandro Santilli f57cfd6a08 Added segmentize()
git-svn-id: http://svn.osgeo.org/postgis/trunk@785 b70326c6-7e19-0410-871a-916f4a2858ee
2004-09-08 14:19:25 +00:00
Sandro Santilli 5e18b719ee Added CHIP type and support funx
git-svn-id: http://svn.osgeo.org/postgis/trunk@774 b70326c6-7e19-0410-871a-916f4a2858ee
2004-09-07 07:47:38 +00:00
Sandro Santilli 942d477249 updated some comments
git-svn-id: http://svn.osgeo.org/postgis/trunk@773 b70326c6-7e19-0410-871a-916f4a2858ee
2004-09-06 16:18:17 +00:00
Sandro Santilli e45a5556a3 Changed getbox2d_p signature to return 0 for EMPTY geometries.
Ported DP simplifier.


git-svn-id: http://svn.osgeo.org/postgis/trunk@771 b70326c6-7e19-0410-871a-916f4a2858ee
2004-09-06 16:04:13 +00:00
Sandro Santilli e4e7e35a21 Finished BOX3D functions porting.
Added envelope() and extent3d().


git-svn-id: http://svn.osgeo.org/postgis/trunk@769 b70326c6-7e19-0410-871a-916f4a2858ee
2004-09-06 10:37:09 +00:00
Sandro Santilli c50db67ca8 Added box3d support and expand(geom|box2d|box3d, double)
git-svn-id: http://svn.osgeo.org/postgis/trunk@767 b70326c6-7e19-0410-871a-916f4a2858ee
2004-09-06 09:13:13 +00:00
Sandro Santilli 81b81d780a Added LWGEOM_EXPLODED structure definition and utility funx.
Added collector() function and memcollect() aggregate.
Still faulting...


git-svn-id: http://svn.osgeo.org/postgis/trunk@759 b70326c6-7e19-0410-871a-916f4a2858ee
2004-08-27 14:35:26 +00:00
Sandro Santilli dcd4033a2c Added distance(geometry) and all support functions.
git-svn-id: http://svn.osgeo.org/postgis/trunk@752 b70326c6-7e19-0410-871a-916f4a2858ee
2004-08-26 12:55:30 +00:00
Sandro Santilli 85e55d8846 Added spheroid type and functions
git-svn-id: http://svn.osgeo.org/postgis/trunk@750 b70326c6-7e19-0410-871a-916f4a2858ee
2004-08-26 08:57:39 +00:00
Sandro Santilli 55e49cf477 Added macros for LWGEOM.type manipulation
git-svn-id: http://svn.osgeo.org/postgis/trunk@748 b70326c6-7e19-0410-871a-916f4a2858ee
2004-08-25 15:26:24 +00:00
Sandro Santilli 0ce7e4c333 Added serialized functions writing to a pre-allocated buffer.
git-svn-id: http://svn.osgeo.org/postgis/trunk@745 b70326c6-7e19-0410-871a-916f4a2858ee
2004-08-25 12:29:31 +00:00
Sandro Santilli 4f0da9b33c Added LWGEOM_construct() function to easy the work of dealing
with SRID/BBOX optional embedding.


git-svn-id: http://svn.osgeo.org/postgis/trunk@735 b70326c6-7e19-0410-871a-916f4a2858ee
2004-08-24 14:47:25 +00:00
Sandro Santilli d75afce870 fixed a typo in a comment
git-svn-id: http://svn.osgeo.org/postgis/trunk@732 b70326c6-7e19-0410-871a-916f4a2858ee
2004-08-24 13:34:13 +00:00
Sandro Santilli 2a5c9b9880 Added getPoint(POINTARRAY *pts, int ptnum)
git-svn-id: http://svn.osgeo.org/postgis/trunk@718 b70326c6-7e19-0410-871a-916f4a2858ee
2004-08-23 13:38:54 +00:00
Sandro Santilli 870d0f7b15 Removed custom allocator from lwgeom_api.
Added summary(geometry).
Some indentation.


git-svn-id: http://svn.osgeo.org/postgis/trunk@716 b70326c6-7e19-0410-871a-916f4a2858ee
2004-08-23 08:32:14 +00:00
Sandro Santilli 7e26ef63c5 Added Geom{etry,}FromWkb(<geometry>,[<int4>]) funx.
Added LWGEOM typedef and SERIALIZED_FORM(LWGEOM) macro.
Made lwgeom_setSRID an API function.
Added LWGEOM_setAllocator().


git-svn-id: http://svn.osgeo.org/postgis/trunk@710 b70326c6-7e19-0410-871a-916f4a2858ee
2004-08-20 14:08:41 +00:00
Sandro Santilli 331e562e44 fixed some of the buch of broken comments
git-svn-id: http://svn.osgeo.org/postgis/trunk@688 b70326c6-7e19-0410-871a-916f4a2858ee
2004-08-19 09:28:37 +00:00
David Blasby 7f00d8b36d Initial working version - based on Ralph Masons WKT and WKB parser/writer.
git-svn-id: http://svn.osgeo.org/postgis/trunk@508 b70326c6-7e19-0410-871a-916f4a2858ee
2004-04-26 23:05:20 +00:00
David Blasby 9e400d7b67 Changes to make it work with all the PostGIS type.
git-svn-id: http://svn.osgeo.org/postgis/trunk@499 b70326c6-7e19-0410-871a-916f4a2858ee
2004-04-06 22:58:11 +00:00
David Blasby c56c47f81f Added support for 4d coordinates
git-svn-id: http://svn.osgeo.org/postgis/trunk@498 b70326c6-7e19-0410-871a-916f4a2858ee
2004-04-02 19:03:06 +00:00
David Blasby 72d7890d79 Should be working (with a tonne of notices) for points lines and polygons (2d
and 3d)


git-svn-id: http://svn.osgeo.org/postgis/trunk@486 b70326c6-7e19-0410-871a-916f4a2858ee
2004-03-11 00:54:37 +00:00
David Blasby a43dace9d6 WKB reader and WKB writer (totally untested)
git-svn-id: http://svn.osgeo.org/postgis/trunk@482 b70326c6-7e19-0410-871a-916f4a2858ee
2004-03-10 01:15:06 +00:00
David Blasby 042f7cd031 Initial implementation - should compile; not at all tested.
git-svn-id: http://svn.osgeo.org/postgis/trunk@481 b70326c6-7e19-0410-871a-916f4a2858ee
2004-03-09 17:29:52 +00:00
David Blasby aed7a5d2d3 Same as the one in the above directory
git-svn-id: http://svn.osgeo.org/postgis/trunk@470 b70326c6-7e19-0410-871a-916f4a2858ee
2004-03-05 18:23:47 +00:00