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
0ba1a97615
Add WKB round-trip test for TIN
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8834 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-16 10:34:30 +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
3aee7df080
Add POLYHEDRALSURFACE roundtrip WKB test
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8832 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-16 10:31:09 +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
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
Sandro Santilli
e7aa8d0d16
Add test for creating tables with circularstring typmod ( #1085 )
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8804 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-13 17:34:24 +00:00
Sandro Santilli
6c3c6a8f7b
First draft of a test for typmod ( #1085 )
...
This version simply creates the tables and checks geometry_columns.
Should be enhanced to test effectiveness of constraints.
git-svn-id: http://svn.osgeo.org/postgis/trunk@8803 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-13 17:33:26 +00:00
Sandro Santilli
51e6e8e15e
Complete tests for higher coordinate dimensions ( #1455 )
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8789 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-12 11:21:11 +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
6e1d73efb0
Add tests for higher coordinate dimensions ( #1455 )
...
GEOMETRYCOLLECTION still fails
git-svn-id: http://svn.osgeo.org/postgis/trunk@8787 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-12 11:20:59 +00:00
Sandro Santilli
11432aa902
Test roundtrip of WKT. Higher dimensions still needed ( #1455 )
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8786 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-12 08:52:11 +00:00
Sandro Santilli
6b22793afc
Allow higher dimensions in GeomFromWKB ( #1452 )
...
Includes regress test for WKB roundtrip
(failing as expected with point empty)
git-svn-id: http://svn.osgeo.org/postgis/trunk@8780 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-11 18:53:28 +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
887793cead
Fix EMPTY ~= EMPTY to return TRUE ( #1453 )
...
This also fixes ST_OrderingEquals for empty geometries and
adds the concept of NULL boxes to represent EMPTY boxes.
ST_Equals is still broken as it uses the overlap operator instead.
git-svn-id: http://svn.osgeo.org/postgis/trunk@8778 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-11 17:18:27 +00:00
Sandro Santilli
63838db72e
Drop geography-specific C-side of AsBinary function. Proxy to geometry.
...
See #288
git-svn-id: http://svn.osgeo.org/postgis/trunk@8772 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-11 14:46:13 +00:00
Sandro Santilli
9540a582f6
Add regress test for WKB ( #1448 ) and enable the existing one for WKT
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8770 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-11 11:17:10 +00:00
Sandro Santilli
d5c60e3097
Unleash SQL/MM WKT returned by ST_AsText ( #287 )
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8766 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-11 10:34:41 +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
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
965a39d011
Switch back ST_CollectionExtract to return EMPTY rather than NULL on no matches ( #835 )
...
This behavior seems closer to the one requested in original #457
testcase, and is still consistent. Is also closer to documentation.
git-svn-id: http://svn.osgeo.org/postgis/trunk@8721 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-09 17:01:54 +00:00
Sandro Santilli
b89eb41a1d
Alwas return NULL on type miss from ST_CollectionExtract ( #835 )
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8718 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-09 16:20:21 +00:00
Paul Ramsey
8c45923794
Move geojson test into geojson.sql file
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8692 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-07 00:47:36 +00:00
Paul Ramsey
b47da47ea1
ST_GeomFromGeoJSON - Malformed GeoJSON causes SIGSEGV in postgres process ( #1434 )
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8690 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-07 00:29:34 +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
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
Regina Obe
4fdebd48d7
#722 more regress fixes for GeomFromText
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8646 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-02 00:31:55 +00:00
Regina Obe
613f4966ef
#722 : regress replace GeomFromText with ST_GeomFromText
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8645 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-02 00:25:46 +00:00
Paul Ramsey
c2ee49ad63
Conditionally drop loader test tables (requires PostgreSQL >= 8.2 to support IF EXISTS syntax)
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8616 b70326c6-7e19-0410-871a-916f4a2858ee
2011-12-29 21:00:31 +00:00
Sandro Santilli
a0b86d6355
Honour verbosity for database initialization errors
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8608 b70326c6-7e19-0410-871a-916f4a2858ee
2011-12-29 07:39:56 +00:00
Sandro Santilli
3a746c8970
Enable uninstall_topology.sql testing
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8560 b70326c6-7e19-0410-871a-916f4a2858ee
2011-12-24 11:21:45 +00:00
Sandro Santilli
7761d221f0
run_test doesn't need USE_VERSION anymore
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8557 b70326c6-7e19-0410-871a-916f4a2858ee
2011-12-24 10:42:48 +00:00
Sandro Santilli
dc2d8c0ab1
Stop using USE_VERSION, assume pgsql is always > 7.4.
...
Hopefully fixes #819
git-svn-id: http://svn.osgeo.org/postgis/trunk@8555 b70326c6-7e19-0410-871a-916f4a2858ee
2011-12-24 10:34:46 +00:00
Sandro Santilli
ddb8e5f230
Run uninstall test for raster, when enabled
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8540 b70326c6-7e19-0410-871a-916f4a2858ee
2011-12-24 09:57:47 +00:00
Sandro Santilli
4cec437ca5
Cleanup after loader test runs, fixing uninstall testing
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8524 b70326c6-7e19-0410-871a-916f4a2858ee
2011-12-23 16:14:39 +00:00
Sandro Santilli
eef181d2bf
Drop objects created by the tests
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8523 b70326c6-7e19-0410-871a-916f4a2858ee
2011-12-23 16:14:35 +00:00
Sandro Santilli
c86c97fcc8
Count objects in the _regress_ database, not elsewhere ( #1397 )
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8507 b70326c6-7e19-0410-871a-916f4a2858ee
2011-12-22 11:19:56 +00:00
Sandro Santilli
dc002060b1
Fix testing of uninstall script count [ #1397 ]
...
This commit also adds new utility functions and skips testing
uninstall when raster or topology are enabled.
git-svn-id: http://svn.osgeo.org/postgis/trunk@8506 b70326c6-7e19-0410-871a-916f4a2858ee
2011-12-22 10:21:31 +00:00
Sandro Santilli
7a18c8dc71
Add testing for uninstall_postgis.sql [ #1397 ]
...
The uninstall currently fails due to #1153
git-svn-id: http://svn.osgeo.org/postgis/trunk@8501 b70326c6-7e19-0410-871a-916f4a2858ee
2011-12-22 10:21:07 +00:00
Sandro Santilli
3ccea13bcc
Don't depend on bytea representation for unrelated tests.
...
Fix testing against PostgreSQL 9.0+.
git-svn-id: http://svn.osgeo.org/postgis/trunk@8500 b70326c6-7e19-0410-871a-916f4a2858ee
2011-12-22 08:23:32 +00:00
Sandro Santilli
6c0ec4b4d7
Add missing options in the help string
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8493 b70326c6-7e19-0410-871a-916f4a2858ee
2011-12-21 17:15:26 +00:00
Sandro Santilli
0d867ed67b
Put staged postgis.sql with other staged intsall objects
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8492 b70326c6-7e19-0410-871a-916f4a2858ee
2011-12-21 17:09:45 +00:00
Sandro Santilli
ac0d3e3935
Different types _can_ be equal, see #756
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8480 b70326c6-7e19-0410-871a-916f4a2858ee
2011-12-20 18:51:54 +00:00