Paul Ramsey
8be09879c7
Complete alternate implementation of vsnprintf, vasprintf for non-C99 systems. ( #1668 )
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9477 b70326c6-7e19-0410-871a-916f4a2858ee
2012-03-12 21:27:39 +00:00
Paul Ramsey
82d7a6fce7
Defines are picked up from ../../postgis_config.h via ../liblwgeom_internal.h
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9402 b70326c6-7e19-0410-871a-916f4a2858ee
2012-03-05 22:54:48 +00:00
Sandro Santilli
febf179ddf
Add tests for ptarray_insert_point (see #1640 )
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9364 b70326c6-7e19-0410-871a-916f4a2858ee
2012-03-01 12:25:58 +00:00
Paul Ramsey
269ec63ddf
make parse location error test a little more lenient
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9357 b70326c6-7e19-0410-871a-916f4a2858ee
2012-02-29 18:58:06 +00:00
Paul Ramsey
806aea20c6
Fix regression due to new error message in GML generation
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9332 b70326c6-7e19-0410-871a-916f4a2858ee
2012-02-28 18:29:57 +00:00
Paul Ramsey
fe680e5cfd
Quiet compile warning.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9321 b70326c6-7e19-0410-871a-916f4a2858ee
2012-02-27 18:13:49 +00:00
Paul Ramsey
e2f360b6b9
Invalid geography polygons: BOOM! Could not generate outside point! ( #1046 )
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9127 b70326c6-7e19-0410-871a-916f4a2858ee
2012-02-09 00:37:43 +00:00
Olivier Courtin
5bbe44ece1
restore (at least) tin_geom and psurface_geom unit tests call. Related to #665
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9093 b70326c6-7e19-0410-871a-916f4a2858ee
2012-02-08 05:29:07 +00:00
Paul Ramsey
e87f11fe1c
Remove another dying test
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9087 b70326c6-7e19-0410-871a-916f4a2858ee
2012-02-08 00:15:49 +00:00
Paul Ramsey
888e99f0a3
Remove failing test
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9086 b70326c6-7e19-0410-871a-916f4a2858ee
2012-02-08 00:14:48 +00:00
Olivier Courtin
ebc3ea58b2
Restore surface cunit tests
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9074 b70326c6-7e19-0410-871a-916f4a2858ee
2012-02-07 21:04:50 +00:00
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