Paul Ramsey
9baacd722f
#2018 , Distance calculation support for arc features (circstring, compoundcurve, curvepolygon)
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@11219 b70326c6-7e19-0410-871a-916f4a2858ee
2013-03-28 22:11:09 +00:00
Paul Ramsey
9ed745892e
#2201 , ST_GeoHash wrong on boundaries
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@11212 b70326c6-7e19-0410-871a-916f4a2858ee
2013-03-26 15:24:19 +00:00
Olivier Courtin
f7c7517971
Related to #1553 . Add missing free in cu_surface cunit to be valgrind clean. As TGEOM was not used as storage serialization, i purely remove TGEOM for now, and kept only the TIN/POLYHEDRALSURFACE lwgeom expression (will see in future if we really need to have a 3D topological storage PostGIS side)
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@11205 b70326c6-7e19-0410-871a-916f4a2858ee
2013-03-25 18:41:48 +00:00
Sandro Santilli
5e478a8c0c
Make libjson-c optional adding --without-json configure switch ( #2202 )
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@11144 b70326c6-7e19-0410-871a-916f4a2858ee
2013-03-05 09:10:26 +00:00
Sandro Santilli
8a62a707d7
Fix parsing GeoJSON of multipolygon with holes ( #2216 )
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@11120 b70326c6-7e19-0410-871a-916f4a2858ee
2013-02-28 17:42:49 +00:00
Sandro Santilli
60a4fef503
Add lwgeom_from_geojson to liblwgeom, add cunit test, fix memory leak
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@11119 b70326c6-7e19-0410-871a-916f4a2858ee
2013-02-28 17:04:44 +00:00
Sandro Santilli
e4f2312d2d
Drop "lwgeom_init_allocators" need, add "lwgeom_set_handlers"
...
This change allows using liblwgeom from clients which cannot define
C-level methods for link-back (e.g. python ctypes). See #2089 .
NOTE: existing clients should take care of calling the new function
because their "lwgeom_init_allocators" won't be called anymore.
Failure to do so will result in default allocators / reporters
being used.
Thanks Giuseppe Sucameli for the base work on this
git-svn-id: http://svn.osgeo.org/postgis/trunk@10937 b70326c6-7e19-0410-871a-916f4a2858ee
2012-12-27 12:56:59 +00:00
Sandro Santilli
b993d4bbff
Fix leak in cu_stringbuffer test
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@10880 b70326c6-7e19-0410-871a-916f4a2858ee
2012-12-20 18:26:48 +00:00
Sandro Santilli
02214975cc
Fix memory leaks in lwsegmentize and cu_ptarray
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@10871 b70326c6-7e19-0410-871a-916f4a2858ee
2012-12-20 17:19:13 +00:00
Sandro Santilli
2c8a3364b6
Fix leak in cu_geodetic test
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@10864 b70326c6-7e19-0410-871a-916f4a2858ee
2012-12-19 20:52:13 +00:00
Sandro Santilli
ec4425d172
Revert "Move JSON input test where it belons ( #2156 )"
...
Accidentally committed an unrelated patch..
git-svn-id: http://svn.osgeo.org/postgis/trunk@10860 b70326c6-7e19-0410-871a-916f4a2858ee
2012-12-19 18:06:17 +00:00
Sandro Santilli
701c3bc5eb
Move JSON input test where it belons ( #2156 )
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@10859 b70326c6-7e19-0410-871a-916f4a2858ee
2012-12-19 18:01:19 +00:00
Sandro Santilli
dfbbb65b5e
Fix SRID in ST_Homogenize output with collection input ( #2129 )
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@10783 b70326c6-7e19-0410-871a-916f4a2858ee
2012-12-03 14:10:18 +00:00
Paul Ramsey
dd03422897
Remove many warnings from -pedantic build, and clean up parser globals a little more thoroughly.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@10661 b70326c6-7e19-0410-871a-916f4a2858ee
2012-11-09 00:09:35 +00:00
Paul Ramsey
441a7b3fe7
#2015 , ST_IsEmpty('POLYGON EMPTY') returns False
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@10630 b70326c6-7e19-0410-871a-916f4a2858ee
2012-11-02 21:14:44 +00:00
Paul Ramsey
38b9137474
Be a bit more explicit about what we're returning from point-in-ring tests.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@10626 b70326c6-7e19-0410-871a-916f4a2858ee
2012-11-02 19:08:52 +00:00
Paul Ramsey
a64f2cb4fd
Remove double call of flip test.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@10624 b70326c6-7e19-0410-871a-916f4a2858ee
2012-11-02 18:02:19 +00:00
Paul Ramsey
11e1a8c0e1
#2019 , ST_FlipCoordinates does not update bbox
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@10621 b70326c6-7e19-0410-871a-916f4a2858ee
2012-11-02 17:52:45 +00:00
Paul Ramsey
4252d6b53f
Expose some geodetic functions a little higher
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@10566 b70326c6-7e19-0410-871a-916f4a2858ee
2012-10-25 22:17:39 +00:00
Paul Ramsey
9b639c2bc5
Change the gbox calculation for geodetic edges to use 3-space geometry instead of lots of transcendental functions. Much faster, much simpler, all regression tests pass.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@10559 b70326c6-7e19-0410-871a-916f4a2858ee
2012-10-25 17:47:24 +00:00
Bborie Park
3f8c3d1fbe
Broke string for iowa hex into three parts so that doxygen doesn't choke
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@10547 b70326c6-7e19-0410-871a-916f4a2858ee
2012-10-24 21:14:47 +00:00
Paul Ramsey
fcf7bb2699
Whoops make sure the test macros match the library ones
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@10545 b70326c6-7e19-0410-871a-916f4a2858ee
2012-10-24 18:54:23 +00:00
Paul Ramsey
151c40b0de
Add some debugging info to find failure in debbie
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@10544 b70326c6-7e19-0410-871a-916f4a2858ee
2012-10-24 18:44:08 +00:00
Paul Ramsey
1db420f36a
Add explicit tests for edge_intersects()
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@10543 b70326c6-7e19-0410-871a-916f4a2858ee
2012-10-24 18:28:10 +00:00
Paul Ramsey
ac9f562660
( #1976 ) Geography point-in-ring code overhauled for more reliability
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@10527 b70326c6-7e19-0410-871a-916f4a2858ee
2012-10-23 21:18:50 +00:00
Paul Ramsey
f60d0da7d0
Future test case for when we've solved p-i-p in generality
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@10524 b70326c6-7e19-0410-871a-916f4a2858ee
2012-10-23 04:56:12 +00:00
Sandro Santilli
9f7e3edaa1
Do not print more digits than available from lwgeom_to_geojson
...
See http://trac.osgeo.org/postgis/ticket/2051
Adds tests for the ticket cases.
git-svn-id: http://svn.osgeo.org/postgis/trunk@10451 b70326c6-7e19-0410-871a-916f4a2858ee
2012-10-17 11:43:47 +00:00
Sandro Santilli
b7f088f974
Fix buffer overflow in lwgeom_to_geojson ( #2052 )
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@10448 b70326c6-7e19-0410-871a-916f4a2858ee
2012-10-17 09:45:36 +00:00
Paul Ramsey
3bb6c854c3
Reduce precision test to 1cm2. There is no doubt that this approach is less numerically stable than the last. ( #2043 ) Though in exchange, it covers the globe more completely.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@10424 b70326c6-7e19-0410-871a-916f4a2858ee
2012-10-12 19:49:27 +00:00
Paul Ramsey
9926faa413
Reduce the precision of the double test... it passes here.. ( #2043 )
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@10423 b70326c6-7e19-0410-871a-916f4a2858ee
2012-10-12 19:32:26 +00:00
Paul Ramsey
e9bf8eeb82
Improve support for ST_Area(geography) over dateline and poles ( #2006 , #2039 )
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@10407 b70326c6-7e19-0410-871a-916f4a2858ee
2012-10-11 22:48:11 +00:00
Paul Ramsey
9665523267
Move area core calculation to ptarray.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@10404 b70326c6-7e19-0410-871a-916f4a2858ee
2012-10-11 17:29:55 +00:00
Paul Ramsey
97fc6137b1
Add in arc ptarray vs ptarray and arc ptarray vs arc ptarray distance functions. ( #2018 )
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@10390 b70326c6-7e19-0410-871a-916f4a2858ee
2012-10-10 00:00:54 +00:00
Paul Ramsey
dc469753b7
Add in arc ptarray vs point distance function ( #2018 )
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@10387 b70326c6-7e19-0410-871a-916f4a2858ee
2012-10-09 22:48:39 +00:00
Paul Ramsey
ed2d7c4f6b
Fix up some errors in ptarray_arc iteration and the cunit test cases for arc p-i-p. ( #2018 )
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@10385 b70326c6-7e19-0410-871a-916f4a2858ee
2012-10-09 21:48:39 +00:00
Paul Ramsey
d89c7aff1f
Point-in-polygon function for arc-based point-arrays. ( #2018 )
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@10384 b70326c6-7e19-0410-871a-916f4a2858ee
2012-10-09 17:49:03 +00:00
Paul Ramsey
e92cf6071d
Anal retentive code re-organization. Try and move the primitive computational geometry functions into lwalgorithm.c
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@10356 b70326c6-7e19-0410-871a-916f4a2858ee
2012-10-01 22:10:33 +00:00
Paul Ramsey
ab42f09e91
Add ptarray_contains_point to ptarray file, so that all other liblwgeom functions can use the one routine.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@10342 b70326c6-7e19-0410-871a-916f4a2858ee
2012-09-28 22:48:20 +00:00
Paul Ramsey
a59a8fb625
Measurement support for arcs ( #2018 )
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@10337 b70326c6-7e19-0410-871a-916f4a2858ee
2012-09-28 18:23:52 +00:00
Paul Ramsey
503d866d8a
Distance calculation support for arc features ( #2018 ). Commit adds lowest level primitive support for distance calculations on single arcs.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@10335 b70326c6-7e19-0410-871a-916f4a2858ee
2012-09-27 20:23:03 +00:00
Paul Ramsey
e508329bcb
ST_Segmentize(geography, maxseglength) ( #1962 )
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@10195 b70326c6-7e19-0410-871a-916f4a2858ee
2012-08-22 21:04:34 +00:00
Paul Ramsey
da9ecad043
ST_Intersects(geography) returns incorrect result for pure-crossing cases (line cross line, line crosses polygon) ( #1958 )
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@10194 b70326c6-7e19-0410-871a-916f4a2858ee
2012-08-21 18:22:41 +00:00
Paul Ramsey
91f8b43387
Crash in ST_Distance ( #1951 )
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@10183 b70326c6-7e19-0410-871a-916f4a2858ee
2012-08-15 18:55:56 +00:00
Paul Ramsey
c73e21d15f
Allow circtree nodes to have more than 2 children ( #1910 )
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@10046 b70326c6-7e19-0410-871a-916f4a2858ee
2012-07-12 03:38:03 +00:00
Paul Ramsey
256159f3b9
Handle best SRID finding for shapes the cross the poles and dateline. Also add some new larger zones in gnomic for larger shapes. ( #1610 )
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@10038 b70326c6-7e19-0410-871a-916f4a2858ee
2012-07-06 23:50:33 +00:00
Paul Ramsey
5294886998
Fix problems with circtree building on short edges near the poles. ( #1796 )
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@10035 b70326c6-7e19-0410-871a-916f4a2858ee
2012-07-04 18:11:25 +00:00
Sandro Santilli
080978de4b
Add lwgeom_delaunay_triangulation ( #1215 )
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9993 b70326c6-7e19-0410-871a-916f4a2858ee
2012-06-27 14:26:47 +00:00
Regina Obe
d71d22320d
#1866 -- apply same geom_equal hack as we did in build area so differnt order of geometries in resulting geomcollection is ignored
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9983 b70326c6-7e19-0410-871a-916f4a2858ee
2012-06-25 09:06:07 +00:00
Paul Ramsey
c9010e7ce7
ST_LocateAlong chokes on some value combinations ( #1874 )
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9958 b70326c6-7e19-0410-871a-916f4a2858ee
2012-06-20 03:01:58 +00:00
Paul Ramsey
7ecbeee84e
ST_InterpolatePoint returns empty M value ( #1873 )
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9955 b70326c6-7e19-0410-871a-916f4a2858ee
2012-06-19 20:47:45 +00:00
Paul Ramsey
1dd2a18458
Fix mistake in tree p-i-p return value.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9951 b70326c6-7e19-0410-871a-916f4a2858ee
2012-06-19 18:11:03 +00:00
Paul Ramsey
b5e299620f
Fix mistake in handling crossings-at-a-vertex
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9948 b70326c6-7e19-0410-871a-916f4a2858ee
2012-06-18 23:59:37 +00:00
Paul Ramsey
f4d09fe6af
Quiet some warnings.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9930 b70326c6-7e19-0410-871a-916f4a2858ee
2012-06-18 20:14:44 +00:00
Paul Ramsey
784d85eb47
Hide internal arguments for tree calculations and shut up the print output.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9919 b70326c6-7e19-0410-871a-916f4a2858ee
2012-06-15 23:53:33 +00:00
Paul Ramsey
c90d7682d7
Add circular tree calculations and associated tests in support of faster geography calculations.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9916 b70326c6-7e19-0410-871a-916f4a2858ee
2012-06-15 22:51:57 +00:00
Sandro Santilli
6743c67e8f
Add test for MULTIPOINT processing
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9893 b70326c6-7e19-0410-871a-916f4a2858ee
2012-06-12 09:30:21 +00:00
Sandro Santilli
f556e4b466
Add GEOMETRYCOLLECTION input support for ST_MakeValid ( #1719 )
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9892 b70326c6-7e19-0410-871a-916f4a2858ee
2012-06-12 09:09:06 +00:00
Olivier Courtin
3db83462ff
Use NULL value as default for id on ST_AsGML cunit tests. Related to #1823
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9778 b70326c6-7e19-0410-871a-916f4a2858ee
2012-05-22 12:23:35 +00:00
Olivier Courtin
f7d50658af
Fix some unintialized vars. Fix becoming wrong prototype call in GML3 cunit tests. Related to #1823
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9775 b70326c6-7e19-0410-871a-916f4a2858ee
2012-05-22 08:49:36 +00:00
Sandro Santilli
a9ec4df52a
Add lwgeom_normalize in LIBLWGEOM, use in cu_buildarea tester
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9742 b70326c6-7e19-0410-871a-916f4a2858ee
2012-05-17 11:45:26 +00:00
Sandro Santilli
f81decb8a1
Significatively speedup BuildArea with complex input ( #1806 )
...
Affects ST_BuildArea, ST_MakeValid and ST_GetFaceGeometry.
Replaces the iterated SymDifference used since 2005 with a more
scalable algorithm. The new algorithm removes from the polygonized
result all polygons whose rings are known to be already represented
by holes or shells of other polygons and finally runs a single
overlay operation (unary union).
With the case attached to ticket #1806 , ST_BuildArea completes
within 12 seconds using the new code while it takes 27 _minutes_
with the old. Both versions return the same result (according to
ST_Equals).
git-svn-id: http://svn.osgeo.org/postgis/trunk@9731 b70326c6-7e19-0410-871a-916f4a2858ee
2012-05-09 12:08:16 +00:00
Sandro Santilli
773dd56ad7
Add unit test for lwgeom_buildarea (useful for #1806 )
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9730 b70326c6-7e19-0410-871a-916f4a2858ee
2012-05-09 12:08:06 +00:00
Sandro Santilli
150b274d69
Allow for 1.#INF to be threated as Inf ( #1736 )
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9613 b70326c6-7e19-0410-871a-916f4a2858ee
2012-04-05 09:11:51 +00:00
Sandro Santilli
fd783e7b6b
Have BuildArea catch exception from GEOSSymDifference ( #1738 )
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9581 b70326c6-7e19-0410-871a-916f4a2858ee
2012-03-30 08:36:17 +00:00
Sandro Santilli
082d160615
Add simple tests to stringbuffer class ( #1668 )
...
Hopefully these fail on windows so it's easier to test.
It may take a memory debugger to really see the failure.
git-svn-id: http://svn.osgeo.org/postgis/trunk@9487 b70326c6-7e19-0410-871a-916f4a2858ee
2012-03-13 17:08:59 +00:00
Sandro Santilli
b5887ec9f7
Rename misc testsuite to "misc"
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9486 b70326c6-7e19-0410-871a-916f4a2858ee
2012-03-13 17:08:48 +00:00
Paul Ramsey
820079f092
Roll back changes for autodetecting C99 vsnprintf ( #1688 )
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9485 b70326c6-7e19-0410-871a-916f4a2858ee
2012-03-13 16:23:38 +00:00
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