Commit graph

56 commits

Author SHA1 Message Date
Paul Ramsey acc2cfbad5 Interim progress on LRS work.
git-svn-id: http://svn.osgeo.org/postgis/trunk@8726 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-09 18:27:30 +00:00
Sandro Santilli 50593de781 Improve robustness of ptarray_isccw (see #1302)
git-svn-id: http://svn.osgeo.org/postgis/trunk@8198 b70326c6-7e19-0410-871a-916f4a2858ee
2011-11-21 08:08:18 +00:00
Paul Ramsey 8b18d8006f Composite geometries end up with nested BBOX caches (#1254)
git-svn-id: http://svn.osgeo.org/postgis/trunk@8078 b70326c6-7e19-0410-871a-916f4a2858ee
2011-11-02 04:28:05 +00:00
Paul Ramsey 829e2b017f Make st_summary at least return consistent results (#1254)
git-svn-id: http://svn.osgeo.org/postgis/trunk@8076 b70326c6-7e19-0410-871a-916f4a2858ee
2011-11-01 17:59:00 +00:00
Paul Ramsey 93087d39dc Remove some duplicate headers (much of this to be done...)
git-svn-id: http://svn.osgeo.org/postgis/trunk@8053 b70326c6-7e19-0410-871a-916f4a2858ee
2011-10-30 20:57:56 +00:00
Paul Ramsey dbcd82cb6b Remove orphaned box3d and box2dfloat4 utility functions
git-svn-id: http://svn.osgeo.org/postgis/trunk@8030 b70326c6-7e19-0410-871a-916f4a2858ee
2011-10-28 17:52:58 +00:00
Paul Ramsey 07f2341e38 Ensure calls to lwgeom->type use type of uint8_t
git-svn-id: http://svn.osgeo.org/postgis/trunk@8027 b70326c6-7e19-0410-871a-916f4a2858ee
2011-10-28 17:01:02 +00:00
Paul Ramsey 5fb082d9b2 Remove old 8-bit type utility functions.
git-svn-id: http://svn.osgeo.org/postgis/trunk@8025 b70326c6-7e19-0410-871a-916f4a2858ee
2011-10-27 23:02:03 +00:00
Paul Ramsey 912a2ca7db Remove serialized_form functions:
lwpoint_serialize_size
lwpoint_serialize
lwpoint_serialize_buf
lwline_serialize_size
lwline_serialize
lwline_serialize_buf
lwpoly_serialize_size
lwpoly_serialize
lwpoly_serialize_buf
lwtriangle_serialize_size
lwtriangle_serialize
lwtriangle_serialize_buf
lwcircstring_serialize_size
lwcircstring_serialize
lwcircstring_serialize_buf
lwcollection_serialize_size
lwcollection_serialize_buf
lwgeom_constructempty
lwgeom_constructempty_buf
lwgeom_empty_length
lwgeom_serialize_size
lwgeom_serialize
lwgeom_serialized_construct
lwgeom_getsrid



git-svn-id: http://svn.osgeo.org/postgis/trunk@8023 b70326c6-7e19-0410-871a-916f4a2858ee
2011-10-27 21:03:00 +00:00
Paul Ramsey ec2726d627 Remove printBYTES
git-svn-id: http://svn.osgeo.org/postgis/trunk@8022 b70326c6-7e19-0410-871a-916f4a2858ee
2011-10-27 20:52:02 +00:00
Paul Ramsey fef5fe43bb Complete removal of LWGEOM_INSPECTED
git-svn-id: http://svn.osgeo.org/postgis/trunk@8020 b70326c6-7e19-0410-871a-916f4a2858ee
2011-10-27 20:14:46 +00:00
Paul Ramsey 62203821fa Remove old deserialze and inspected functions.
serialized_lwgeom_size
lwgeom_size_subgeom
lwgeom_size_point
lwgeom_size_line
lwgeom_size_circstring
lwgeom_size_poly
lwgeom_size_triangle
lwgeom_deserialize
lwpoint_deserialize
lwline_deserialize
lwpoly_deserialize
lwtriangle_deserialize
lwcircstring_deserialize
lwmpoint_deserialize
lwmline_deserialize
lwmpoly_deserialize
lwcollection_deserialize
lwcompound_deserialize
lwcurvepoly_deserialize
lwmcurve_deserialize
lwmsurface_deserialize
lwpsurface_deserialize
lwtin_deserialize
printMULTI
lwgeom_inspect
lwgeom_getpoint_inspected
lwgeom_getpoint
lwgeom_getline_inspected
lwgeom_getline
lwgeom_getpoly
lwgeom_getpoly_inspected
lwgeom_gettriangle
lwgeom_gettriangle_inspected
lwgeom_getcircstring_inspected
lwgeom_getgeom_inspected
lwgeom_getsubgeometry
lwgeom_getsubgeometry_inspected
lwgeom_getsubtype
lwgeom_getsubtype_inspected
lwgeom_getnumgeometries
lwgeom_getnumgeometries_inspected




git-svn-id: http://svn.osgeo.org/postgis/trunk@8018 b70326c6-7e19-0410-871a-916f4a2858ee
2011-10-27 20:05:32 +00:00
Paul Ramsey 74a5cb5d6a Remove compute_serialized_box3d
git-svn-id: http://svn.osgeo.org/postgis/trunk@8017 b70326c6-7e19-0410-871a-916f4a2858ee
2011-10-27 19:23:19 +00:00
Paul Ramsey 9ed058b80b Remove more orphaned box2d support functions
git-svn-id: http://svn.osgeo.org/postgis/trunk@8007 b70326c6-7e19-0410-871a-916f4a2858ee
2011-10-26 22:58:21 +00:00
Sandro Santilli 809ae790e4 Move LWDEBUG macros in a new lwgeom_log.h header file (see #1220)
Update all implementation files accordingly.
Fix some misuses out of liblwgeom.
Add missing copyright notices in a few files.

git-svn-id: http://svn.osgeo.org/postgis/trunk@7907 b70326c6-7e19-0410-871a-916f4a2858ee
2011-09-28 10:05:36 +00:00
Sandro Santilli b131652f6c Drop (u)int32 and uchar in favor of C99 standard int types [RT-SIGTA]
This commit drops PostgreSQL references in liblwgeom.h (C_H define)
and hopefully reduces the noise generated by custom symbols.

git-svn-id: http://svn.osgeo.org/postgis/trunk@7761 b70326c6-7e19-0410-871a-916f4a2858ee
2011-08-19 09:34:58 +00:00
Paul Ramsey 60b4daef28 Remove old WKB/WKT parsers and generators and switch all internal references remaining (mostly in cunit) over to the new implementations.
git-svn-id: http://svn.osgeo.org/postgis/trunk@7721 b70326c6-7e19-0410-871a-916f4a2858ee
2011-08-10 22:28:05 +00:00
Regina Obe 479db05fc1 #923: document fix
git-svn-id: http://svn.osgeo.org/postgis/trunk@7063 b70326c6-7e19-0410-871a-916f4a2858ee
2011-04-25 21:18:15 +00:00
Paul Ramsey 1e2f558d94 ST_MakeLine aggregate function crashes with empty geometries (#729)
git-svn-id: http://svn.osgeo.org/postgis/trunk@6515 b70326c6-7e19-0410-871a-916f4a2858ee
2010-12-27 22:41:57 +00:00
Paul Ramsey 973594a967 Last regression fixes for postgis-on-gserialized
git-svn-id: http://svn.osgeo.org/postgis/trunk@6481 b70326c6-7e19-0410-871a-916f4a2858ee
2010-12-22 22:40:58 +00:00
Paul Ramsey fd6d759590 Re-orgs to push the geodetic/cartesian divide a little further under the covers as part of the geometry/geography group hug at the index bindings level.
git-svn-id: http://svn.osgeo.org/postgis/trunk@6437 b70326c6-7e19-0410-871a-916f4a2858ee
2010-12-17 20:10:36 +00:00
Paul Ramsey c5c1ffbe5f Fix up failure in distance calculation (#705) and replace some SRID -1 with SRID_UNKNOWN
git-svn-id: http://svn.osgeo.org/postgis/trunk@6349 b70326c6-7e19-0410-871a-916f4a2858ee
2010-12-13 19:25:15 +00:00
Paul Ramsey b29ea47814 Remove more appeals to pglwgeom->type
git-svn-id: http://svn.osgeo.org/postgis/trunk@6314 b70326c6-7e19-0410-871a-916f4a2858ee
2010-12-08 23:40:38 +00:00
Paul Ramsey 52e0ea43d8 Remove many cases of calls to SERIALIZED_FORM in favour of direct pglwgeom deserialization
git-svn-id: http://svn.osgeo.org/postgis/trunk@6311 b70326c6-7e19-0410-871a-916f4a2858ee
2010-12-08 23:27:37 +00:00
Paul Ramsey 77b08404a5 Start flipping over references to srid = -1 to srid = SRID_UNKNOWN
git-svn-id: http://svn.osgeo.org/postgis/trunk@6293 b70326c6-7e19-0410-871a-916f4a2858ee
2010-12-07 21:59:54 +00:00
Olivier Courtin 586c389dc8 Change POINTARRAY.dims to POINTARRAY.flags. Related to #658
git-svn-id: http://svn.osgeo.org/postgis/trunk@6205 b70326c6-7e19-0410-871a-916f4a2858ee
2010-11-25 18:38:20 +00:00
Olivier Courtin df80a93181 Change SRID to srid in LWGEOM struct (and also in CHIP too). Rename some functions related to SRID from Camel notation to lower case: errorIfSRIDMismatch, pglwgeom_getSRID, pglwgeom_setSRID, LWGEOM_getSRID, LWGEOM_setSRID, hasSRID. Related to #658
git-svn-id: http://svn.osgeo.org/postgis/trunk@6204 b70326c6-7e19-0410-871a-916f4a2858ee
2010-11-25 17:34:21 +00:00
Olivier Courtin 931390d022 #658 part 1. Enhance LWGEOM struct (type, flags and GBOX) and related functions call.
git-svn-id: http://svn.osgeo.org/postgis/trunk@6180 b70326c6-7e19-0410-871a-916f4a2858ee
2010-11-21 19:02:23 +00:00
Paul Ramsey 4afb908dba An argument for git. This massive commit includes the renaming of function in the ptarray API, the removal of some pointArray_* variants in favor of ptarray_* variants, and, importantly, the adition of _append_point and _insert_point options for pointarrays. Functions have been switched over to using the API instead of managing the serialized_pointlist themselves. This has necessitated the re-writing of some functions. Simplify2d and Force2d have been re-written as lwgeom functions instead of serialized form functions, and moved into liblwgeom. There are still some major functions to move into liblwgeom, including the point_in_polygon functions that support the intersects shortcuts and the linear referencing fuctions in lwgeom_functions_analytic.
git-svn-id: http://svn.osgeo.org/postgis/trunk@6175 b70326c6-7e19-0410-871a-916f4a2858ee
2010-11-18 05:28:19 +00:00
Paul Ramsey e7c8b8f73d Change pointArray_construct() to ptarray_construct_reference_data()
git-svn-id: http://svn.osgeo.org/postgis/trunk@6170 b70326c6-7e19-0410-871a-916f4a2858ee
2010-11-04 23:21:06 +00:00
Paul Ramsey 0bb9c409dd Flip all the internal liblwgeom files over to use liblwgeom_internal.h
git-svn-id: http://svn.osgeo.org/postgis/trunk@6160 b70326c6-7e19-0410-871a-916f4a2858ee
2010-11-01 01:28:12 +00:00
Paul Ramsey c43e90b80e Remove a pair of unused functions.
git-svn-id: http://svn.osgeo.org/postgis/trunk@6158 b70326c6-7e19-0410-871a-916f4a2858ee
2010-10-31 03:19:58 +00:00
Olivier Courtin 5672203c88 add Triangle support in lwgeom_getnumgeometries
git-svn-id: http://svn.osgeo.org/postgis/trunk@5872 b70326c6-7e19-0410-871a-916f4a2858ee
2010-08-30 06:45:30 +00:00
Olivier Courtin 5c95d679f2 Add forgotten Triangle support in lwgeom_inspect
git-svn-id: http://svn.osgeo.org/postgis/trunk@5829 b70326c6-7e19-0410-871a-916f4a2858ee
2010-08-15 18:51:41 +00:00
Olivier Courtin 8fea23dce8 Add Triangle and TIN new geometry type. Add Cunit tests on parse stage, related to #561. Add ST_AsGML support TIN and Triangle for GML 3. Slightly cast change in PolyhedralSurface LWGEOM struct Remove PolyhedralSurface support from forceRHR function as orientation is meaningfull in PS. Move is_closed functions from PostGIS to LWGEOM dir and related cunit test case on line and curves.
git-svn-id: http://svn.osgeo.org/postgis/trunk@5821 b70326c6-7e19-0410-871a-916f4a2858ee
2010-08-13 17:29:29 +00:00
Olivier Courtin 88f836eed2 Add really basic POLYHEDRALSURFACE support. Parse, Unparse, Serialization and cunit unit tests. related to #427
git-svn-id: http://svn.osgeo.org/postgis/trunk@5753 b70326c6-7e19-0410-871a-916f4a2858ee
2010-07-25 21:20:09 +00:00
Paul Ramsey 1ca9049cde Some function renaming: lwgeom_typename => lwtype_name. The internal float/up/down functions get slightly better names. Make collection types re-sizable: added maxgeoms to all collections, and created lwcollection_add_lwgeom() function. Remove all *_add functions. Revized homogenize function to use the new _add_lwgeom and variants.
git-svn-id: http://svn.osgeo.org/postgis/trunk@5439 b70326c6-7e19-0410-871a-916f4a2858ee
2010-03-16 03:13:33 +00:00
Olivier Courtin 049a0e262a make astyle session
git-svn-id: http://svn.osgeo.org/postgis/trunk@5274 b70326c6-7e19-0410-871a-916f4a2858ee
2010-02-21 12:36:27 +00:00
Paul Ramsey 8cabdcf81f 1.5 astyle pass
git-svn-id: http://svn.osgeo.org/postgis/trunk@5181 b70326c6-7e19-0410-871a-916f4a2858ee
2010-02-01 17:35:55 +00:00
Regina Obe 089c55720d fix commenting style so function descriptions are picked up by doxygen
git-svn-id: http://svn.osgeo.org/postgis/trunk@4210 b70326c6-7e19-0410-871a-916f4a2858ee
2009-06-25 03:03:42 +00:00
Paul Ramsey cfb44a749f astyle --style=ansi --indent=tab (#133)
git-svn-id: http://svn.osgeo.org/postgis/trunk@4168 b70326c6-7e19-0410-871a-916f4a2858ee
2009-06-11 16:44:03 +00:00
Paul Ramsey 254e6bdcbb Fix goof in box2d computation.
git-svn-id: http://svn.osgeo.org/postgis/trunk@3809 b70326c6-7e19-0410-871a-916f4a2858ee
2009-03-08 21:41:23 +00:00
Paul Ramsey 919bac6d62 Fix for GBT #116, EMPTY hex polygon no longer causes crash.
git-svn-id: http://svn.osgeo.org/postgis/trunk@3803 b70326c6-7e19-0410-871a-916f4a2858ee
2009-03-08 15:37:27 +00:00
Sandro Santilli 5c20f8b020 Fix parse_hex to support lower-case A-F too (issue 120)
git-svn-id: http://svn.osgeo.org/postgis/trunk@3762 b70326c6-7e19-0410-871a-916f4a2858ee
2009-02-23 15:19:37 +00:00
Mark Cave-Ayland 862fd30292 Rearrange liblwgeom.h as per Paul's comment on GBT#97: Rename LWCURVE to LWCIRCSTRING. Also rename lwfree_circstring() to lwcircstring_free() so that it matches the others (I guess this was missed in the first pass).
git-svn-id: http://svn.osgeo.org/postgis/trunk@3521 b70326c6-7e19-0410-871a-916f4a2858ee
2009-01-13 12:59:03 +00:00
Mark Cave-Ayland ce6b5889c8 Commit for GBT#97: Rename LWCURVE to LWCIRCSTRING (also know as restoring balance to the universe).
Having gone through and re-read sections of the CIRCULARSTRING code, it is amazing how much easier the code is to read without the confusion of a curve being either a CIRCULARSTRING or LINESTRING as per the SQL-MM spec. The resulting commit compiles & installs cleanly for me, passes "make check" and also Regina's torture script. Please let me know if I accidentally broke anything :)


git-svn-id: http://svn.osgeo.org/postgis/trunk@3520 b70326c6-7e19-0410-871a-916f4a2858ee
2009-01-13 12:27:39 +00:00
Paul Ramsey 8fe9ec35db Rename lwfree_inspected to lwinspected_release, per it's "shallow free" behavior.
git-svn-id: http://svn.osgeo.org/postgis/trunk@3511 b70326c6-7e19-0410-871a-916f4a2858ee
2009-01-09 19:17:03 +00:00
Paul Ramsey 6744f68423 Rename lwfree_* to *_free.
git-svn-id: http://svn.osgeo.org/postgis/trunk@3510 b70326c6-7e19-0410-871a-916f4a2858ee
2009-01-09 17:41:23 +00:00
Paul Ramsey 825548243f Alter lwfree_* to deep-free memory. Add variants of *_release to support shallow-free. Go through lwgeom/ and replace any lwfree_* instances with *_release where appropriate. (Surprisingly few.)
git-svn-id: http://svn.osgeo.org/postgis/trunk@3502 b70326c6-7e19-0410-871a-916f4a2858ee
2009-01-08 17:04:00 +00:00
Paul Ramsey 761363721f Fix based on test case from MAC.
git-svn-id: http://svn.osgeo.org/postgis/trunk@3482 b70326c6-7e19-0410-871a-916f4a2858ee
2009-01-01 00:31:47 +00:00