Commit graph

160 commits

Author SHA1 Message Date
Paul Ramsey 2ac38cfd53 ST_IsValidDetail and ST_IsValidReason POLYGON CRASH (#712)
git-svn-id: http://svn.osgeo.org/postgis/trunk@7491 b70326c6-7e19-0410-871a-916f4a2858ee
2011-06-26 17:31:30 +00:00
Paul Ramsey c5001b2000 Prototype segmentation code and move lwalgorith.h prototypes into liblwgeom.h and liblwgeom_internal.h
git-svn-id: http://svn.osgeo.org/postgis/trunk@7487 b70326c6-7e19-0410-871a-916f4a2858ee
2011-06-25 22:36:51 +00:00
Paul Ramsey 83b6ddaa76 PostGIS Box2D (and && operator) gives wrong result for ST_CircularString type (#578)
git-svn-id: http://svn.osgeo.org/postgis/trunk@7452 b70326c6-7e19-0410-871a-916f4a2858ee
2011-06-23 13:57:16 +00:00
Paul Ramsey c8d72b79fd Bounding box calculation for straight CircString fails (#668)
git-svn-id: http://svn.osgeo.org/postgis/trunk@7416 b70326c6-7e19-0410-871a-916f4a2858ee
2011-06-17 22:18:59 +00:00
Paul Ramsey 70f2e449a0 Fix up selectivity and operators a little
git-svn-id: http://svn.osgeo.org/postgis/trunk@7402 b70326c6-7e19-0410-871a-916f4a2858ee
2011-06-15 23:59:40 +00:00
Paul Ramsey 8f9cd6b90b Add a couple more GBOX functions to map to B2DF4 requirements
git-svn-id: http://svn.osgeo.org/postgis/trunk@7401 b70326c6-7e19-0410-871a-916f4a2858ee
2011-06-15 20:22:13 +00:00
Olivier Courtin 3a2e168d32 First implementation of #459. Still need unit tests and docs
git-svn-id: http://svn.osgeo.org/postgis/trunk@7077 b70326c6-7e19-0410-871a-916f4a2858ee
2011-04-30 22:26:18 +00:00
Regina Obe 09e94a071b missed a spot
git-svn-id: http://svn.osgeo.org/postgis/trunk@7064 b70326c6-7e19-0410-871a-916f4a2858ee
2011-04-25 21:19:38 +00:00
Paul Ramsey 19f60054cb Replace variable-length-key 2D index with fixed-length-key for GSERIALIZED case.
git-svn-id: http://svn.osgeo.org/postgis/trunk@6917 b70326c6-7e19-0410-871a-916f4a2858ee
2011-03-17 13:44:27 +00:00
Sandro Santilli a60b0c7d2e Add LW_GML_SHORTLINE flag to prefer <LineString> over <Curve> tag for lines GML3 output [RT-SIGTA]
git-svn-id: http://svn.osgeo.org/postgis/trunk@6850 b70326c6-7e19-0410-871a-916f4a2858ee
2011-02-22 14:25:15 +00:00
Sandro Santilli 160b531256 Use a single bitfield for GML output options [RT-SIGTA]
git-svn-id: http://svn.osgeo.org/postgis/trunk@6849 b70326c6-7e19-0410-871a-916f4a2858ee
2011-02-22 13:01:07 +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 38efcd4727 Move clone prototypes back into public...
git-svn-id: http://svn.osgeo.org/postgis/trunk@6492 b70326c6-7e19-0410-871a-916f4a2858ee
2010-12-23 18:05:09 +00:00
Paul Ramsey c3e6c0c363 ST_AddPoint is broken (#662)
git-svn-id: http://svn.osgeo.org/postgis/trunk@6491 b70326c6-7e19-0410-871a-916f4a2858ee
2010-12-23 18:03:30 +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 478d697722 Change srid from uint32 to int32 and update gserialized and TYPMOD handlers to deal with signed SRIDs
git-svn-id: http://svn.osgeo.org/postgis/trunk@6480 b70326c6-7e19-0410-871a-916f4a2858ee
2010-12-22 21:16:06 +00:00
Paul Ramsey 20ea0dfbae Continue working GSERIALIZED_ON into the code base. Working on switching BOX2DFLOAT4 to a GBOX
git-svn-id: http://svn.osgeo.org/postgis/trunk@6468 b70326c6-7e19-0410-871a-916f4a2858ee
2010-12-22 01:08:56 +00:00
Paul Ramsey 4a8cccc765 Remove some ST_ variants of cast-support functions (#302), and start legacy.sql.in.c (#722)
git-svn-id: http://svn.osgeo.org/postgis/trunk@6467 b70326c6-7e19-0410-871a-916f4a2858ee
2010-12-21 23:56:23 +00:00
Paul Ramsey 27d02acd29 More clean-up and work on using gserialized.
git-svn-id: http://svn.osgeo.org/postgis/trunk@6463 b70326c6-7e19-0410-871a-916f4a2858ee
2010-12-21 21:39:28 +00:00
Paul Ramsey 079be83c16 ST_Intersection for geography is really messed up (#723)
git-svn-id: http://svn.osgeo.org/postgis/trunk@6453 b70326c6-7e19-0410-871a-916f4a2858ee
2010-12-20 19:16:33 +00:00
Paul Ramsey b01a34f72f Remove a few more old constructions in favour of forward-compatible approaches.
git-svn-id: http://svn.osgeo.org/postgis/trunk@6450 b70326c6-7e19-0410-871a-916f4a2858ee
2010-12-20 04:39:27 +00:00
Paul Ramsey e496d56333 More syncro between geometry and geography. Stubbed index binding.
git-svn-id: http://svn.osgeo.org/postgis/trunk@6441 b70326c6-7e19-0410-871a-916f4a2858ee
2010-12-18 00:38:15 +00:00
Paul Ramsey ebc5208d24 Harmonize some index support functions to be more generic gserialized functions and less specific geography functions.
git-svn-id: http://svn.osgeo.org/postgis/trunk@6438 b70326c6-7e19-0410-871a-916f4a2858ee
2010-12-17 21:32:11 +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 3c9593f96b Add in #defines to allow conditional switch-over to GSERIALIZED
git-svn-id: http://svn.osgeo.org/postgis/trunk@6409 b70326c6-7e19-0410-871a-916f4a2858ee
2010-12-15 21:31:54 +00:00
Paul Ramsey 1ae5b8f68b ptarray_free now frees the serialized_ptlist, unless FLAGS_GET_READONLY is set.
git-svn-id: http://svn.osgeo.org/postgis/trunk@6340 b70326c6-7e19-0410-871a-916f4a2858ee
2010-12-11 00:28:57 +00:00
Paul Ramsey a2dbab5b3f Fix cunit failures on Polyhedral surface (#697)
git-svn-id: http://svn.osgeo.org/postgis/trunk@6333 b70326c6-7e19-0410-871a-916f4a2858ee
2010-12-10 19:10:16 +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 3b0736d940 Rename has_arc to lwgeom_has_arc
git-svn-id: http://svn.osgeo.org/postgis/trunk@6303 b70326c6-7e19-0410-871a-916f4a2858ee
2010-12-08 19:24:08 +00:00
Paul Ramsey b05eea79c6 Rename lwgeom_from_wkt to lwgeom_parse_wkt to note the use of the parser object.
git-svn-id: http://svn.osgeo.org/postgis/trunk@6294 b70326c6-7e19-0410-871a-916f4a2858ee
2010-12-08 00:02:31 +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
Paul Ramsey 4cc4123357 Replace the old WKB/WKT parser and emitters with the new ones.
git-svn-id: http://svn.osgeo.org/postgis/trunk@6291 b70326c6-7e19-0410-871a-916f4a2858ee
2010-12-07 21:08:05 +00:00
Paul Ramsey f15ed06fc5 Updates to the WKT parser to report errlocation in more places.
git-svn-id: http://svn.osgeo.org/postgis/trunk@6275 b70326c6-7e19-0410-871a-916f4a2858ee
2010-12-03 21:38:52 +00:00
Paul Ramsey a1ea60fccf Make use of ptarray api for manipulating serialized_pointlist
git-svn-id: http://svn.osgeo.org/postgis/trunk@6274 b70326c6-7e19-0410-871a-916f4a2858ee
2010-12-03 16:53:33 +00:00
Paul Ramsey e777a7957f Move is_closed fully to liblwgeom and remove LWGEOM_INSPECTED from IsClosed
git-svn-id: http://svn.osgeo.org/postgis/trunk@6265 b70326c6-7e19-0410-871a-916f4a2858ee
2010-12-02 19:09:57 +00:00
Paul Ramsey 49ddf44404 Remove LWGEOM_INSPECTED from pointn, startpoint, endpoint, and migrate functionality to liblwgeom.
git-svn-id: http://svn.osgeo.org/postgis/trunk@6264 b70326c6-7e19-0410-871a-916f4a2858ee
2010-12-02 18:52:26 +00:00
Paul Ramsey 02d051c339 Remove LWGEOM_INSPECTED from ndims
git-svn-id: http://svn.osgeo.org/postgis/trunk@6259 b70326c6-7e19-0410-871a-916f4a2858ee
2010-12-02 17:38:18 +00:00
Paul Ramsey 5d996dd61e Remove LWGEOM_INSPECTED from perimeter calculation
git-svn-id: http://svn.osgeo.org/postgis/trunk@6238 b70326c6-7e19-0410-871a-916f4a2858ee
2010-12-01 20:28:29 +00:00
Paul Ramsey 7e82a76279 Move affine transforms into liblwgeom and expunge LWGEOM_INSPECTED
git-svn-id: http://svn.osgeo.org/postgis/trunk@6220 b70326c6-7e19-0410-871a-916f4a2858ee
2010-12-01 00:53:03 +00:00
Paul Ramsey 5ff93efd20 Move length calculations fully to liblwgeom and remove LWGEOM_INSPECTED
git-svn-id: http://svn.osgeo.org/postgis/trunk@6215 b70326c6-7e19-0410-871a-916f4a2858ee
2010-11-30 22:55:54 +00:00
Paul Ramsey 5e8f733459 Move area calculations fully to liblwgeom and remove LWGEOM_INSPECTED
git-svn-id: http://svn.osgeo.org/postgis/trunk@6214 b70326c6-7e19-0410-871a-916f4a2858ee
2010-11-30 21:54:55 +00:00
Paul Ramsey 4689c034a6 Remove LWGEOM_INSPECTED from AsGML and AsKML
git-svn-id: http://svn.osgeo.org/postgis/trunk@6213 b70326c6-7e19-0410-871a-916f4a2858ee
2010-11-30 21:35:19 +00:00
Paul Ramsey f2ccc4f157 Remove LWGEOM_INSPECTED from AsGeoJSON
git-svn-id: http://svn.osgeo.org/postgis/trunk@6212 b70326c6-7e19-0410-871a-916f4a2858ee
2010-11-30 20:11:13 +00:00
Paul Ramsey 46713307b5 Remove LWGEOM_INSPECTED from AsSVG
git-svn-id: http://svn.osgeo.org/postgis/trunk@6211 b70326c6-7e19-0410-871a-916f4a2858ee
2010-11-30 19:02:11 +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
Paul Ramsey 537e0b0a59 Update geography functions to use the in-build .flags attribute on LWGEOM
git-svn-id: http://svn.osgeo.org/postgis/trunk@6193 b70326c6-7e19-0410-871a-916f4a2858ee
2010-11-23 23:47:44 +00:00
Paul Ramsey 262696c293 Make the ptarray_add_point behavior more explicit.
git-svn-id: http://svn.osgeo.org/postgis/trunk@6190 b70326c6-7e19-0410-871a-916f4a2858ee
2010-11-23 00:44:24 +00:00
Paul Ramsey fa620c46e1 Update force2d to preserve repeated points.
git-svn-id: http://svn.osgeo.org/postgis/trunk@6188 b70326c6-7e19-0410-871a-916f4a2858ee
2010-11-23 00:16:30 +00:00