Paul Ramsey
7c859fa99f
#2048 , add regression test
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@10648 b70326c6-7e19-0410-871a-916f4a2858ee
2012-11-06 00:27:16 +00:00
Regina Obe
e61a861e81
#2020 : stop penalizing windows 9.2 32-bit when it gives a stupid answer to an ill-defined question. Change to be a well-defined question.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@10642 b70326c6-7e19-0410-871a-916f4a2858ee
2012-11-05 00:47:26 +00:00
Paul Ramsey
5d014027e7
#1996 , ST_AsGeoJSON('POINT EMPTY') produces invalid JSON
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@10628 b70326c6-7e19-0410-871a-916f4a2858ee
2012-11-02 19:15:05 +00:00
Paul Ramsey
8f23a2efd6
Remove odd srs error line from expected
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@10425 b70326c6-7e19-0410-871a-916f4a2858ee
2012-10-12 20:06:29 +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
Sandro Santilli
3d25e2ea85
Accept array properties in GML input multi-geom input ( #1928 )
...
Patch by Kashif Rasul and Shoaib Burq / SpacialDB
git-svn-id: http://svn.osgeo.org/postgis/trunk@10354 b70326c6-7e19-0410-871a-916f4a2858ee
2012-10-01 09:28:46 +00:00
Paul Ramsey
7ccb5cc62b
Add casts from geometry::path, geometry::point, geometry::polygon, polygon::geometry, path::geometry, point::geometry to allow easier migration to PostGIS for folks who start with the Pg types.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@10336 b70326c6-7e19-0410-871a-916f4a2858ee
2012-09-28 17:03:46 +00:00
Regina Obe
b0ff7abc07
#2012 : Change client_min_messages to warning instead of relying on default notice. 9.3's idea of notice doesn't seem to include notice about create of new tables.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@10326 b70326c6-7e19-0410-871a-916f4a2858ee
2012-09-25 02:45:28 +00:00
Paul Ramsey
5bea346fa1
Test for #1780
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@10280 b70326c6-7e19-0410-871a-916f4a2858ee
2012-09-13 19:23:42 +00:00
Sandro Santilli
456df7ed2c
ST_Estimated_Extent renamed to ST_EstimatedExtent ( #1994 )
...
ST_Estimated_Extent is kept but deprecated, testcases test both
signatures. Documentation documents the new name and warns about
it being renamed in 2.1.0
git-svn-id: http://svn.osgeo.org/postgis/trunk@10279 b70326c6-7e19-0410-871a-916f4a2858ee
2012-09-13 09:53:02 +00:00
Paul Ramsey
b34346b012
correct length for closed circles ( #1978 )
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@10257 b70326c6-7e19-0410-871a-916f4a2858ee
2012-09-07 22:20:00 +00:00
Paul Ramsey
66dacff9f2
ST_GeomFromGML on CurvePolygon causes server crash ( #1936 )
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@10255 b70326c6-7e19-0410-871a-916f4a2858ee
2012-09-07 20:05:25 +00:00
Paul Ramsey
db8385a18c
ST_Distance to a one-point LineString returns NULL ( #1957 )
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@10251 b70326c6-7e19-0410-871a-916f4a2858ee
2012-09-07 18:27:49 +00:00
Regina Obe
eab2bf6bc9
1963: Cast text to geometry for ST_Segmentize -- introduction of geography means no more laziness allowed
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@10198 b70326c6-7e19-0410-871a-916f4a2858ee
2012-08-23 07:16:36 +00:00
Paul Ramsey
44c3240252
Add in test for node splitting with nulls and empties ( #1905 )
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@10051 b70326c6-7e19-0410-871a-916f4a2858ee
2012-07-12 17:24:36 +00:00
Paul Ramsey
8a3458ae56
Complete geography performance work ( #1796 ), move testing functions into _ST_* name space for privacy, add regression tests for issues encountered during development.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@10044 b70326c6-7e19-0410-871a-916f4a2858ee
2012-07-11 18:15:50 +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
Sandro Santilli
cec03e6f9f
Be tolerant with regressing against GEOS-3.2.0
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@10009 b70326c6-7e19-0410-871a-916f4a2858ee
2012-07-03 13:58:10 +00:00
Sandro Santilli
d69d283450
Let testing temp dir be settable using PGIS_REG_TMPDIR
...
Prior to this change you could change it using the TMPDIR variable
but that one could have been used by other software as well.
git-svn-id: http://svn.osgeo.org/postgis/trunk@9999 b70326c6-7e19-0410-871a-916f4a2858ee
2012-06-29 17:10:36 +00:00
Sandro Santilli
5c78167ece
Add ST_DelaunayTriangles ( #1215 )
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9994 b70326c6-7e19-0410-871a-916f4a2858ee
2012-06-27 15:53:53 +00:00
Sandro Santilli
930fb6770d
Really accept collections and multipoints from ST_MakeValid ( #1719 )
...
Also updates documentation and SQL level tests.
git-svn-id: http://svn.osgeo.org/postgis/trunk@9894 b70326c6-7e19-0410-871a-916f4a2858ee
2012-06-12 09:30:34 +00:00
Regina Obe
d3155b2df1
part fix for #1860 ST_SRID not unique
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9891 b70326c6-7e19-0410-871a-916f4a2858ee
2012-06-12 08:29:27 +00:00
Regina Obe
8353915043
snaptogrid to get rid of false failures on mingw-64 resulting from single digit rounding differences
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9871 b70326c6-7e19-0410-871a-916f4a2858ee
2012-06-08 17:18:37 +00:00
Sandro Santilli
ead09f8358
Properly set permissions on backend temp dir
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9860 b70326c6-7e19-0410-871a-916f4a2858ee
2012-06-07 23:08:41 +00:00
Sandro Santilli
6cb4ee19c7
Fix scoping of TEST variable ( #1853 )
...
I didn't really understand why it is only TEST needing to be "our"
but it seems to work.
git-svn-id: http://svn.osgeo.org/postgis/trunk@9854 b70326c6-7e19-0410-871a-916f4a2858ee
2012-06-07 06:55:58 +00:00
Sandro Santilli
85f79819a6
Have run_test.pl use strict mode
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9851 b70326c6-7e19-0410-871a-916f4a2858ee
2012-06-06 15:24:23 +00:00
Paul Ramsey
6caa800404
Convert to using run_test.pl instead of run_test.sh
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9847 b70326c6-7e19-0410-871a-916f4a2858ee
2012-05-31 22:49:56 +00:00
Paul Ramsey
5b691ebbf9
Works for MinGW now
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9846 b70326c6-7e19-0410-871a-916f4a2858ee
2012-05-31 22:16:02 +00:00
Sandro Santilli
393a055b36
Use our own diff, avoid using Which. Works for me. Tests welcome.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9844 b70326c6-7e19-0410-871a-916f4a2858ee
2012-05-31 20:11:53 +00:00
Regina Obe
5bc8126a7a
#1812 change to use sT_Equals to account for polygon order difference under windows (mingw)
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9832 b70326c6-7e19-0410-871a-916f4a2858ee
2012-05-31 01:44:50 +00:00
Paul Ramsey
2e8e022297
Update the run_test.pl script to handle the raster loader pre/post rules
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9827 b70326c6-7e19-0410-871a-916f4a2858ee
2012-05-30 18:58:45 +00:00
Paul Ramsey
33308920ad
Add upgrade mode and start to get raster working. Bah, going to need to handle pre/post actions after all.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9782 b70326c6-7e19-0410-871a-916f4a2858ee
2012-05-22 15:13:51 +00:00
Paul Ramsey
db1d76147f
Initial commit of the run_test.pl perl port of the regression harness.
...
This version runs the postgis loader and sql tests. It does not yet run in --upgrade mode or handle the raster or topology tests.
git-svn-id: http://svn.osgeo.org/postgis/trunk@9774 b70326c6-7e19-0410-871a-916f4a2858ee
2012-05-22 08:49:12 +00:00
Paul Ramsey
5dc20a53ba
Back out ST_CollectionExtract changes, too many regression failures
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9766 b70326c6-7e19-0410-871a-916f4a2858ee
2012-05-21 10:57:13 +00:00
Paul Ramsey
57137849df
Harmonize regression to new ST_CollectionExtract behavior
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9765 b70326c6-7e19-0410-871a-916f4a2858ee
2012-05-21 10:13:43 +00:00
Sandro Santilli
7fd44f4381
Cleanly handle database creation error
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9740 b70326c6-7e19-0410-871a-916f4a2858ee
2012-05-16 19:39:26 +00:00
Sandro Santilli
18d16a288c
Make ST_MakeValid tests immune by coordinates order (using ST_Equals)
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9728 b70326c6-7e19-0410-871a-916f4a2858ee
2012-05-08 16:47:33 +00:00
Sandro Santilli
4ef0b834d7
Protect ST_Segmentize from max_length=0 ( #1799 )
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9712 b70326c6-7e19-0410-871a-916f4a2858ee
2012-05-04 08:06:16 +00:00
Paul Ramsey
d01ab58291
Restrict the coverage of the geography polar interesction slightly.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9705 b70326c6-7e19-0410-871a-916f4a2858ee
2012-04-30 17:27:09 +00:00
Sandro Santilli
b9063c49f3
Give ST_Azimuth a chance with close but distinct points ( #1791 )
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9682 b70326c6-7e19-0410-871a-916f4a2858ee
2012-04-26 16:30:18 +00:00
Paul Ramsey
8c81fc4e16
st_dwithin(geog, geog, 0) doesn't work ( #1264 )
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9669 b70326c6-7e19-0410-871a-916f4a2858ee
2012-04-25 18:49:42 +00:00
Paul Ramsey
264b1c1847
Forward port test from #1170
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9666 b70326c6-7e19-0410-871a-916f4a2858ee
2012-04-25 17:54:57 +00:00
Paul Ramsey
6e1cef07fb
run_test hangs on MSYS ( #1788 )
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9662 b70326c6-7e19-0410-871a-916f4a2858ee
2012-04-24 20:02:54 +00:00
Paul Ramsey
a7941df3ea
run_test hangs on MSYS ( #1788 )
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9661 b70326c6-7e19-0410-871a-916f4a2858ee
2012-04-24 19:56:35 +00:00
Sandro Santilli
5a74e2c988
fix ST_SymDifference(empty, geom) to return geom ( #1776 )
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9641 b70326c6-7e19-0410-871a-916f4a2858ee
2012-04-13 21:04:15 +00:00
Sandro Santilli
e7f244c94e
Do not consider RESET outputs
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9635 b70326c6-7e19-0410-871a-916f4a2858ee
2012-04-12 10:28:11 +00:00
Sandro Santilli
c1a7bd366f
Fix NaN from ptarray_locate_point with zero-length lines ( #1772 )
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9630 b70326c6-7e19-0410-871a-916f4a2858ee
2012-04-12 07:21:38 +00:00
Paul Ramsey
7174640cc5
Geometry has Z dimension but column does not ( #1755 )
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9615 b70326c6-7e19-0410-871a-916f4a2858ee
2012-04-05 18:25:22 +00:00
Sandro Santilli
37299b7198
Threat Infinite and 1.#INF the same ( #1736 )
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9612 b70326c6-7e19-0410-871a-916f4a2858ee
2012-04-05 09:11:43 +00:00
Sandro Santilli
504c4ac404
Fix crash on NULL item in ND index ( #1734 )
...
Add regression testing for the case
git-svn-id: http://svn.osgeo.org/postgis/trunk@9577 b70326c6-7e19-0410-871a-916f4a2858ee
2012-03-29 12:37:42 +00:00
Sandro Santilli
d95b1cf3ec
Add regression test for GiST index crash on empty ( #1697 )
...
Also tests you can query all empty items from an index
git-svn-id: http://svn.osgeo.org/postgis/trunk@9567 b70326c6-7e19-0410-871a-916f4a2858ee
2012-03-28 09:19:22 +00:00
Sandro Santilli
5b12e331cd
Have uninstall scripts drop created schemas, regress test it
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9558 b70326c6-7e19-0410-871a-916f4a2858ee
2012-03-27 18:14:39 +00:00
Sandro Santilli
7021eebac9
Accept POINT types in ST_MakeValid ( #1719 )
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9554 b70326c6-7e19-0410-871a-916f4a2858ee
2012-03-27 14:32:33 +00:00
Paul Ramsey
85ad3fea9d
Update regression to handle new collection(empty) possibilities
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9531 b70326c6-7e19-0410-871a-916f4a2858ee
2012-03-22 17:24:57 +00:00
Sandro Santilli
f509fae4ab
Add collapsed polygon case to ST_Simplify test ( #1698 )
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9529 b70326c6-7e19-0410-871a-916f4a2858ee
2012-03-22 15:07:11 +00:00
Sandro Santilli
5dfa7e3cc4
Add a ptarray_simplify parameter to preserve min vertices ( #1698 )
...
A polygon ring collapsed to a segment is still better handled by
mapnik than the same ring collapsed to a single point. This commit
retains at least 3 vertices for polygons.
git-svn-id: http://svn.osgeo.org/postgis/trunk@9528 b70326c6-7e19-0410-871a-916f4a2858ee
2012-03-22 15:07:03 +00:00
Paul Ramsey
29e2d6a299
Change @rm to rm for visibility
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9523 b70326c6-7e19-0410-871a-916f4a2858ee
2012-03-21 21:36:59 +00:00
Paul Ramsey
cf8753bd36
Make distclean should remove all the Makefile's generated by ./configure
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9522 b70326c6-7e19-0410-871a-916f4a2858ee
2012-03-21 20:32:29 +00:00
Sandro Santilli
e8263f6807
ST_SnapToGrid: retain type on empty return ( #1695 )
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9516 b70326c6-7e19-0410-871a-916f4a2858ee
2012-03-19 12:07:39 +00:00
Sandro Santilli
03de589457
Fix UTM zone reserved SRID interpretation ( #1680 )
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9476 b70326c6-7e19-0410-871a-916f4a2858ee
2012-03-12 17:45:48 +00:00
Paul Ramsey
e589b94396
Fix need to hack regress source path
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9424 b70326c6-7e19-0410-871a-916f4a2858ee
2012-03-07 20:47:38 +00:00
Sandro Santilli
9b4a6e70e5
Actually run GeoJSON input tests when libjson is available
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9419 b70326c6-7e19-0410-871a-916f4a2858ee
2012-03-07 11:39:46 +00:00
Paul Ramsey
729d1061cb
Try again with line endings, this time using eol-style instead of eol-type ( #1605 )
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9324 b70326c6-7e19-0410-871a-916f4a2858ee
2012-02-27 22:08:12 +00:00
Paul Ramsey
25183b11f1
Load the "right" legacy.sql file (warning: hard coding 00-regress-install into a sql file).
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9322 b70326c6-7e19-0410-871a-916f4a2858ee
2012-02-27 18:19:54 +00:00
Sandro Santilli
3e26b06206
Use rounder numbers in tests (fixes a regression on 32bit system)
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9320 b70326c6-7e19-0410-871a-916f4a2858ee
2012-02-27 18:07:38 +00:00
Paul Ramsey
a2d5be9c33
Ignore LF/CRLF differences when differencing sql output files in raster tests.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9319 b70326c6-7e19-0410-871a-916f4a2858ee
2012-02-27 17:48:46 +00:00
Sandro Santilli
38f653b4f2
Add regression test for legacy.sql and uninstall_legacy.sql ( #915 )
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9318 b70326c6-7e19-0410-871a-916f4a2858ee
2012-02-27 17:36:45 +00:00
Sandro Santilli
d74c49e369
Properly cleanup spatial_ref_sys after loader tests
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9317 b70326c6-7e19-0410-871a-916f4a2858ee
2012-02-27 17:36:36 +00:00
Sandro Santilli
c0817ada7c
Properly cleanup spatial_ref_sys
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9316 b70326c6-7e19-0410-871a-916f4a2858ee
2012-02-27 17:36:27 +00:00
Paul Ramsey
154d3402be
Compress sed calls into one to make life better for MSYS
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9300 b70326c6-7e19-0410-871a-916f4a2858ee
2012-02-25 19:46:00 +00:00
Paul Ramsey
fce22f0c5a
Correct fix for win32 crasher, it was proj returning a null error string.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9299 b70326c6-7e19-0410-871a-916f4a2858ee
2012-02-25 17:10:23 +00:00
Paul Ramsey
74c6e1f5a9
Match to new behavior on null proj4text
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9297 b70326c6-7e19-0410-871a-916f4a2858ee
2012-02-25 05:49:34 +00:00
Sandro Santilli
8976506406
Make sure the created backend temp directory is world writeable
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9290 b70326c6-7e19-0410-871a-916f4a2858ee
2012-02-24 20:17:38 +00:00
Paul Ramsey
2231700fde
Make sure the regress tmp directory exists before trying to write to it.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9287 b70326c6-7e19-0410-871a-916f4a2858ee
2012-02-24 18:49:09 +00:00
Sandro Santilli
b8d152cd66
Rename the backend temp dir and drop with brute force
...
Avoids errors when no test writes anything in there (so no dir)
git-svn-id: http://svn.osgeo.org/postgis/trunk@9284 b70326c6-7e19-0410-871a-916f4a2858ee
2012-02-24 15:23:13 +00:00
Sandro Santilli
5117b2c5c3
Properly drop the temporary directory setup for backend output
...
This prevents errors when running "make check" against backends
owned by different users.
git-svn-id: http://svn.osgeo.org/postgis/trunk@9283 b70326c6-7e19-0410-871a-916f4a2858ee
2012-02-24 10:21:17 +00:00
Sandro Santilli
e879837de2
Set the default regression temp dir to /tmp/pgis_reg ( #1607 )
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9277 b70326c6-7e19-0410-871a-916f4a2858ee
2012-02-23 13:28:16 +00:00
Paul Ramsey
46bbc14bfb
Switch to evaluating tests using psql with verbosity=terse
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9260 b70326c6-7e19-0410-871a-916f4a2858ee
2012-02-22 18:59:09 +00:00
Sandro Santilli
b37b7ccd99
Fix ST_Polygonize aggregate to retain Z ( #1602 )
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9258 b70326c6-7e19-0410-871a-916f4a2858ee
2012-02-22 17:19:42 +00:00
Sandro Santilli
892ff3af4a
Check SRID passed to UpdateGeometrySRID, patch by Mike Toews ( #1596 )
...
Adds regression testing
git-svn-id: http://svn.osgeo.org/postgis/trunk@9253 b70326c6-7e19-0410-871a-916f4a2858ee
2012-02-22 12:49:08 +00:00
Sandro Santilli
f8baf9f5ec
Add an --extensions switch to run_test ( #964 )
...
When passing that switch the install and uninstall of spatial db
happens using the EXTENSION model. It's currently not run as part
of "make check" because some tests fail due to use of ambiguos
calls when both core and raster modules are installed (there's no
way to separate them in the EXTENSION model).
git-svn-id: http://svn.osgeo.org/postgis/trunk@9243 b70326c6-7e19-0410-871a-916f4a2858ee
2012-02-21 09:43:22 +00:00
Sandro Santilli
9d6bb652bc
Put prepare/upgrade/uninstall operations in their own functions
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9242 b70326c6-7e19-0410-871a-916f4a2858ee
2012-02-21 09:07:59 +00:00
Sandro Santilli
bc47761f48
Do not take PROJ4 errno value as a sign of error ( #1580 )
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9194 b70326c6-7e19-0410-871a-916f4a2858ee
2012-02-15 15:59:52 +00:00
Sandro Santilli
2936722b2a
Fix crash with empty polygons in P-I-P tests ( #1578 )
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9191 b70326c6-7e19-0410-871a-916f4a2858ee
2012-02-14 17:57:45 +00:00
Sandro Santilli
f9662411e8
Make one-point lines convertible to GEOS, see #1543
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9184 b70326c6-7e19-0410-871a-916f4a2858ee
2012-02-14 13:31:22 +00:00
Sandro Santilli
3a01a0b486
Install topology comments too, when regressing topology
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9178 b70326c6-7e19-0410-871a-916f4a2858ee
2012-02-13 20:44:40 +00:00
Sandro Santilli
0c5e19d99e
Have regress install comments adn throw an error on failure ( #1532 )
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9164 b70326c6-7e19-0410-871a-916f4a2858ee
2012-02-13 10:58:35 +00:00
Sandro Santilli
9ebead2ba3
Have staged-install install comments when possible ( #1532 )
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9163 b70326c6-7e19-0410-871a-916f4a2858ee
2012-02-13 10:58:28 +00:00
Sandro Santilli
09f2037a16
Report svn revision
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9162 b70326c6-7e19-0410-871a-916f4a2858ee
2012-02-13 10:16:39 +00:00
Pierre Racine
f92b129006
Have perl to backup the file before editing. 'make check' is failing on Windows 7 without that.
...
See http://postgis.refractions.net/pipermail/postgis-devel/2012-February/018482.html
git-svn-id: http://svn.osgeo.org/postgis/trunk@9146 b70326c6-7e19-0410-871a-916f4a2858ee
2012-02-10 17:05:25 +00:00
Bborie Park
03ee5561c2
Added regression tests for raster2pgsql loader. Ticket is #1388
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9098 b70326c6-7e19-0410-871a-916f4a2858ee
2012-02-08 16:11:13 +00:00
Paul Ramsey
8902ea4a60
loader/Latin1 regression failure with database SQL_ASCII encoding ( #1465 ) from Greg Troxel
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9088 b70326c6-7e19-0410-871a-916f4a2858ee
2012-02-08 00:23:11 +00:00
Paul Ramsey
90fbf399ec
ST_MinimumBoundingCircle needs regression test ( #1042 )
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9082 b70326c6-7e19-0410-871a-916f4a2858ee
2012-02-07 23:49:15 +00:00
Paul Ramsey
dc50908ce4
Test non-empty new types in regress/wkb ( #1477 )
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9075 b70326c6-7e19-0410-871a-916f4a2858ee
2012-02-07 21:14:41 +00:00
Paul Ramsey
c1f7407a09
Geography should support SRIDs other than 4326 ( #1538 )
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9029 b70326c6-7e19-0410-871a-916f4a2858ee
2012-02-04 01:30:14 +00:00
Paul Ramsey
6f7d7ff0d1
Enhance ST_Rotate by adding offset origin parameters ( #1251 ) from mwtoews
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9006 b70326c6-7e19-0410-871a-916f4a2858ee
2012-02-01 21:27:01 +00:00
Paul Ramsey
6d7805f287
ST_Azimuth, ST_Project regression tests ( #1398 )
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9005 b70326c6-7e19-0410-871a-916f4a2858ee
2012-02-01 21:17:10 +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
Nicklas Avén
75ce3f50f8
Increase robustness in distance-calculations when point is on segment.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8965 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-29 23:30:18 +00:00
Paul Ramsey
e191c1b467
Be more liberal in accepting "empty" tags in constructing geometries from GML ( #1059 )
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8963 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-29 19:57:34 +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
Paul Ramsey
6b4147d1b0
Complete #737
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8939 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-26 20:25:29 +00:00
Sandro Santilli
94924ea69c
Change expectations from tests involving ST_MakeLine
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8937 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-26 18:09:57 +00:00
Sandro Santilli
f74cdad7df
Add support for linestrings in ST_MakeLine ( #1500 )
...
Affects both the aggregate and the 2-parameters function.
Regression testing included.
Documentation was updated, but lacks examples.
git-svn-id: http://svn.osgeo.org/postgis/trunk@8931 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-26 13:00:08 +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
Paul Ramsey
b2ec478bd1
Test for #1150 , null entry in spatial_ref_sys
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8913 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-24 17:20:57 +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
Sandro Santilli
6fcfe1cd01
Test new types in regress/wkt ( #1476 )
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8890 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-20 10:02:24 +00:00
Sandro Santilli
8a31acd642
Change ST_Equals to use the ~= operator ( #1453 )
...
Doing so it will consistently return TRUE for EMPTY-EMPTY, while
previously _ST_Equals returned TRUE but ST_Equals returned FALSE.
The commit also changes signature of the C function
from 'geomequals' to 'ST_Equals' and marks an SQL 'Equals'
signature as a candidate for dropping before 2.0.0 final
git-svn-id: http://svn.osgeo.org/postgis/trunk@8886 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-20 08:12:15 +00:00
Sandro Santilli
aafbcf5eb3
Add test for cached version of point_in_ring ( #852 )
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8874 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-19 09:48:57 +00:00
Sandro Santilli
f50d10ed8d
Drop use of tolerance in PIP ( #852 )
...
Affects point_in_ring and point_in_ring_rtree.
Includes regress test but not hitting the cache.
git-svn-id: http://svn.osgeo.org/postgis/trunk@8873 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-19 08:59:41 +00:00
Sandro Santilli
a04e35997a
Do not run the upgrade test if the normal test failed
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8872 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-19 08:16:39 +00:00
Sandro Santilli
449a50d5e7
Oops, forgot to cleanup after debugging (triggered testsuite failure)
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8871 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-19 08:16:34 +00:00
Sandro Santilli
e926170dfd
Rework st_estimated_extent to deal with analyzed empty tables ( #818 )
...
Still doesn't distinguish between empty and not analyzed recently
(might be improved in that reguard)
git-svn-id: http://svn.osgeo.org/postgis/trunk@8870 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-18 15:47:45 +00:00
Sandro Santilli
47ff517045
Complete binary IO testing in presence of typmod ( #850 )
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8867 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-18 13:46:50 +00:00
Sandro Santilli
4d6e687941
Do proper cleanups
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8866 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-18 13:46:27 +00:00
Sandro Santilli
19351fbc0e
Have geography typmod threat unkonwn srid an omitted srid ( #1482 )
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8864 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-18 10:17:24 +00:00
Sandro Santilli
48b38aa5e0
Add --expect switch to save obtained output as expected
...
Will help generating testcases
git-svn-id: http://svn.osgeo.org/postgis/trunk@8863 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-18 10:17:17 +00:00
Sandro Santilli
2da836b781
Drop the support for multiple expected files (not needed anymore)
...
The support was also broken, btw...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8862 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-18 10:17:12 +00:00
Sandro Santilli
7091a479fc
Test roundtrip with a binary cursor for both geometry and geography
...
With this commit the binary.sql testcase doesn't test the actual
binary output anymore but rather uses canonical binary output to
copy objects to a temporary file, then uses canonical binary input
to read the objects again into a new table and then compares the
original and the final tables.
In order for this to work run_test was modified to pass a :tmpfile
variable to testcases. Next stop: typmod for canonical binary input.
See ticket #850 for more info
git-svn-id: http://svn.osgeo.org/postgis/trunk@8861 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-18 08:19:42 +00:00
Sandro Santilli
ea3128b4ec
Implement canonical input-output for geography ( #850 )
...
Note: canonical output is tested, input isn't.
git-svn-id: http://svn.osgeo.org/postgis/trunk@8860 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-17 20:01:36 +00:00
Sandro Santilli
b798e45d87
Test canonical binary output for geometry ( #850 )
...
NOTE: big-endian machines are expected to fail this new test
please send your actual output for a fix
git-svn-id: http://svn.osgeo.org/postgis/trunk@8859 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-17 19:15:48 +00:00
Sandro Santilli
004771dcb7
Support alternate expected files
...
Useful to test WKB output on different byte-endian machines.
git-svn-id: http://svn.osgeo.org/postgis/trunk@8858 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-17 19:15:41 +00:00
Sandro Santilli
b190d81331
Support for binary output ( #850 )
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8857 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-17 19:15:20 +00:00
Sandro Santilli
54b115e6b0
Override geometrytype for geography ( #1450 ).
...
The testusite runs without problems so I didn't also add a
geometrytype(text) function [I want the implicit cast!]
git-svn-id: http://svn.osgeo.org/postgis/trunk@8856 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-17 18:04:58 +00:00
Sandro Santilli
3a61ab1f87
Run the testsuite again after upgrading ( #1326 )
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8855 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-17 17:52:57 +00:00
Sandro Santilli
f5cb231784
Reword loading of upgrade scripts
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8854 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-17 17:52:46 +00:00
Sandro Santilli
419470fc86
Enhance staged install to include raster, topology and all scripts
...
Add an --upgrade switch to regress/run_test in preparation of
regress testing upgrade scripts (#1326 )
git-svn-id: http://svn.osgeo.org/postgis/trunk@8853 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-17 17:13:32 +00:00
Sandro Santilli
f948a4a8f0
Snap output of test for #723 to a grid
...
The test was failing due to coordinate drifts on 32bit
git-svn-id: http://svn.osgeo.org/postgis/trunk@8850 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-16 21:13:08 +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
a075c7eb3b
Keep UTM zone numbers in range, regress-test _ST_BestSRID ( #1234 )
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8846 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-16 17:00:50 +00:00
Sandro Santilli
5d014cb337
Add test for insertion into typmod-ed table ( #1414 )
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8836 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-16 12:10:05 +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
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
Sandro Santilli
1bea82ec62
Update loader tests to use the new reprojection switch [ #994 ]
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8473 b70326c6-7e19-0410-871a-916f4a2858ee
2011-12-19 19:21:26 +00:00
Sandro Santilli
790b81e736
Update after typo fix for AddGeometryColumn error message
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8452 b70326c6-7e19-0410-871a-916f4a2858ee
2011-12-18 14:24:17 +00:00
Sandro Santilli
da36dfce37
Fix st_extent on empty relation ( #1385 )
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8451 b70326c6-7e19-0410-871a-916f4a2858ee
2011-12-18 14:22:43 +00:00
Sandro Santilli
9ecf9421a3
Add test for #1344 (can't dump invalid geometries)
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8444 b70326c6-7e19-0410-871a-916f4a2858ee
2011-12-16 14:59:34 +00:00
Sandro Santilli
5695c7f69c
Check typmod on geometry input. Fixes before triggers ( #1320 )
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8431 b70326c6-7e19-0410-871a-916f4a2858ee
2011-12-15 23:26:28 +00:00
Sandro Santilli
e16aeffbcd
Make dropping of log files fully controlled by switch ( #1376 )
...
This is because hudson wants to report the regress.log in any case
git-svn-id: http://svn.osgeo.org/postgis/trunk@8416 b70326c6-7e19-0410-871a-916f4a2858ee
2011-12-14 18:33:03 +00:00
Sandro Santilli
c35cc257f9
Regress test all behaviors involving EMPTY geometries
...
See http://trac.osgeo.org/postgis/wiki/DevWikiEmptyGeometry
Changes ST_NumPoints and ST_ExteriorRing to behave requested.
Keeps ST_InteriorRingN returning NULL, as per "n is out of range"
Closes #692
git-svn-id: http://svn.osgeo.org/postgis/trunk@8415 b70326c6-7e19-0410-871a-916f4a2858ee
2011-12-14 18:25:05 +00:00
Sandro Santilli
e0ef34d6d8
Drop temporary files if there are no failures ( #1376 )
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8413 b70326c6-7e19-0410-871a-916f4a2858ee
2011-12-14 17:13:46 +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
ebcbd6dc1a
Fix a typo from last commit, stub test for GML emptyness
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8411 b70326c6-7e19-0410-871a-916f4a2858ee
2011-12-14 15:07:27 +00:00
Sandro Santilli
ace7034eda
Enable a test for an old bugfix ( #683 )
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8410 b70326c6-7e19-0410-871a-916f4a2858ee
2011-12-14 14:46:45 +00:00
Sandro Santilli
bd52e9708d
Move the EMPTY buffer test from tickets.sql to empty.sql
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8409 b70326c6-7e19-0410-871a-916f4a2858ee
2011-12-14 14:46:39 +00:00
Sandro Santilli
ed841457ad
Return empty geoms snapped to a grid as immutated ( #1089 )
...
Also introduces an "empty" regression test
git-svn-id: http://svn.osgeo.org/postgis/trunk@8408 b70326c6-7e19-0410-871a-916f4a2858ee
2011-12-14 14:37:18 +00:00
Sandro Santilli
a83ff63d4d
Maintain the buffer-returns-areal invariant on empty input ( #322 )
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8382 b70326c6-7e19-0410-871a-916f4a2858ee
2011-12-13 12:00:56 +00:00
Sandro Santilli
5764c37a57
Allow calling ST_MakeEnvelope w/out a srid ( #1339 )
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8332 b70326c6-7e19-0410-871a-916f4a2858ee
2011-12-09 12:25:37 +00:00
Sandro Santilli
aa89332e6e
Have ST_Estimated_Extent return NULL when no stats are found for a table.
...
No stats means empty table or no run of analyze. Warn about that.
These Fixes bug #877 . Includes regress test.
git-svn-id: http://svn.osgeo.org/postgis/trunk@8319 b70326c6-7e19-0410-871a-916f4a2858ee
2011-12-08 11:29:00 +00:00
Sandro Santilli
48da4e3e31
Hush VACUUM and ANALYZE backend feedback while running tests
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8318 b70326c6-7e19-0410-871a-916f4a2858ee
2011-12-08 11:28:53 +00:00
Paul Ramsey
9ac7c6da23
Revert per #1246
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8243 b70326c6-7e19-0410-871a-916f4a2858ee
2011-11-26 05:04:27 +00:00