Olivier Courtin
3194a27c1b
Fix some bugfixes. Handle EMPTY use cases. Minor changes. Related to #665
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9073 b70326c6-7e19-0410-871a-916f4a2858ee
2012-02-07 21:01:48 +00:00
Paul Ramsey
49d9ea4505
lwgeom_release ( #699 ), reviewed all usage of lwgeom_release
...
and replaced with lwgeom_free where possible. Changed the
def'n of lwgeom_release so that it only frees the containing
objects, and not any sub-objects, for those few remaining
cases that required a gentler freeing of objects.
git-svn-id: http://svn.osgeo.org/postgis/trunk@9072 b70326c6-7e19-0410-871a-916f4a2858ee
2012-02-07 19:42:49 +00:00
Olivier Courtin
82f920b632
temp desactivation of surface unit test
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9059 b70326c6-7e19-0410-871a-916f4a2858ee
2012-02-07 02:34:56 +00:00
Olivier Courtin
61fe032fc9
Temp remove su_surface till everything fixed on it...
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9057 b70326c6-7e19-0410-871a-916f4a2858ee
2012-02-06 23:30:27 +00:00
Olivier Courtin
0ffd119683
Fix a bug in tgeom_free, related to #665
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9053 b70326c6-7e19-0410-871a-916f4a2858ee
2012-02-06 21:15:33 +00:00
Paul Ramsey
e34578aeaf
Support curves in lwgeom_homogenize ( #1526 )
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9008 b70326c6-7e19-0410-871a-916f4a2858ee
2012-02-01 23:00:09 +00:00
Paul Ramsey
f9976f0977
GML for empty geometries should be NULL ( #1377 )
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8966 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-30 00:37:45 +00:00
Paul Ramsey
e21896ff31
Tighten up on-arc test a bit more.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8948 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-27 20:55:22 +00:00
Paul Ramsey
723625e4ab
#920 (ST_LineToCurve generating invalid CURVEPOLYGON)
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8945 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-27 18:54:37 +00:00
Sandro Santilli
e916935621
Don't let ptarray_append_ptarray change read-only pointarrays
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8929 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-26 12:59:51 +00:00
Sandro Santilli
8ff256bab6
Test that mixed dimensionality is not allowed by ptarray_append_ptarray
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8928 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-26 12:59:43 +00:00
Sandro Santilli
eb921b6dc9
Add more test for FLAGS_GET_ and FLAGS_SET_
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8927 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-26 12:34:32 +00:00
Sandro Santilli
925d626bbd
Implement ptarray_append_ptarray, and change its signature
...
This is propedeutic to ticket #1500
git-svn-id: http://svn.osgeo.org/postgis/trunk@8926 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-26 09:16:37 +00:00
Paul Ramsey
cb6ae71bc4
Rename lwpoint_interpolate to point_interpolate
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8851 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-16 22:26:45 +00:00
Paul Ramsey
cce54f7523
Add ST_InterpolatePoint, deprecate ST_Locate_Between_Measures and ST_Locate_Along_Measure. Document new functions. Alter regressions and docs to use AsText instead of AsEWKT.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8811 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-14 01:03:37 +00:00
Paul Ramsey
af3b7fe1db
Flip ST_LocateBetween to use the same LRS code as ST_LocateBetweenElevations
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8792 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-12 19:07:02 +00:00
Sandro Santilli
7a3b803b9e
Fix lw_dist2d_pt_seg(B, AB), see #1459
...
Includes regress testing. Should also fix #1383
git-svn-id: http://svn.osgeo.org/postgis/trunk@8790 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-12 17:06:04 +00:00
Sandro Santilli
442a2c98e3
Fix bug in dimension computer for collection WKT.
...
The parser got confused by inner M letters.
This commit also improves speed early breaking the loop over WKT.
git-svn-id: http://svn.osgeo.org/postgis/trunk@8788 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-12 11:21:06 +00:00
Sandro Santilli
9acf63d0cb
Fix a bug in gserialized_read_gbox_p reading garbage in EMPTY point
...
Includes cunit test. Fixes #1458 .
git-svn-id: http://svn.osgeo.org/postgis/trunk@8785 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-12 08:52:03 +00:00
Sandro Santilli
8c6afecd88
Fix bug in gbox_same -> lwgeom_same -> ST_OrderingEquals ( #1454 )
...
Adds regression test for lwgeom_same and ST_OrderingEquals
git-svn-id: http://svn.osgeo.org/postgis/trunk@8779 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-11 18:45:00 +00:00
Sandro Santilli
e6d78c3dc7
Add paranoid test of another malformed WKB found in #168
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8775 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-11 15:57:22 +00:00
Sandro Santilli
25c22d217e
Check type of elements added to multi geometries. Fixes #1445 .
...
Includes regress testing both at the liblwgeom and postgis levels.
git-svn-id: http://svn.osgeo.org/postgis/trunk@8742 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-10 11:36:14 +00:00
Sandro Santilli
3c7f558165
Add "M" type modifiers on elements of GEOMETRYCOLLECTION
...
Reflects specs in doc/ZMgeoms.txt and satisfies the parser.
Closes ticket #724 .
git-svn-id: http://svn.osgeo.org/postgis/trunk@8741 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-10 10:06:11 +00:00
Sandro Santilli
af8bb4eaa7
Change lwgeom_is_empty to return spatial emptiness ( #671 )
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8725 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-09 18:01:15 +00:00
Sandro Santilli
8f99c827d6
Return typed empties from lwcollection_extract
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8717 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-09 16:20:13 +00:00
Sandro Santilli
8b9b187c8e
Fix crash on ST_AsGML('POLYGON EMPTY') ( #681 )
...
Also tweak GML of empty types to be smaller and include
regression testing both at the liblwgeom and sql level
git-svn-id: http://svn.osgeo.org/postgis/trunk@8412 b70326c6-7e19-0410-871a-916f4a2858ee
2011-12-14 16:02:44 +00:00
Sandro Santilli
f622087235
Restrict disabled code to the one really hurting
...
See ticket #665 for more informations.
The commit also renames the test suite to "surface".
git-svn-id: http://svn.osgeo.org/postgis/trunk@8337 b70326c6-7e19-0410-871a-916f4a2858ee
2011-12-09 16:27:35 +00:00
Sandro Santilli
4a1645eaab
Don't let lwgeom_add_bbox syntetize a fake box for empty geometries
...
Empty geometries have no box. Period.
Update GML extent output for empty geometries to handle the special
case by using empty tags. Regress test it.
git-svn-id: http://svn.osgeo.org/postgis/trunk@8334 b70326c6-7e19-0410-871a-916f4a2858ee
2011-12-09 14:37:11 +00:00
Sandro Santilli
9df7101d93
Fix segfault in GML3 extent output ( #1323 )
...
Add support for srsDimension in GML3 extent output.
Add unit level comprensive regression testing.
git-svn-id: http://svn.osgeo.org/postgis/trunk@8333 b70326c6-7e19-0410-871a-916f4a2858ee
2011-12-09 13:50:50 +00:00
Paul Ramsey
c80ebf1baa
Guard against NaN values in coordinates passing into GEOS ( #627 )
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8328 b70326c6-7e19-0410-871a-916f4a2858ee
2011-12-08 22:16:08 +00:00
Paul Ramsey
0e96180dc6
Check that NaN coordinate values find their way into bboxes, they do, NaN is bigger than Inf, apparently.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8327 b70326c6-7e19-0410-871a-916f4a2858ee
2011-12-08 21:57:37 +00:00
Paul Ramsey
75294b428d
Test for bbox calculations when there's an infinite coordinate.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8326 b70326c6-7e19-0410-871a-916f4a2858ee
2011-12-08 21:26:39 +00:00
Sandro Santilli
d9e5af37f8
Add testcase for #1311 (lwgeom_split).
...
Also fix existing testcase (wasn't really testing it).
git-svn-id: http://svn.osgeo.org/postgis/trunk@8206 b70326c6-7e19-0410-871a-916f4a2858ee
2011-11-21 14:59:36 +00:00
Sandro Santilli
ad654fc47d
Rename "LibGeom Suite" to simply "libgeom", for easy of use
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8200 b70326c6-7e19-0410-871a-916f4a2858ee
2011-11-21 08:23:31 +00:00
Sandro Santilli
c99397c62f
Surrender to evidence of the narrow ring tested being clockwise
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8199 b70326c6-7e19-0410-871a-916f4a2858ee
2011-11-21 08:21:41 +00:00
Sandro Santilli
fb8e246a7a
Add another test for ptarray_isccw, which incredibly seems to disagree with the same check done when the same ring occurs in a polygon
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8194 b70326c6-7e19-0410-871a-916f4a2858ee
2011-11-20 21:35:18 +00:00
Sandro Santilli
9e055f1d2d
Better indent for comparing obtained/expected
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8192 b70326c6-7e19-0410-871a-916f4a2858ee
2011-11-20 21:19:07 +00:00
Sandro Santilli
ae35965dfb
Add test for lwgeom_force_clockwise (see #1302 )
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8190 b70326c6-7e19-0410-871a-916f4a2858ee
2011-11-20 20:51:22 +00:00
Sandro Santilli
2d2e91275b
Add test for ptarray_isccw (see #1302 )
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8189 b70326c6-7e19-0410-871a-916f4a2858ee
2011-11-19 17:28:33 +00:00
Sandro Santilli
51f91a5015
Re-fix robustness issue on 32bit system (seg is 0-based, npoints is 1-based but segments is npoints-1)
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8115 b70326c6-7e19-0410-871a-916f4a2858ee
2011-11-08 10:23:07 +00:00
Sandro Santilli
68a37aec98
Add test for bug #1270
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8113 b70326c6-7e19-0410-871a-916f4a2858ee
2011-11-08 08:55:09 +00:00
Sandro Santilli
c26ff81c65
Enhance robustness of ptarray_locate_point, fixing bug #1269 .
...
Includes regression testcase.
git-svn-id: http://svn.osgeo.org/postgis/trunk@8107 b70326c6-7e19-0410-871a-916f4a2858ee
2011-11-07 17:01:50 +00:00
Sandro Santilli
dec5cc525b
Add an lwgeom_node function in liblwgeom (see #1206 )
...
Includes testcase
git-svn-id: http://svn.osgeo.org/postgis/trunk@8088 b70326c6-7e19-0410-871a-916f4a2858ee
2011-11-04 06:45:10 +00:00
Sandro Santilli
269d6aad6f
Pass GEOS version to unit tests, skip test for SPLIT when building against older geos.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8085 b70326c6-7e19-0410-871a-916f4a2858ee
2011-11-03 17:09:17 +00:00
Sandro Santilli
b0c8e0a039
Add an line-by-point internal split function taking an output vector.
...
Regress test the new function.
git-svn-id: http://svn.osgeo.org/postgis/trunk@8084 b70326c6-7e19-0410-871a-916f4a2858ee
2011-11-03 16:20:39 +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
4a21c4e067
Fix call to geometry_type_from_string to use right type.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8033 b70326c6-7e19-0410-871a-916f4a2858ee
2011-10-28 18:21:13 +00:00
Paul Ramsey
4bd609aeff
Remove orphaned _compute_box3d functions
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8029 b70326c6-7e19-0410-871a-916f4a2858ee
2011-10-28 17:44:00 +00:00
Sandro Santilli
da5f340340
Clamp SRID on serialization and deserialization. Raise an error when clamp_srid receives a number > 999999
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@7963 b70326c6-7e19-0410-871a-916f4a2858ee
2011-10-10 07:38:27 +00:00
Sandro Santilli
1e179f2522
Fix distclean rule to drop Makefile too
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@7922 b70326c6-7e19-0410-871a-916f4a2858ee
2011-09-29 19:43:06 +00:00