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
2e723cb276
SVG empty geometries gives invalid memory alloc ( #1038 )
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8920 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-24 22:23:53 +00:00
Sandro Santilli
6ef84a957a
Don't let ST_Multi create collections of a single EMPTY ( #1489 )
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8892 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-20 14:47:24 +00:00
Paul Ramsey
331f360a22
Transforming from SRID 4267 to 4326 returns incorrect result ( #1301 )
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8880 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-20 00:11:41 +00:00
Sandro Santilli
c7983112e0
Add ST_Summary(geography), "G" flag ( #1277 ), document ( #649 )
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8868 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-18 14:17:11 +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
Sandro Santilli
58adce3839
Fix 2.5d split ( #745 )
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8847 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-16 17:37:12 +00:00
Sandro Santilli
ed2cc838c7
Move lwgeom_summary to liblwgeom ( #1446 )
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8838 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-16 12:33:16 +00:00
Sandro Santilli
ca21d39436
Fix WKB output for POINT EMPTY with SRID or higher dims ( #1478 )
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8835 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-16 11:22:27 +00:00
Sandro Santilli
ae22d6192d
Fix reading TRIANGLE EMPTY in WKB form ( #1474 )
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8833 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-16 10:31:18 +00:00
Sandro Santilli
10732e13a9
Implement lwgeom_same for MULTICURVE and MULTISURFACE ( #1475 )
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8831 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-16 10:24:54 +00:00
Sandro Santilli
615bdce18a
Implement lwgeom_same for CURVEPOLYGON types ( #1475 )
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8830 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-16 10:21:09 +00:00
Sandro Santilli
fa2077921b
Implement lwgeom_same for COMPOUNDCURVE ( #1475 )
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8829 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-16 10:18:07 +00:00
Sandro Santilli
6e285b15a1
Implement lwgeom_same for circularstring ( #1475 )
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8828 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-16 10:11:44 +00:00
Sandro Santilli
6b4c747328
A CURVEPOLY is also a collection. Fixes #1473 .
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8827 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-16 09:11:45 +00:00
Sandro Santilli
930da10769
Prevent lwcollection_construct from creating non-collection types
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8826 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-16 09:11:38 +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
Mark Cave-Ayland
fb5749edae
Switch liblwgeom to use the POSTGIS_* defines already generated by configure, rather than passing them in directly.
...
Similar to my previous commit, however here the aim is that by moving the logic outside of make then we can
potentially allow other generators (such as CMake) to detect and use other compilers rather than embedding
specific -D flags into the command line.
git-svn-id: http://svn.osgeo.org/postgis/trunk@8809 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-14 00:49:21 +00:00
Paul Ramsey
6f1e0a2f48
Add in an offset option to ST_LocateBetween
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8794 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-12 21:43:56 +00:00
Paul Ramsey
816f40e8aa
Add support for MULTIPOINT and POINT to ST_LocateBetween
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8793 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-12 19:55:30 +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
605fa40a95
gbox_float_round: do not attempt to round M when not present
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8784 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-12 08:51:58 +00:00
Sandro Santilli
a58b999828
Expose gbox_float_round to liblwgeom API
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8783 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-12 08:51:53 +00:00
Paul Ramsey
4565be828a
Change references to BOX2DFLOAT4 to just BOX2D and remove the struct. Ding dong.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8782 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-11 19:45:13 +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
Paul Ramsey
559feb23d9
Add ST_LocateAlong support for multipoints too (completeness)
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8758 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-10 23:22:18 +00:00
Paul Ramsey
242d9c9476
Bind ST_LocateAlong() to the new LRS function that supports offsets.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8757 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-10 23:14:28 +00:00
Sandro Santilli
bfa3222be1
Reflect type of empty from ST_Dimension ( #1441 )
...
No existing testcase fail, no new testcase is added.
This change doesn't invalidate any part of the reference manual.
Reference manual isn't updated.
Signed-off-by: Charlie Brown
git-svn-id: http://svn.osgeo.org/postgis/trunk@8748 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-10 14:58:16 +00:00
Sandro Santilli
92026a713b
Use a standard lwcollection_allows_subtype function to guard against bad input.
...
Fixes #698 (and #1445 in a better way)
git-svn-id: http://svn.osgeo.org/postgis/trunk@8747 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-10 13:17:21 +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
Paul Ramsey
acc2cfbad5
Interim progress on LRS work.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8726 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-09 18:27:30 +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
c532c9b846
Add lwgeom_construct_empty API call
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8720 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-09 17:01:48 +00:00
Sandro Santilli
b839549e93
Implement lwcompound_construct_empty
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8719 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-09 17:01:43 +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
69eec45ee6
Fix compiler warnings
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8715 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-09 15:03:36 +00:00
Paul Ramsey
c71f36af42
Move offset curve generation into liblwgeom with other geos functionality
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8689 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-06 21:39:50 +00:00
Paul Ramsey
cbd71f7374
Change to GNU macro NAN. Still not feeling The Confidence.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8667 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-03 23:52:42 +00:00
Paul Ramsey
1ce64dcce5
Make numerical stability fix actually be present
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8666 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-03 23:42:03 +00:00
Paul Ramsey
5b2836f00c
Hm, nan() function?
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8665 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-03 23:28:47 +00:00
Paul Ramsey
343f318428
Make ST_Azimuth(p1, p1) return NULL and make ST_Project(p1, 0, NULL) return p1.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8662 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-03 22:07:34 +00:00
Paul Ramsey
f1ca2a8e8e
Change units to radians and add some tests ( #657 and #1305 )
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8655 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-03 19:21:32 +00:00
Paul Ramsey
67196edc60
ST_Azimuth on the spheroid ( #1305 )
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8496 b70326c6-7e19-0410-871a-916f4a2858ee
2011-12-21 19:07:02 +00:00
Paul Ramsey
35c0bbf274
Add ST_Project(geography, distance, azimuth) ( #657 ) to construct a new point given a heading and a distance.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8495 b70326c6-7e19-0410-871a-916f4a2858ee
2011-12-21 18:42:08 +00:00
Sandro Santilli
f6b0715b67
Use own implementation of endian detection, should fix #1172
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8488 b70326c6-7e19-0410-871a-916f4a2858ee
2011-12-21 14:37:11 +00:00