Commit graph

586 commits

Author SHA1 Message Date
Sandro Santilli 45eb72154c properly release lwgeom objec in test_misc_area
git-svn-id: http://svn.osgeo.org/postgis/trunk@7598 b70326c6-7e19-0410-871a-916f4a2858ee
2011-07-06 06:46:38 +00:00
Paul Ramsey c2f26121cb Remove leak in mixed time ptarray case (#1102)
git-svn-id: http://svn.osgeo.org/postgis/trunk@7593 b70326c6-7e19-0410-871a-916f4a2858ee
2011-07-05 22:02:40 +00:00
Sandro Santilli 16548d95d2 Plug some more easy leaks in testers
git-svn-id: http://svn.osgeo.org/postgis/trunk@7592 b70326c6-7e19-0410-871a-916f4a2858ee
2011-07-05 21:01:18 +00:00
Paul Ramsey 82a6e8ce26 Stop up small but universal leak. (#1102)
git-svn-id: http://svn.osgeo.org/postgis/trunk@7591 b70326c6-7e19-0410-871a-916f4a2858ee
2011-07-05 20:21:32 +00:00
Sandro Santilli 44e792e1b7 Fix memory leak while computing box3d for nested geometrycollection (revealed by test in cu_geodetic.c)
git-svn-id: http://svn.osgeo.org/postgis/trunk@7590 b70326c6-7e19-0410-871a-916f4a2858ee
2011-07-05 18:55:11 +00:00
Sandro Santilli 00c941704d Properly release memory allocated by tester
git-svn-id: http://svn.osgeo.org/postgis/trunk@7589 b70326c6-7e19-0410-871a-916f4a2858ee
2011-07-05 18:41:18 +00:00
Paul Ramsey 45db0c6bf6 Remove memory leaks when a parse error kicks out in WKT (#1102)
git-svn-id: http://svn.osgeo.org/postgis/trunk@7587 b70326c6-7e19-0410-871a-916f4a2858ee
2011-07-04 22:51:37 +00:00
Sandro Santilli 7ac6e494ad More unit test memory leaks and compiler warnings fixed
git-svn-id: http://svn.osgeo.org/postgis/trunk@7581 b70326c6-7e19-0410-871a-916f4a2858ee
2011-07-04 14:50:00 +00:00
Sandro Santilli 71b1b8c465 Do not deep-free return from lwcollection_homogenize as it doesn't copy POINTARRAY memory. See #1104.
git-svn-id: http://svn.osgeo.org/postgis/trunk@7579 b70326c6-7e19-0410-871a-916f4a2858ee
2011-07-04 13:56:04 +00:00
Sandro Santilli 4b7b728608 Plug some memory leaks in the unit tests, to help finding lower-level ones...
git-svn-id: http://svn.osgeo.org/postgis/trunk@7578 b70326c6-7e19-0410-871a-916f4a2858ee
2011-07-04 12:29:40 +00:00
Sandro Santilli d4c4cf4d06 Document memory management of lwdoubles_to_latlon and lwpoint_to_latlon
git-svn-id: http://svn.osgeo.org/postgis/trunk@7577 b70326c6-7e19-0410-871a-916f4a2858ee
2011-07-04 12:29:31 +00:00
Sandro Santilli 1fc2d96a2b Add missing circular types to geomtype_struct_array, fixing bug #1094
git-svn-id: http://svn.osgeo.org/postgis/trunk@7575 b70326c6-7e19-0410-871a-916f4a2858ee
2011-07-04 11:24:37 +00:00
Sandro Santilli a1b0bd03a2 Do not hard-code lenght of geomtype struct array (See #1094)
git-svn-id: http://svn.osgeo.org/postgis/trunk@7574 b70326c6-7e19-0410-871a-916f4a2858ee
2011-07-04 11:24:32 +00:00
Paul Ramsey 646d43fc13 Change CompoundString to CompoundCurve
git-svn-id: http://svn.osgeo.org/postgis/trunk@7504 b70326c6-7e19-0410-871a-916f4a2858ee
2011-06-27 19:24:00 +00:00
Paul Ramsey a8fcf4ee0b Fix type name for CompoundCurve
git-svn-id: http://svn.osgeo.org/postgis/trunk@7497 b70326c6-7e19-0410-871a-916f4a2858ee
2011-06-27 18:02:47 +00:00
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 37e28e68c6 Make test for co-linearity a little more double-barrelled.
git-svn-id: http://svn.osgeo.org/postgis/trunk@7490 b70326c6-7e19-0410-871a-916f4a2858ee
2011-06-26 03:15:46 +00:00
Paul Ramsey 3c7db22d95 Simplify circle stroking code (#1057)
git-svn-id: http://svn.osgeo.org/postgis/trunk@7489 b70326c6-7e19-0410-871a-916f4a2858ee
2011-06-26 02:29:17 +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 6111c39b52 Convert some BOX3D functions to GBOX
git-svn-id: http://svn.osgeo.org/postgis/trunk@7486 b70326c6-7e19-0410-871a-916f4a2858ee
2011-06-25 21:42:13 +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 ba9576e7f2 ST_ForceRHR POLYGON EMPTY crash (#710)
git-svn-id: http://svn.osgeo.org/postgis/trunk@7446 b70326c6-7e19-0410-871a-916f4a2858ee
2011-06-22 22:09:47 +00:00
Paul Ramsey 0fbe086266 ST_GeoHash POLYGON Empty crash (#711)
git-svn-id: http://svn.osgeo.org/postgis/trunk@7445 b70326c6-7e19-0410-871a-916f4a2858ee
2011-06-22 21:33:18 +00:00
Paul Ramsey ec001a4dfc geography: ST_Intersects, ST_DWithin gbox_overlaps: geometries have mismatched dimensionality (#1037)
git-svn-id: http://svn.osgeo.org/postgis/trunk@7433 b70326c6-7e19-0410-871a-916f4a2858ee
2011-06-20 16:58:07 +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
Regina Obe 5db85e534b support for 2D points, add multipoint 2d / 3d to cunit. Add a mapping table to documentation to clarify how we map PostGIS geometries to X3D equivalent.
git-svn-id: http://svn.osgeo.org/postgis/trunk@7199 b70326c6-7e19-0410-871a-916f4a2858ee
2011-05-19 04:53:22 +00:00
Regina Obe d559b56176 clean up some compiler warnings
git-svn-id: http://svn.osgeo.org/postgis/trunk@7198 b70326c6-7e19-0410-871a-916f4a2858ee
2011-05-19 04:04:14 +00:00
Regina Obe 1087b9e1ff apply astyle
git-svn-id: http://svn.osgeo.org/postgis/trunk@7143 b70326c6-7e19-0410-871a-916f4a2858ee
2011-05-13 08:46:38 +00:00
Regina Obe 79ee18cb99 fix some comments
git-svn-id: http://svn.osgeo.org/postgis/trunk@7122 b70326c6-7e19-0410-871a-916f4a2858ee
2011-05-10 04:54:28 +00:00
Regina Obe f7d3608aa8 put in a todo why I'm punting properly handling holes for now
git-svn-id: http://svn.osgeo.org/postgis/trunk@7121 b70326c6-7e19-0410-871a-916f4a2858ee
2011-05-10 03:57:09 +00:00
Sandro Santilli bfb6b65125 Drop commented out code
git-svn-id: http://svn.osgeo.org/postgis/trunk@7104 b70326c6-7e19-0410-871a-916f4a2858ee
2011-05-05 21:12:54 +00:00
Sandro Santilli 7ec29184a5 Do not attempt to read points from empty pointarrays (thanks valgrind for finding this)
git-svn-id: http://svn.osgeo.org/postgis/trunk@7103 b70326c6-7e19-0410-871a-916f4a2858ee
2011-05-05 21:12:49 +00:00
Sandro Santilli 0b984b0582 Allow dumping polygons with empty rings, fixing bug #937, add unit testing for that case.
git-svn-id: http://svn.osgeo.org/postgis/trunk@7102 b70326c6-7e19-0410-871a-916f4a2858ee
2011-05-05 21:12:43 +00:00
Regina Obe 0a6f9a41c6 more work on handling 3d polygons with holes
git-svn-id: http://svn.osgeo.org/postgis/trunk@7083 b70326c6-7e19-0410-871a-916f4a2858ee
2011-05-03 13:35:55 +00:00
Regina Obe 6838d38802 Fix handling of 3d polygons (still doesn't handle holes right), update doc to show example and also caveats so far, add polygon and polyhedralsurface example to c unit tests
git-svn-id: http://svn.osgeo.org/postgis/trunk@7078 b70326c6-7e19-0410-871a-916f4a2858ee
2011-05-01 02:46:40 +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
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
Regina Obe 0d0a95ab1a credit change
git-svn-id: http://svn.osgeo.org/postgis/trunk@7018 b70326c6-7e19-0410-871a-916f4a2858ee
2011-04-11 17:13:51 +00:00
Regina Obe 4971dc9e57 git-svn-id: http://svn.osgeo.org/postgis/trunk@7017 b70326c6-7e19-0410-871a-916f4a2858ee 2011-04-11 16:17:17 +00:00
Regina Obe 23a20132c0 preliminary cunit tests for x3d output functions
git-svn-id: http://svn.osgeo.org/postgis/trunk@7016 b70326c6-7e19-0410-871a-916f4a2858ee
2011-04-11 16:14:29 +00:00
Jorge Arévalo 5cd03f314b liblwgeom/lex.yy.c version 6180 reverted
git-svn-id: http://svn.osgeo.org/postgis/trunk@6982 b70326c6-7e19-0410-871a-916f4a2858ee
2011-03-28 22:56:11 +00:00
Jorge Arévalo 5f7d1f9ee9 Missed check added again.
git-svn-id: http://svn.osgeo.org/postgis/trunk@6981 b70326c6-7e19-0410-871a-916f4a2858ee
2011-03-28 22:52:59 +00:00
Regina Obe d0095755b4 Fill in coordIndex for multipolygons
git-svn-id: http://svn.osgeo.org/postgis/trunk@6938 b70326c6-7e19-0410-871a-916f4a2858ee
2011-03-18 21:13:54 +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
Regina Obe 6d74b61ecd Multilinestring working even for closed multilinestrings. Still need to fix polygon and multipolygons. also added example of closed multilinestring.
git-svn-id: http://svn.osgeo.org/postgis/trunk@6915 b70326c6-7e19-0410-871a-916f4a2858ee
2011-03-16 22:15:22 +00:00
Regina Obe 02c354beb2 sort of take care of multilinestrings -- doesn't work for multilinestrings with closed linestrings so that's next up to correct.
git-svn-id: http://svn.osgeo.org/postgis/trunk@6914 b70326c6-7e19-0410-871a-916f4a2858ee
2011-03-16 20:23:49 +00:00
Regina Obe 2bf0b34042 Alas a functioning polyhedralsurface export viewable in freeWRL. Also add proto that just takes geometry as argument and defaults to precision 15
git-svn-id: http://svn.osgeo.org/postgis/trunk@6903 b70326c6-7e19-0410-871a-916f4a2858ee
2011-03-16 04:48:44 +00:00