Commit graph

37 commits

Author SHA1 Message Date
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