Commit graph

639 commits

Author SHA1 Message Date
Sandro Santilli beb62064f5 Make sure to "round-to-float" boxes read from serialized, no matter if there was or not a cache. Fixes #1273. Includes regress testing. Note: would be worth to also test the 2-points line case (I didn't in this specific commit, but the patch should fix that as well).
git-svn-id: http://svn.osgeo.org/postgis/trunk@8134 b70326c6-7e19-0410-871a-916f4a2858ee
2011-11-10 11:10:19 +00:00
Sandro Santilli 73b263a001 Give unique names to linearref tests
git-svn-id: http://svn.osgeo.org/postgis/trunk@8114 b70326c6-7e19-0410-871a-916f4a2858ee
2011-11-08 08:55:14 +00:00
Sandro Santilli 29b697dbc8 Add SQL-level tests for ST_Node (#1206)
git-svn-id: http://svn.osgeo.org/postgis/trunk@8093 b70326c6-7e19-0410-871a-916f4a2858ee
2011-11-04 18:24:54 +00:00
Sandro Santilli 6a184b663c Add test for ST_Summary
git-svn-id: http://svn.osgeo.org/postgis/trunk@8083 b70326c6-7e19-0410-871a-916f4a2858ee
2011-11-02 16:53:09 +00:00
Paul Ramsey d2979ad268 Actually we use bash code, not sh code
git-svn-id: http://svn.osgeo.org/postgis/trunk@7979 b70326c6-7e19-0410-871a-916f4a2858ee
2011-10-13 17:54:37 +00:00
Sandro Santilli 26646ad7cd Typename in type specifier doesn't need to be quoted.
git-svn-id: http://svn.osgeo.org/postgis/trunk@7970 b70326c6-7e19-0410-871a-916f4a2858ee
2011-10-11 14:37:48 +00:00
Sandro Santilli 9d7ebcb3e1 Do not use AddGeometryColumn, to avoid having to write an explicit unknown SRID value.
git-svn-id: http://svn.osgeo.org/postgis/trunk@7965 b70326c6-7e19-0410-871a-916f4a2858ee
2011-10-10 19:25:11 +00:00
Sandro Santilli 4f9e710513 Hush NOTICES in regress test currently not emitting any (propedeutic for srid clamping in AddGeometryColumn, which is invoked with SRID=-1 by this testcase)
git-svn-id: http://svn.osgeo.org/postgis/trunk@7964 b70326c6-7e19-0410-871a-916f4a2858ee
2011-10-10 17:50:48 +00:00
Sandro Santilli 2e970a0f99 Do not input an explicit value to mean unknown SRID
git-svn-id: http://svn.osgeo.org/postgis/trunk@7961 b70326c6-7e19-0410-871a-916f4a2858ee
2011-10-10 07:20:59 +00:00
Sandro Santilli ded28891a0 Do not use an explicit SRID=-1 in EKWT. It's not needed.
git-svn-id: http://svn.osgeo.org/postgis/trunk@7953 b70326c6-7e19-0410-871a-916f4a2858ee
2011-10-06 07:18:16 +00:00
Sandro Santilli 69d951fe76 Do not use an explicit SRID=-1 in EKWT. It's not needed.
git-svn-id: http://svn.osgeo.org/postgis/trunk@7952 b70326c6-7e19-0410-871a-916f4a2858ee
2011-10-06 06:57:42 +00:00
Sandro Santilli a25f098269 don't try to call postgis_gdal_version() if not testing raster (the signature is unavailable)
git-svn-id: http://svn.osgeo.org/postgis/trunk@7946 b70326c6-7e19-0410-871a-916f4a2858ee
2011-10-04 23:13:28 +00:00
Bborie Park 54d6bc0265 Adds postgis_gdal_version() function as per ticket #1225.
git-svn-id: http://svn.osgeo.org/postgis/trunk@7945 b70326c6-7e19-0410-871a-916f4a2858ee
2011-10-04 22:38:46 +00:00
Paul Ramsey afa9374199 Change "no SRID" SRID to 0 (#286)
git-svn-id: http://svn.osgeo.org/postgis/trunk@7912 b70326c6-7e19-0410-871a-916f4a2858ee
2011-09-28 23:38:56 +00:00
Sandro Santilli 9fcdd4e110 Handle db initialization errors earlier
git-svn-id: http://svn.osgeo.org/postgis/trunk@7840 b70326c6-7e19-0410-871a-916f4a2858ee
2011-09-12 16:02:32 +00:00
Sandro Santilli 0571e6c211 With libtool for loader/dumper there's no need to stage-install them
Fixes ticket #1177 [RT-SIGTA]

git-svn-id: http://svn.osgeo.org/postgis/trunk@7795 b70326c6-7e19-0410-871a-916f4a2858ee
2011-08-31 07:06:57 +00:00
Sandro Santilli 09ea66209a Export lwgeom_sharedpaths to liblwgeom, and fix exception message [RT-SIGTA]
git-svn-id: http://svn.osgeo.org/postgis/trunk@7731 b70326c6-7e19-0410-871a-916f4a2858ee
2011-08-12 09:11:26 +00:00
Sandro Santilli ab6fa15783 Set 'C' collation when creating regress database. See #1140.
git-svn-id: http://svn.osgeo.org/postgis/trunk@7665 b70326c6-7e19-0410-871a-916f4a2858ee
2011-07-23 21:34:10 +00:00
Sandro Santilli 897bd49c58 Improve testsuite predictability (#1135)
git-svn-id: http://svn.osgeo.org/postgis/trunk@7656 b70326c6-7e19-0410-871a-916f4a2858ee
2011-07-20 19:53:57 +00:00
Sandro Santilli 0bc62ec262 A couple more tests for btree against points: different points, differently cached boxes
git-svn-id: http://svn.osgeo.org/postgis/trunk@7584 b70326c6-7e19-0410-871a-916f4a2858ee
2011-07-04 15:40:22 +00:00
Sandro Santilli 06d5c47379 Add test for btree equality of points (#1023)
git-svn-id: http://svn.osgeo.org/postgis/trunk@7580 b70326c6-7e19-0410-871a-916f4a2858ee
2011-07-04 14:14:59 +00:00
Sandro Santilli 429d9910b8 Fix support for MULTICURVEZM and make TIN spelling conformant to other (MixedCase). Add cohomprensive regress test for postgis_type_name(). Closes bug #1096 once again.
git-svn-id: http://svn.osgeo.org/postgis/trunk@7576 b70326c6-7e19-0410-871a-916f4a2858ee
2011-07-04 11:24:46 +00:00
Regina Obe d0acd44696 revise wmsservers_new to use new typmod and not directly delete and add to geometry_columns so passes regress
git-svn-id: http://svn.osgeo.org/postgis/trunk@7549 b70326c6-7e19-0410-871a-916f4a2858ee
2011-07-02 09:27:54 +00:00
Regina Obe 5173baa923 #944, #1081, #1083, #1088, #1084: Convert geometry_columns to a view, revise management functions to not update/delete from geometry_columns and to support typmod. Will use typmod behavior as default
fix typos in postgis_type_name and delete from geometry_column calls in regress.

git-svn-id: http://svn.osgeo.org/postgis/trunk@7548 b70326c6-7e19-0410-871a-916f4a2858ee
2011-07-02 08:58:38 +00:00
Sandro Santilli 1319434b8f Add 2 more testcases for ST_OffsetCurve, one of which returning a MULTILINESTRING
git-svn-id: http://svn.osgeo.org/postgis/trunk@7540 b70326c6-7e19-0410-871a-916f4a2858ee
2011-07-01 11:47:41 +00:00
Sandro Santilli 755cf362ed Well, let's run the ST_OffsetCurve regress test only against GEOS-3.3. After all it's known to fail against 3.2 ... (due to http://trac.osgeo.org/geos/ticket/455#comment:1)
git-svn-id: http://svn.osgeo.org/postgis/trunk@7538 b70326c6-7e19-0410-871a-916f4a2858ee
2011-07-01 10:36:22 +00:00
Sandro Santilli 1ea8ac3dea Test LINESTRING EMPTY return from ST_OffsetCurve
git-svn-id: http://svn.osgeo.org/postgis/trunk@7537 b70326c6-7e19-0410-871a-916f4a2858ee
2011-07-01 10:14:52 +00:00
Sandro Santilli f6de6b26ea Properly convert typed empties coming from GEOS.
git-svn-id: http://svn.osgeo.org/postgis/trunk@7536 b70326c6-7e19-0410-871a-916f4a2858ee
2011-07-01 10:10:27 +00:00
Sandro Santilli 7edd2a57f1 Add ST_OffsetCurve function supporting both GEOS-3.2 and GEOS-3.3+. Uses distance parameter sign to derive left/right side. Includes regress testing and documentation. Based on patch by Rafal Magda.
git-svn-id: http://svn.osgeo.org/postgis/trunk@7534 b70326c6-7e19-0410-871a-916f4a2858ee
2011-07-01 09:56:11 +00:00
Paul Ramsey 9a84f1b1a3 GEOS no like POINT EMPTY (#1060)
git-svn-id: http://svn.osgeo.org/postgis/trunk@7523 b70326c6-7e19-0410-871a-916f4a2858ee
2011-06-29 22:40:40 +00:00
Regina Obe 739089d4e0 version garden test files so now named raster_gardentest_20.sql, postgis_gardentest_20.sql. Add reclassarg type example to raster garden objects
git-svn-id: http://svn.osgeo.org/postgis/trunk@7494 b70326c6-7e19-0410-871a-916f4a2858ee
2011-06-27 01:53:51 +00:00
Paul Ramsey c8895dad12 Re-base circular bbox regressions
git-svn-id: http://svn.osgeo.org/postgis/trunk@7453 b70326c6-7e19-0410-871a-916f4a2858ee
2011-06-23 15:36:54 +00:00
Paul Ramsey 6cd1c12b95 Quiet regression failure for minor rounding difference.
git-svn-id: http://svn.osgeo.org/postgis/trunk@7417 b70326c6-7e19-0410-871a-916f4a2858ee
2011-06-17 22:36:28 +00:00
Paul Ramsey c8d72b79fd Bounding box calculation for straight CircString fails (#668)
git-svn-id: http://svn.osgeo.org/postgis/trunk@7416 b70326c6-7e19-0410-871a-916f4a2858ee
2011-06-17 22:18:59 +00:00
Paul Ramsey a15d906c1d Move from GSERIALIZED off by default to on by default. Adjust minor regression changes as necessary.
git-svn-id: http://svn.osgeo.org/postgis/trunk@7389 b70326c6-7e19-0410-871a-916f4a2858ee
2011-06-13 21:31:49 +00:00
Paul Ramsey e01f1fd579 Minor change to work with gserialzed
git-svn-id: http://svn.osgeo.org/postgis/trunk@7353 b70326c6-7e19-0410-871a-916f4a2858ee
2011-06-09 21:27:47 +00:00
Sandro Santilli 5c758a4fa9 The box2d of an empty geometry is NULL, not a point. Closes ticket #938 and regress-tests it.
git-svn-id: http://svn.osgeo.org/postgis/trunk@7307 b70326c6-7e19-0410-871a-916f4a2858ee
2011-06-01 12:31:58 +00:00
Regina Obe c008162436 treating as executable didn't help - going to reinit my db as utf-8 instead
git-svn-id: http://svn.osgeo.org/postgis/trunk@7204 b70326c6-7e19-0410-871a-916f4a2858ee
2011-05-20 20:18:59 +00:00
Sandro Santilli 7b8f8ce255 Strip 'SELECT' feedback from regression test outputs
git-svn-id: http://svn.osgeo.org/postgis/trunk@7173 b70326c6-7e19-0410-871a-916f4a2858ee
2011-05-17 15:58:34 +00:00
Chris Hodgson 76e7146ef7 added regess test for #884
git-svn-id: http://svn.osgeo.org/postgis/trunk@7139 b70326c6-7e19-0410-871a-916f4a2858ee
2011-05-12 22:05:03 +00:00
Sandro Santilli 60df85bce6 Fix path to raster (regress) enabler script. Fixes ticket #947.
git-svn-id: http://svn.osgeo.org/postgis/trunk@7115 b70326c6-7e19-0410-871a-916f4a2858ee
2011-05-09 14:07:12 +00:00
Chris Hodgson bf60906378 merged changes r7092 to fix null handling in st_collect for #912, #630 in 1.5 branch into trunk
git-svn-id: http://svn.osgeo.org/postgis/trunk@7093 b70326c6-7e19-0410-871a-916f4a2858ee
2011-05-04 23:56:34 +00:00
Regina Obe 2ab25a9867 Use strk's suggestion of quieting hudson reqress by adding a \set VERBOSITY terse
git-svn-id: http://svn.osgeo.org/postgis/trunk@7080 b70326c6-7e19-0410-871a-916f4a2858ee
2011-05-03 12:45:31 +00:00
Olivier Courtin 09700c3845 Fix #933. Update related unit test. Add a convenient way to trace error in ST_GeomFromGML function
git-svn-id: http://svn.osgeo.org/postgis/trunk@7074 b70326c6-7e19-0410-871a-916f4a2858ee
2011-04-30 08:29:09 +00:00
Olivier Courtin c97e322a94 Add LinearRing unit test for ST_GeomFromGML. Related to #905
git-svn-id: http://svn.osgeo.org/postgis/trunk@7072 b70326c6-7e19-0410-871a-916f4a2858ee
2011-04-29 18:39:38 +00:00
Olivier Courtin c21dad8b29 Add an srid default value as second optional parameter for ST_GeomFromGML. Related to #906. Remove a wrong srsName definition. Update doc and unit test
git-svn-id: http://svn.osgeo.org/postgis/trunk@7071 b70326c6-7e19-0410-871a-916f4a2858ee
2011-04-29 17:44:00 +00:00
Sandro Santilli c7ec501ef9 Implement SnapToGrid for CIRCULARSTRING and COMPOUNDCURVE. Just enough to fix #183.
git-svn-id: http://svn.osgeo.org/postgis/trunk@7029 b70326c6-7e19-0410-871a-916f4a2858ee
2011-04-14 11:07:33 +00:00
Sandro Santilli 84f1a5af38 Add test for ticket #834
git-svn-id: http://svn.osgeo.org/postgis/trunk@7024 b70326c6-7e19-0410-871a-916f4a2858ee
2011-04-13 11:21:31 +00:00
Regina Obe 0d1e1ca68a Quiet quiet Hudson
git-svn-id: http://svn.osgeo.org/postgis/trunk@7019 b70326c6-7e19-0410-871a-916f4a2858ee
2011-04-12 12:34:12 +00:00
Sandro Santilli e38fac3d06 Add support for a RUNTESTFLAGS variable so you can do something like: 'make check RUNTESTFLAGS=-v' and get the problems printed w/out having to look at logs.
git-svn-id: http://svn.osgeo.org/postgis/trunk@7015 b70326c6-7e19-0410-871a-916f4a2858ee
2011-04-11 09:54:06 +00:00
Sandro Santilli f14cf72b71 Do not raise an exception from DropGeometryTable if a non-existing table is given. Patch by Andrea Peri. Regress test mine. Closes ticket #861.
git-svn-id: http://svn.osgeo.org/postgis/trunk@7014 b70326c6-7e19-0410-871a-916f4a2858ee
2011-04-11 09:53:55 +00:00
Regina Obe 3cc1d00614 Get rid of some tests in _ST_ConcaveHull and only attempt to make a polygon if the line is simple. ST_Covers is causing me quite a bit of greif as a testing tool. don't recall so many topo node this and that in GEOS 3.2 ST_Covers. Also add in some regress tests for ST_ConcaveHull -- more to come.
git-svn-id: http://svn.osgeo.org/postgis/trunk@7006 b70326c6-7e19-0410-871a-916f4a2858ee
2011-04-05 22:26:45 +00:00
Jorge Arévalo e3dba3f6ca Raster testing added to core testing. Related ticket #762.
git-svn-id: http://svn.osgeo.org/postgis/trunk@6994 b70326c6-7e19-0410-871a-916f4a2858ee
2011-04-01 05:18:45 +00:00
Regina Obe eecdd1859a try to save as utf-8
git-svn-id: http://svn.osgeo.org/postgis/trunk@6990 b70326c6-7e19-0410-871a-916f4a2858ee
2011-03-29 14:58:53 +00:00
Regina Obe 5e10e8dbd7 that didn't work. Try resaving as latin1 and then repull down.
git-svn-id: http://svn.osgeo.org/postgis/trunk@6989 b70326c6-7e19-0410-871a-916f4a2858ee
2011-03-29 14:10:39 +00:00
Regina Obe 6c4895a005 mark this as an executable then maybe just mamber it won't try to inherit the encoding of my OS
git-svn-id: http://svn.osgeo.org/postgis/trunk@6988 b70326c6-7e19-0410-871a-916f4a2858ee
2011-03-29 13:57:48 +00:00
Regina Obe 7df07b93b1 attempt to quiet floating point erros in reprojection by roudning the coordinates (worked on mingw and still works after change). I assume -ws are when using -w switch?
git-svn-id: http://svn.osgeo.org/postgis/trunk@6977 b70326c6-7e19-0410-871a-916f4a2858ee
2011-03-28 20:21:46 +00:00
Nicklas Avén 517bd984db Renaming of 3D functions, #817
git-svn-id: http://svn.osgeo.org/postgis/trunk@6974 b70326c6-7e19-0410-871a-916f4a2858ee
2011-03-27 17:50:58 +00:00
Sandro Santilli 3fcf312af1 Add test for ST_Polygonize with nested collection input (see ticket #878)
git-svn-id: http://svn.osgeo.org/postgis/trunk@6951 b70326c6-7e19-0410-871a-916f4a2858ee
2011-03-21 16:33:14 +00:00
Paul Ramsey 732500cbca Jeff Adams: Removed not-really-necessary -m1 parameter from grep call because it does not work on MingW.
git-svn-id: http://svn.osgeo.org/postgis/trunk@6933 b70326c6-7e19-0410-871a-916f4a2858ee
2011-03-18 19:22:43 +00:00
Paul Ramsey 9b394f152f Jeff Adams: Added regression test for LATIN1 encoding, fixed failure to convert to UTF8. (#808)
git-svn-id: http://svn.osgeo.org/postgis/trunk@6932 b70326c6-7e19-0410-871a-916f4a2858ee
2011-03-18 19:13:26 +00:00
Paul Ramsey 66501d2ca8 Jeff Adams: Added dumping tests for -G versions of loader regress tests.
git-svn-id: http://svn.osgeo.org/postgis/trunk@6930 b70326c6-7e19-0410-871a-916f4a2858ee
2011-03-18 18:30:23 +00:00
Paul Ramsey a262bdacbb Jeff Adams: Now runs all the normal regression tests with the -G option as well. (#358)
git-svn-id: http://svn.osgeo.org/postgis/trunk@6929 b70326c6-7e19-0410-871a-916f4a2858ee
2011-03-18 18:21:25 +00:00
Paul Ramsey c94ae0b2b9 Jeff Adams: Adding a regression test for the loader that uses a schema-qualified table name.
git-svn-id: http://svn.osgeo.org/postgis/trunk@6928 b70326c6-7e19-0410-871a-916f4a2858ee
2011-03-18 17:36:01 +00:00
Paul Ramsey 359ab99a41 Jeff Adams: Increasing precision due to tests failing in automatic build.
git-svn-id: http://svn.osgeo.org/postgis/trunk@6925 b70326c6-7e19-0410-871a-916f4a2858ee
2011-03-18 16:24:33 +00:00
Paul Ramsey a2c725a6fb Fixes the following shp2pgsql issues:
#229: A new "-r" command line parameter to specify a "from" SRID for reprojecting (the existing -s is the "to").
#779: -S now works for points, and -w is documented.
#864: MULTIPOINT shapefiles with single-vertex points now correctly load with all MULTIPOINTs.
#865: no longer crashes when both -g and -G are used.



git-svn-id: http://svn.osgeo.org/postgis/trunk@6922 b70326c6-7e19-0410-871a-916f4a2858ee
2011-03-18 15:40:31 +00:00
Paul Ramsey 5138704f4c Jeff Adams: Only automatically run -D tests if no custom parameters have been set.
git-svn-id: http://svn.osgeo.org/postgis/trunk@6912 b70326c6-7e19-0410-871a-916f4a2858ee
2011-03-16 19:16:00 +00:00
Paul Ramsey 2db8d4de0e Jeff Adams patch to add command line flag to not use a transaction. (#110)
git-svn-id: http://svn.osgeo.org/postgis/trunk@6909 b70326c6-7e19-0410-871a-916f4a2858ee
2011-03-16 17:16:47 +00:00
Paul Ramsey 723ec49f79 Jeff Adams new testing of loader with cmd line options.
git-svn-id: http://svn.osgeo.org/postgis/trunk@6907 b70326c6-7e19-0410-871a-916f4a2858ee
2011-03-16 14:06:54 +00:00
Paul Ramsey e6a6199ff7 Jeff Adams patch to allow pre/post actions in regression tests
git-svn-id: http://svn.osgeo.org/postgis/trunk@6906 b70326c6-7e19-0410-871a-916f4a2858ee
2011-03-16 13:03:12 +00:00
Regina Obe aa1e714482 Add regress tests for populate_geometry_columns,DropGeometryTable
git-svn-id: http://svn.osgeo.org/postgis/trunk@6901 b70326c6-7e19-0410-871a-916f4a2858ee
2011-03-15 14:04:45 +00:00
Sandro Santilli e1995b0a7a Add a --raster flag to run_test
git-svn-id: http://svn.osgeo.org/postgis/trunk@6892 b70326c6-7e19-0410-871a-916f4a2858ee
2011-03-10 18:53:57 +00:00
Sandro Santilli ab43b6a552 Ticket #844: add support for boundary node rule specification in ST_Relate [RT-SIGTA]
git-svn-id: http://svn.osgeo.org/postgis/trunk@6882 b70326c6-7e19-0410-871a-916f4a2858ee
2011-03-08 10:23:42 +00:00
Sandro Santilli 67823f089f Enable a very old relate test which for some reason was never automatically run
git-svn-id: http://svn.osgeo.org/postgis/trunk@6881 b70326c6-7e19-0410-871a-916f4a2858ee
2011-03-08 08:16:16 +00:00
Sandro Santilli 02ca0487d2 Improve precision of point_in_ring. Fixes and regress-tests bug #845.
git-svn-id: http://svn.osgeo.org/postgis/trunk@6857 b70326c6-7e19-0410-871a-916f4a2858ee
2011-02-24 15:17:37 +00:00
Sandro Santilli 24d063a3bd Ticket #816: flag to select <LineString> over <Curve> for GML3 line output [RT-SIGTA]
git-svn-id: http://svn.osgeo.org/postgis/trunk@6852 b70326c6-7e19-0410-871a-916f4a2858ee
2011-02-22 14:52:51 +00:00
Sandro Santilli c55e590545 Stop on first error when creating the regress db
git-svn-id: http://svn.osgeo.org/postgis/trunk@6829 b70326c6-7e19-0410-871a-916f4a2858ee
2011-02-16 10:19:28 +00:00
Sandro Santilli 876edb5576 Expose versions of ST_IsValid and ST_IsValidReason accepting "the ESRI flag" and implemented as wrappers to ST_IsValidDetail. Only available when building against GEOS-3.3+. Commit includes documentation and regress-testing. Closes ticket #831 [RT-SIGTA]
git-svn-id: http://svn.osgeo.org/postgis/trunk@6828 b70326c6-7e19-0410-871a-916f4a2858ee
2011-02-16 10:19:22 +00:00
Sandro Santilli 9d03ce5921 Only run ST_isValidDetail if GEOS is >= 3.3 -- Reduce tests for GEOS version grouping togheter tests depending on the same version [RT-SIGTA]
git-svn-id: http://svn.osgeo.org/postgis/trunk@6827 b70326c6-7e19-0410-871a-916f4a2858ee
2011-02-16 09:12:50 +00:00
Sandro Santilli 574772c087 Regression test for ST_isValidDetail (including "ESRI" flag) [RT-SIGTA]
git-svn-id: http://svn.osgeo.org/postgis/trunk@6826 b70326c6-7e19-0410-871a-916f4a2858ee
2011-02-16 08:54:03 +00:00
Sandro Santilli 415c0aef9b ST_UnaryUnion and test
git-svn-id: http://svn.osgeo.org/postgis/trunk@6816 b70326c6-7e19-0410-871a-916f4a2858ee
2011-02-14 17:26:38 +00:00
Sandro Santilli 9168166117 Also set LANG (see ticket #819) [RT-SIGTA]
git-svn-id: http://svn.osgeo.org/postgis/trunk@6786 b70326c6-7e19-0410-871a-916f4a2858ee
2011-02-07 17:03:11 +00:00
Sandro Santilli 60931579e5 Add test for ST_AsGML with long srsName. Expects what at first sight looked like a bug (#804).
git-svn-id: http://svn.osgeo.org/postgis/trunk@6697 b70326c6-7e19-0410-871a-916f4a2858ee
2011-01-22 18:46:13 +00:00
Regina Obe d697ad8ad3 #722: remove more deprecated functions - ST_MakeLineGArray, Polygonize_GArray,PointFromWKB (proto), max_distance
git-svn-id: http://svn.osgeo.org/postgis/trunk@6669 b70326c6-7e19-0410-871a-916f4a2858ee
2011-01-18 14:53:25 +00:00
Regina Obe 9f425ed040 make relatematch a conditional GEOS 3.3 test
git-svn-id: http://svn.osgeo.org/postgis/trunk@6596 b70326c6-7e19-0410-871a-916f4a2858ee
2011-01-11 17:18:05 +00:00
Regina Obe 45c5c85a3a Add another type, add missing element, update make check example in installation. Fix error introduced in regress that prevented all tests from running.
git-svn-id: http://svn.osgeo.org/postgis/trunk@6595 b70326c6-7e19-0410-871a-916f4a2858ee
2011-01-11 15:53:16 +00:00
Regina Obe 19d0b9763d remove wmsservers_old so its failure doesn't halt further make check
git-svn-id: http://svn.osgeo.org/postgis/trunk@6581 b70326c6-7e19-0410-871a-916f4a2858ee
2011-01-07 13:38:14 +00:00
Regina Obe 986fd1cc2a #722 remove deprecated functions (part): boundary, GeomUnion, intersects, IsRing, IsSimple,
length2d_spheroid, locate_along_measure, relate,PointOnSurface, SnapToGrid, symmetricdifference, touches

git-svn-id: http://svn.osgeo.org/postgis/trunk@6575 b70326c6-7e19-0410-871a-916f4a2858ee
2011-01-05 22:25:25 +00:00
Regina Obe 094d763b28 #722 (part): Down with really really dumb constructors :)
GeomCollFromText,LineFromText,LineFromWKB,LineStringFromText,LinestringFromWKB,LineMerge,MLineFromText
,MLineFromWKB,MPointFromText,MPolyFromWKB,MultiLineFromWKB,MultiLineStringFromText,MultiPointFromWKB,
ST_Polygonize_GArray,PolyFromText,PolyFromWKB,PolygonFromWKB,PointFromText,PointFromWKB

git-svn-id: http://svn.osgeo.org/postgis/trunk@6571 b70326c6-7e19-0410-871a-916f4a2858ee
2011-01-05 14:56:36 +00:00
Regina Obe 67f7c64e50 remove deprecated functions: bdpolyfromtext,bdmpolyfromtext,collect,disjoint,memcollect,memgeomunion,
unite_garray,st_unit_garray .
reshuffle legacy.sql.in.c so aggregates and dependencies are together

git-svn-id: http://svn.osgeo.org/postgis/trunk@6564 b70326c6-7e19-0410-871a-916f4a2858ee
2011-01-04 13:59:57 +00:00
Regina Obe 479cfc9241 remove more deprecated: dimension,exteriorring, geometryn,interiorringn, isempty,isclosed,
m,numinteriorring, numinteriorrings,pointn,x,y,z

git-svn-id: http://svn.osgeo.org/postgis/trunk@6563 b70326c6-7e19-0410-871a-916f4a2858ee
2011-01-04 13:35:31 +00:00
Regina Obe 46a7427696 remove more deprecated functions
git-svn-id: http://svn.osgeo.org/postgis/trunk@6561 b70326c6-7e19-0410-871a-916f4a2858ee
2011-01-04 12:51:45 +00:00
Regina Obe c55a22c471 get rid of more deprecated functions
git-svn-id: http://svn.osgeo.org/postgis/trunk@6560 b70326c6-7e19-0410-871a-916f4a2858ee
2011-01-03 19:26:19 +00:00
Regina Obe 355419c141 remove more deprecated functions
git-svn-id: http://svn.osgeo.org/postgis/trunk@6559 b70326c6-7e19-0410-871a-916f4a2858ee
2011-01-03 18:52:13 +00:00
Nicklas Avén 16051b5c97 rounding precision difference in measures regress test #703, #735, #607
git-svn-id: http://svn.osgeo.org/postgis/trunk@6543 b70326c6-7e19-0410-871a-916f4a2858ee
2010-12-30 18:31:04 +00:00
Regina Obe da8487b76b get rid of more deprecated calls, but keep old deprecated wmsservers and rename to wmsservers_old. Create a new version wmsservers_new that doesn't use deprecated calls. the old will fail once I pull the switch on old deprecated calls, but the new should work.
git-svn-id: http://svn.osgeo.org/postgis/trunk@6535 b70326c6-7e19-0410-871a-916f4a2858ee
2010-12-29 15:37:47 +00:00
Regina Obe d7ec3dcd83 remove deprecated tests
git-svn-id: http://svn.osgeo.org/postgis/trunk@6534 b70326c6-7e19-0410-871a-916f4a2858ee
2010-12-29 15:17:08 +00:00
Regina Obe 3ddc3acda8 forgot these
git-svn-id: http://svn.osgeo.org/postgis/trunk@6533 b70326c6-7e19-0410-871a-916f4a2858ee
2010-12-29 14:50:16 +00:00
Regina Obe cf190d08da get rid of more deprecated
git-svn-id: http://svn.osgeo.org/postgis/trunk@6532 b70326c6-7e19-0410-871a-916f4a2858ee
2010-12-29 14:48:52 +00:00
Regina Obe 2d7e0aa5d4 Get rid of more deprecated calls
git-svn-id: http://svn.osgeo.org/postgis/trunk@6531 b70326c6-7e19-0410-871a-916f4a2858ee
2010-12-29 14:14:45 +00:00
Paul Ramsey 1545b8e8b7 Update test to reflect that polygons are now supported.
git-svn-id: http://svn.osgeo.org/postgis/trunk@6530 b70326c6-7e19-0410-871a-916f4a2858ee
2010-12-29 14:07:37 +00:00
Regina Obe 9d9f2436b2 Get rid of deprecated calls
git-svn-id: http://svn.osgeo.org/postgis/trunk@6526 b70326c6-7e19-0410-871a-916f4a2858ee
2010-12-28 18:24:39 +00:00
Regina Obe 9c473a09e2 get rid of deprecated calls
git-svn-id: http://svn.osgeo.org/postgis/trunk@6525 b70326c6-7e19-0410-871a-916f4a2858ee
2010-12-28 18:24:04 +00:00
Paul Ramsey 72cecc3d76 Fix regression failure in standard serialization mode. (#735)
git-svn-id: http://svn.osgeo.org/postgis/trunk@6523 b70326c6-7e19-0410-871a-916f4a2858ee
2010-12-28 18:00:34 +00:00
Paul Ramsey 396d028672 T_Distance_Spheroid is kinda broken (#677)
git-svn-id: http://svn.osgeo.org/postgis/trunk@6517 b70326c6-7e19-0410-871a-916f4a2858ee
2010-12-28 00:27:37 +00:00
Paul Ramsey 1e2f558d94 ST_MakeLine aggregate function crashes with empty geometries (#729)
git-svn-id: http://svn.osgeo.org/postgis/trunk@6515 b70326c6-7e19-0410-871a-916f4a2858ee
2010-12-27 22:41:57 +00:00
Paul Ramsey eb97c07737 Add more tickets tests up to #700
git-svn-id: http://svn.osgeo.org/postgis/trunk@6495 b70326c6-7e19-0410-871a-916f4a2858ee
2010-12-23 22:49:03 +00:00
Paul Ramsey 82dea69283 Add some tickets from the trac into regression
git-svn-id: http://svn.osgeo.org/postgis/trunk@6493 b70326c6-7e19-0410-871a-916f4a2858ee
2010-12-23 19:06:25 +00:00
Regina Obe a9a27d3944 miscellaneous
git-svn-id: http://svn.osgeo.org/postgis/trunk@6479 b70326c6-7e19-0410-871a-916f4a2858ee
2010-12-22 20:02:14 +00:00
Regina Obe bc13a6e597 Goodbye length
git-svn-id: http://svn.osgeo.org/postgis/trunk@6478 b70326c6-7e19-0410-871a-916f4a2858ee
2010-12-22 19:41:10 +00:00
Regina Obe 4c778208b0 Good bye simplify
git-svn-id: http://svn.osgeo.org/postgis/trunk@6477 b70326c6-7e19-0410-871a-916f4a2858ee
2010-12-22 19:15:02 +00:00
Regina Obe c63e74019e get rid of addbbox,dropbbox,hasbbox (and replace occurrences in regress with newer postgis_addbbox etc)
git-svn-id: http://svn.osgeo.org/postgis/trunk@6473 b70326c6-7e19-0410-871a-916f4a2858ee
2010-12-22 18:42:38 +00:00
Regina Obe 62ab050080 move all deprecated Affine functoins to legach.sql.in.c, remove use in non-deprecated functions and in regress tests
git-svn-id: http://svn.osgeo.org/postgis/trunk@6470 b70326c6-7e19-0410-871a-916f4a2858ee
2010-12-22 17:08:41 +00:00
Paul Ramsey 4a8cccc765 Remove some ST_ variants of cast-support functions (#302), and start legacy.sql.in.c (#722)
git-svn-id: http://svn.osgeo.org/postgis/trunk@6467 b70326c6-7e19-0410-871a-916f4a2858ee
2010-12-21 23:56:23 +00:00
Sandro Santilli e7907020fa Implement ST_RelateMatch, see ticket #717. [RT-SIGTA]
git-svn-id: http://svn.osgeo.org/postgis/trunk@6459 b70326c6-7e19-0410-871a-916f4a2858ee
2010-12-21 10:32:39 +00:00
Paul Ramsey 581a67df60 Add regression test for #723
git-svn-id: http://svn.osgeo.org/postgis/trunk@6457 b70326c6-7e19-0410-871a-916f4a2858ee
2010-12-20 23:34:23 +00:00
Paul Ramsey d7e2ffc703 Add in test for #720
git-svn-id: http://svn.osgeo.org/postgis/trunk@6445 b70326c6-7e19-0410-871a-916f4a2858ee
2010-12-18 15:31:25 +00:00
Paul Ramsey bb5a15fc54 Review to prepare generic index bindings for geography, then geometry
git-svn-id: http://svn.osgeo.org/postgis/trunk@6439 b70326c6-7e19-0410-871a-916f4a2858ee
2010-12-17 22:03:36 +00:00
Paul Ramsey ebc5208d24 Harmonize some index support functions to be more generic gserialized functions and less specific geography functions.
git-svn-id: http://svn.osgeo.org/postgis/trunk@6438 b70326c6-7e19-0410-871a-916f4a2858ee
2010-12-17 21:32:11 +00:00
Paul Ramsey fd6d759590 Re-orgs to push the geodetic/cartesian divide a little further under the covers as part of the geometry/geography group hug at the index bindings level.
git-svn-id: http://svn.osgeo.org/postgis/trunk@6437 b70326c6-7e19-0410-871a-916f4a2858ee
2010-12-17 20:10:36 +00:00
Sandro Santilli 4a10bd7cfd Return number of failures as exit status
git-svn-id: http://svn.osgeo.org/postgis/trunk@6422 b70326c6-7e19-0410-871a-916f4a2858ee
2010-12-16 18:02:16 +00:00
Sandro Santilli 0e1c6d0a8a Have run_test exit code reflect presence of failures.
git-svn-id: http://svn.osgeo.org/postgis/trunk@6421 b70326c6-7e19-0410-871a-916f4a2858ee
2010-12-16 18:00:31 +00:00
Sandro Santilli 7c71e830fc Remove duplicated check rule
git-svn-id: http://svn.osgeo.org/postgis/trunk@6420 b70326c6-7e19-0410-871a-916f4a2858ee
2010-12-16 17:52:08 +00:00
Sandro Santilli 4c7022bd85 Turn 'regress' dir into a first class subdir, fixes ticket #715
git-svn-id: http://svn.osgeo.org/postgis/trunk@6418 b70326c6-7e19-0410-871a-916f4a2858ee
2010-12-16 17:30:39 +00:00
Sandro Santilli 125cfa0573 Allow run_test calls from foreign directories
git-svn-id: http://svn.osgeo.org/postgis/trunk@6394 b70326c6-7e19-0410-871a-916f4a2858ee
2010-12-15 14:14:29 +00:00
Sandro Santilli 3790492ecb Do not read ~/.psqlrc when creating database
git-svn-id: http://svn.osgeo.org/postgis/trunk@6393 b70326c6-7e19-0410-871a-916f4a2858ee
2010-12-15 14:09:45 +00:00
Sandro Santilli 5fe7180b2d Add a --topology switch to equip regression db with topology support when requested
git-svn-id: http://svn.osgeo.org/postgis/trunk@6392 b70326c6-7e19-0410-871a-916f4a2858ee
2010-12-15 14:04:45 +00:00
Paul Ramsey 5b3fb97af4 ST_CollectionExtract returns non-requested type (#457)
git-svn-id: http://svn.osgeo.org/postgis/trunk@6363 b70326c6-7e19-0410-871a-916f4a2858ee
2010-12-13 21:31:29 +00:00
Nicklas Avén 7ab86c96e3 3d distance functions for line-line cases
git-svn-id: http://svn.osgeo.org/postgis/trunk@6343 b70326c6-7e19-0410-871a-916f4a2858ee
2010-12-12 22:42:19 +00:00
Paul Ramsey c7697e2359 Issues with TRIANGLE AND TIN EMPTY collections - hmm do they exist? (#686)
git-svn-id: http://svn.osgeo.org/postgis/trunk@6335 b70326c6-7e19-0410-871a-916f4a2858ee
2010-12-10 20:22:19 +00:00
Paul Ramsey a2dbab5b3f Fix cunit failures on Polyhedral surface (#697)
git-svn-id: http://svn.osgeo.org/postgis/trunk@6333 b70326c6-7e19-0410-871a-916f4a2858ee
2010-12-10 19:10:16 +00:00
Paul Ramsey ce028a39f0 Fix crash in ST_MakeLine (#690)
git-svn-id: http://svn.osgeo.org/postgis/trunk@6319 b70326c6-7e19-0410-871a-916f4a2858ee
2010-12-09 18:00:18 +00:00
Paul Ramsey 0152eeedc2 Handle empty geometries in ST_Buffer(). If argument empty, return empty. (#682)
git-svn-id: http://svn.osgeo.org/postgis/trunk@6301 b70326c6-7e19-0410-871a-916f4a2858ee
2010-12-08 18:20:18 +00:00
Sandro Santilli 03088d59b5 Use unified diffs for expected/obtained (easier to read)
git-svn-id: http://svn.osgeo.org/postgis/trunk@6292 b70326c6-7e19-0410-871a-916f4a2858ee
2010-12-07 21:55:07 +00:00
Paul Ramsey 4cc4123357 Replace the old WKB/WKT parser and emitters with the new ones.
git-svn-id: http://svn.osgeo.org/postgis/trunk@6291 b70326c6-7e19-0410-871a-916f4a2858ee
2010-12-07 21:08:05 +00:00
Sandro Santilli 35f8533793 Add a couple more cases provided by RT-SITA
git-svn-id: http://svn.osgeo.org/postgis/trunk@6278 b70326c6-7e19-0410-871a-916f4a2858ee
2010-12-06 15:07:48 +00:00
Sandro Santilli ac0d74c59b Add SNAP test reported on JTS mailing list
git-svn-id: http://svn.osgeo.org/postgis/trunk@6272 b70326c6-7e19-0410-871a-916f4a2858ee
2010-12-03 10:13:38 +00:00
Sandro Santilli ab461267c9 Add test for bug 670
git-svn-id: http://svn.osgeo.org/postgis/trunk@6269 b70326c6-7e19-0410-871a-916f4a2858ee
2010-12-03 09:00:54 +00:00
Paul Ramsey 49ddf44404 Remove LWGEOM_INSPECTED from pointn, startpoint, endpoint, and migrate functionality to liblwgeom.
git-svn-id: http://svn.osgeo.org/postgis/trunk@6264 b70326c6-7e19-0410-871a-916f4a2858ee
2010-12-02 18:52:26 +00:00
Sandro Santilli 62a8c48dcc ST_Snap and regress testing
git-svn-id: http://svn.osgeo.org/postgis/trunk@6263 b70326c6-7e19-0410-871a-916f4a2858ee
2010-12-02 18:12:39 +00:00
Paul Ramsey 1219a391b7 Remove INSPECTED from numpoints
git-svn-id: http://svn.osgeo.org/postgis/trunk@6258 b70326c6-7e19-0410-871a-916f4a2858ee
2010-12-02 17:18:42 +00:00
Paul Ramsey 9f713a95b6 Remove LWGEOM_INSPECTED from ST_Union
git-svn-id: http://svn.osgeo.org/postgis/trunk@6253 b70326c6-7e19-0410-871a-916f4a2858ee
2010-12-02 15:55:41 +00:00
Sandro Santilli d3d19cc3a5 Add regression testing for ST_SharedPaths
git-svn-id: http://svn.osgeo.org/postgis/trunk@6236 b70326c6-7e19-0410-871a-916f4a2858ee
2010-12-01 18:13:49 +00:00
Sandro Santilli 7e126fda68 Test dumping an insanely _empty_ geometry
git-svn-id: http://svn.osgeo.org/postgis/trunk@6227 b70326c6-7e19-0410-871a-916f4a2858ee
2010-12-01 14:56:45 +00:00
Sandro Santilli 528cf352cd Test ST_Dump(EMPTY)
git-svn-id: http://svn.osgeo.org/postgis/trunk@6226 b70326c6-7e19-0410-871a-916f4a2858ee
2010-12-01 14:44:01 +00:00
Sandro Santilli 2e3fb76f0a Add test for ST_Dump
git-svn-id: http://svn.osgeo.org/postgis/trunk@6225 b70326c6-7e19-0410-871a-916f4a2858ee
2010-12-01 14:41:30 +00:00
Paul Ramsey 562fc263bb Move spheroid length calculation to using same function as geography
git-svn-id: http://svn.osgeo.org/postgis/trunk@6217 b70326c6-7e19-0410-871a-916f4a2858ee
2010-11-30 23:44:09 +00:00
Paul Ramsey 5e326a074b Revert GML change. Hm.
git-svn-id: http://svn.osgeo.org/postgis/trunk@6179 b70326c6-7e19-0410-871a-916f4a2858ee
2010-11-19 22:12:26 +00:00
Paul Ramsey bd3aac3f23 Change in gml regression to match what seems to be the right answers.
git-svn-id: http://svn.osgeo.org/postgis/trunk@6178 b70326c6-7e19-0410-871a-916f4a2858ee
2010-11-19 21:51:06 +00:00
Sandro Santilli 47e4a75f09 Snap ShortestLine to 1e-14 grid (fixes failure on opensuse)
git-svn-id: http://svn.osgeo.org/postgis/trunk@6083 b70326c6-7e19-0410-871a-916f4a2858ee
2010-10-18 13:15:04 +00:00
Paul Ramsey d2e7bc9908 Forward port regression fixes for pgSQL 9.0 support
git-svn-id: http://svn.osgeo.org/postgis/trunk@6017 b70326c6-7e19-0410-871a-916f4a2858ee
2010-09-24 18:41:16 +00:00
Paul Ramsey 38b049d6a3 Use 'the_geom' as geometry column when running regression tests to match the old regression fragments.
git-svn-id: http://svn.osgeo.org/postgis/trunk@6007 b70326c6-7e19-0410-871a-916f4a2858ee
2010-09-22 22:30:14 +00:00
Olivier Courtin d6eb43bf76 Revert changes on PointN and Numpoints to remove TRIANGLE support. Add ExteriorRing support to TRIANGLE. Changes DumpPoint behaviour to reflect exteriorRing. Update unit tests
git-svn-id: http://svn.osgeo.org/postgis/trunk@5910 b70326c6-7e19-0410-871a-916f4a2858ee
2010-09-05 17:01:27 +00:00
Nicklas Avén d5b2e25d6d 3D Distance functions, only point-point and point line. #576
git-svn-id: http://svn.osgeo.org/postgis/trunk@5889 b70326c6-7e19-0410-871a-916f4a2858ee
2010-09-01 19:55:11 +00:00
Olivier Courtin 3ee57e952a Add St_NumPoints and ST_PointN support for Triangle. Add ST_DumpPoints support for Triangle, Tin and Polyhedral Surface, and related unit tests. Tks to yabo for patch. Related to #564
git-svn-id: http://svn.osgeo.org/postgis/trunk@5830 b70326c6-7e19-0410-871a-916f4a2858ee
2010-08-15 18:54:05 +00:00
Olivier Courtin 193dcbfc66 Add Tin and Triangle support for ST_GeomFromGML. Add related unit tests
git-svn-id: http://svn.osgeo.org/postgis/trunk@5827 b70326c6-7e19-0410-871a-916f4a2858ee
2010-08-15 13:57:21 +00:00
Sandro Santilli f76e0c45c3 Drop spurious empty line
git-svn-id: http://svn.osgeo.org/postgis/trunk@5795 b70326c6-7e19-0410-871a-916f4a2858ee
2010-08-08 22:20:24 +00:00
Sandro Santilli f9e4bc2788 'pushd' is not guaranteed to be provided by all shells (Ubuntu 8.10 has /bin/sh point to dash(1) which doesn't provide it)
git-svn-id: http://svn.osgeo.org/postgis/trunk@5794 b70326c6-7e19-0410-871a-916f4a2858ee
2010-08-08 22:20:01 +00:00
Olivier Courtin 7e30a49390 Add function aliases for ST_NumPatches and ST_PatchN (both SFS 1.2 and SQL/MM). Add PolyhedralSurface for ST_IsClosed (surface vs volume). Update ST_Dimension support to be consistent. Add unit tests.
git-svn-id: http://svn.osgeo.org/postgis/trunk@5793 b70326c6-7e19-0410-871a-916f4a2858ee
2010-08-08 20:41:17 +00:00
Olivier Courtin 1961544717 Add PolyhedralSurface support to ST_GeomFromGML. Add related unit tests. related to #430
git-svn-id: http://svn.osgeo.org/postgis/trunk@5789 b70326c6-7e19-0410-871a-916f4a2858ee
2010-08-06 20:08:34 +00:00
Olivier Courtin 02e9731e2a Remove Integer deprecaded types (POINTTYPEI, LINETYPEI, POLYGONTYPEI) and lwgi related stuff. As a consequence EWKB of CURVEPOLYTYPE, MULTICURVETYPE and MULTISURFACETYPE is changed/impacted (geometry type bits). Now we have 3 new free geometry type available. Preliminary work to #427
git-svn-id: http://svn.osgeo.org/postgis/trunk@5752 b70326c6-7e19-0410-871a-916f4a2858ee
2010-07-24 10:55:34 +00:00
Sandro Santilli 827113edc2 Add ST_isCollection (see ticket #549)
git-svn-id: http://svn.osgeo.org/postgis/trunk@5718 b70326c6-7e19-0410-871a-916f4a2858ee
2010-07-01 13:20:43 +00:00
Sandro Santilli 7f8e86fbf8 Test splitting 3d line by 2d blade
git-svn-id: http://svn.osgeo.org/postgis/trunk@5703 b70326c6-7e19-0410-871a-916f4a2858ee
2010-06-25 07:41:42 +00:00
Sandro Santilli 39d52c2db1 Add a 'staged-install' rule, helpful when you want to run a single test after changing the core lib ...
git-svn-id: http://svn.osgeo.org/postgis/trunk@5602 b70326c6-7e19-0410-871a-916f4a2858ee
2010-05-03 16:02:19 +00:00
Sandro Santilli c5962cc957 ST_MakeValid: don't choke on MULTILINESTRING containing invalid LINESTRING elements
git-svn-id: http://svn.osgeo.org/postgis/trunk@5601 b70326c6-7e19-0410-871a-916f4a2858ee
2010-05-03 15:59:16 +00:00
Sandro Santilli 3d207a49b8 Merge SRID-retainment tests with some of the other tests
git-svn-id: http://svn.osgeo.org/postgis/trunk@5600 b70326c6-7e19-0410-871a-916f4a2858ee
2010-05-03 12:11:09 +00:00
Sandro Santilli ba2c3d1b60 Do not drop polygon boundaries collapsed to points
git-svn-id: http://svn.osgeo.org/postgis/trunk@5599 b70326c6-7e19-0410-871a-916f4a2858ee
2010-05-03 11:31:18 +00:00
Olivier Courtin 23d4eb80c3 Add new option to ST_AsGML: ability to remove srsDimension attribute in GML 3. cf #508
git-svn-id: http://svn.osgeo.org/postgis/trunk@5575 b70326c6-7e19-0410-871a-916f4a2858ee
2010-04-27 15:26:08 +00:00
Olivier Courtin d3b3479ad7 Fix wrong OGC URN in GeoJson and GML output. Cf #507
git-svn-id: http://svn.osgeo.org/postgis/trunk@5572 b70326c6-7e19-0410-871a-916f4a2858ee
2010-04-27 13:58:41 +00:00
Sandro Santilli af239f0e5e Fix crash on invalid polygon rings conversion to geos
git-svn-id: http://svn.osgeo.org/postgis/trunk@5563 b70326c6-7e19-0410-871a-916f4a2858ee
2010-04-17 08:26:39 +00:00
Olivier Courtin fa69a73149 Add optional namespace to ST_AsKML function. related in a way to #460
git-svn-id: http://svn.osgeo.org/postgis/trunk@5532 b70326c6-7e19-0410-871a-916f4a2858ee
2010-04-12 08:48:02 +00:00
Olivier Courtin 8936c39d15 Add geography support to ST_AsGML with prefix namespace option. Update doc and unit tests. cf #460
git-svn-id: http://svn.osgeo.org/postgis/trunk@5471 b70326c6-7e19-0410-871a-916f4a2858ee
2010-03-30 12:32:24 +00:00
Sandro Santilli 834d325343 Expose custom prefix arg for ST_asGML to SQL, add tests and dox
git-svn-id: http://svn.osgeo.org/postgis/trunk@5459 b70326c6-7e19-0410-871a-916f4a2858ee
2010-03-23 19:35:26 +00:00
Sandro Santilli be71022db0 Add test for GEOMETRYCOLLECTION and ST_Split
git-svn-id: http://svn.osgeo.org/postgis/trunk@5448 b70326c6-7e19-0410-871a-916f4a2858ee
2010-03-17 08:27:26 +00:00
Sandro Santilli ad5ca36e9a Add support for MULTI* in ST_Split
git-svn-id: http://svn.osgeo.org/postgis/trunk@5444 b70326c6-7e19-0410-871a-916f4a2858ee
2010-03-16 22:18:59 +00:00
Sandro Santilli 4f0c8d8d5f Rename ST_SplitGeometry to ST_Split (better now than never)
git-svn-id: http://svn.osgeo.org/postgis/trunk@5438 b70326c6-7e19-0410-871a-916f4a2858ee
2010-03-15 18:03:11 +00:00
Sandro Santilli b7e1ad5dd1 Implement split-poly-by-line
git-svn-id: http://svn.osgeo.org/postgis/trunk@5437 b70326c6-7e19-0410-871a-916f4a2858ee
2010-03-15 18:00:12 +00:00
Sandro Santilli 30fe3142f4 Reword exception message, make algorithm more robust not relying on constructive functions to detect relation between inputs
git-svn-id: http://svn.osgeo.org/postgis/trunk@5436 b70326c6-7e19-0410-871a-916f4a2858ee
2010-03-13 12:55:00 +00:00
Sandro Santilli 36e109773a Split-line-by-line: handle overlap cases by raising an exception
git-svn-id: http://svn.osgeo.org/postgis/trunk@5434 b70326c6-7e19-0410-871a-916f4a2858ee
2010-03-13 11:16:53 +00:00
Sandro Santilli 87798fdd85 Implement split-line-by-line
git-svn-id: http://svn.osgeo.org/postgis/trunk@5433 b70326c6-7e19-0410-871a-916f4a2858ee
2010-03-13 10:59:19 +00:00
Sandro Santilli 6dea288dfb Trigger reconstruction of regress' postgis.sql when original one changes
git-svn-id: http://svn.osgeo.org/postgis/trunk@5426 b70326c6-7e19-0410-871a-916f4a2858ee
2010-03-12 15:14:01 +00:00
Sandro Santilli 9d115d0b1e Add support for simple geometries in ST_GeometryN and ST_NumGeometries
git-svn-id: http://svn.osgeo.org/postgis/trunk@5423 b70326c6-7e19-0410-871a-916f4a2858ee
2010-03-12 13:50:22 +00:00
Sandro Santilli 645634d9a3 Set interface specs in stone within the implementation file, add a testcase to show what's "left" and what's "right" in the split-line-by-point
git-svn-id: http://svn.osgeo.org/postgis/trunk@5414 b70326c6-7e19-0410-871a-916f4a2858ee
2010-03-11 20:34:01 +00:00
Sandro Santilli a9a589d65b *always* return a collection from ST_SplitGeometry
git-svn-id: http://svn.osgeo.org/postgis/trunk@5413 b70326c6-7e19-0410-871a-916f4a2858ee
2010-03-11 20:28:24 +00:00
Sandro Santilli e44c62ca56 Have ST_SplitGeometry return a collection of at most 2 elements (original part, cut-away part) so it's easier to handle by callers
git-svn-id: http://svn.osgeo.org/postgis/trunk@5412 b70326c6-7e19-0410-871a-916f4a2858ee
2010-03-11 20:19:14 +00:00
Sandro Santilli 4cd7232685 Add SRID retainment testcase for removerepeatedpoint (paranoia)
git-svn-id: http://svn.osgeo.org/postgis/trunk@5411 b70326c6-7e19-0410-871a-916f4a2858ee
2010-03-11 17:53:20 +00:00
Sandro Santilli f5a2df405b Add SRID retainment testcases
git-svn-id: http://svn.osgeo.org/postgis/trunk@5410 b70326c6-7e19-0410-871a-916f4a2858ee
2010-03-11 17:51:00 +00:00
Sandro Santilli 4a7cb9dd18 Initial work on ST_SplitGeometry. Split line by point implemented.
git-svn-id: http://svn.osgeo.org/postgis/trunk@5396 b70326c6-7e19-0410-871a-916f4a2858ee
2010-03-10 15:33:33 +00:00
Sandro Santilli ebc424f290 ST_MakeValid : turn collapsed lines into points [RT-SIGTA]
git-svn-id: http://svn.osgeo.org/postgis/trunk@5363 b70326c6-7e19-0410-871a-916f4a2858ee
2010-03-02 21:32:09 +00:00
Sandro Santilli 2d61c313c5 Node lineal geometries resulting invalid. Re-enable automated testcase for st_MakeValid [RT-SIGTA]
git-svn-id: http://svn.osgeo.org/postgis/trunk@5360 b70326c6-7e19-0410-871a-916f4a2858ee
2010-02-28 23:11:08 +00:00
Olivier Courtin 2ad8b5bd08 Add new 'make garden' rule to launch full Garden test regression tests
git-svn-id: http://svn.osgeo.org/postgis/trunk@5349 b70326c6-7e19-0410-871a-916f4a2858ee
2010-02-26 15:05:55 +00:00
Olivier Courtin aca9512afb Add few more lwgeom_typename, and update regress test if needed. Restore initial lwnotice behaviour in remove_repeated_points on unknown types (instead of lwerror).
git-svn-id: http://svn.osgeo.org/postgis/trunk@5347 b70326c6-7e19-0410-871a-916f4a2858ee
2010-02-26 00:16:25 +00:00
Sandro Santilli 1975106d03 Don't let ST_RemoveRepeatedPoint collapse LINESTRINGs (not sure why, but someone doesn't want them in the db)
git-svn-id: http://svn.osgeo.org/postgis/trunk@5322 b70326c6-7e19-0410-871a-916f4a2858ee
2010-02-23 19:42:15 +00:00
Olivier Courtin 8f04172b79 Fix 443. Move all regress export functions test files in a single one. add geography output regression tests (SVG/KML/GML/GeoJSON)
git-svn-id: http://svn.osgeo.org/postgis/trunk@5314 b70326c6-7e19-0410-871a-916f4a2858ee
2010-02-23 14:52:28 +00:00
Olivier Courtin 287fbffddd move ST_AsSVG from postgis to lwgeom dir. write cun it tests. related to #377
git-svn-id: http://svn.osgeo.org/postgis/trunk@5289 b70326c6-7e19-0410-871a-916f4a2858ee
2010-02-22 18:43:06 +00:00
Olivier Courtin ab6afbcfb4 Move ST_AsGeoJson from postgis to liblwgeom dir. Use as most as cunit test as possible. Related to #377.
git-svn-id: http://svn.osgeo.org/postgis/trunk@5283 b70326c6-7e19-0410-871a-916f4a2858ee
2010-02-22 14:03:19 +00:00
Sandro Santilli 6c6a13875e Disable 'clean' test (still deciding on what's the expected output); keep only cut-lines that have vertices not shared with boundary of final area; move 'clean' code in separate file [RT-SIGTA].
git-svn-id: http://svn.osgeo.org/postgis/trunk@5278 b70326c6-7e19-0410-871a-916f4a2858ee
2010-02-21 21:11:03 +00:00
Olivier Courtin b534ff8a2f Move ST_AsKML from postgis to liblwgeom dir. Use as most cunit test as possible. Few related corrections on GML similar implementation. cf #377
git-svn-id: http://svn.osgeo.org/postgis/trunk@5277 b70326c6-7e19-0410-871a-916f4a2858ee
2010-02-21 20:32:11 +00:00
Olivier Courtin 738fe292c6 Move ST_AsGML from postgis dir to liblwgeom. Rewrite most units test with cunit. cf #377
git-svn-id: http://svn.osgeo.org/postgis/trunk@5275 b70326c6-7e19-0410-871a-916f4a2858ee
2010-02-21 18:18:37 +00:00
Sandro Santilli f6ac58c764 ST_RemoveRepeatedPoints [RT-SIGTA]
git-svn-id: http://svn.osgeo.org/postgis/trunk@5273 b70326c6-7e19-0410-871a-916f4a2858ee
2010-02-21 12:22:08 +00:00
Olivier Courtin accf1a9722 Use lwgeom_homogenize in in_kml stuff. Related to #375
git-svn-id: http://svn.osgeo.org/postgis/trunk@5266 b70326c6-7e19-0410-871a-916f4a2858ee
2010-02-20 18:26:59 +00:00
Sandro Santilli 25b77f3f92 Allow retaining badly collapsed rings (single-point) as points in ST_MakeValid. Add testcase for it [RT-SIGTA]
git-svn-id: http://svn.osgeo.org/postgis/trunk@5258 b70326c6-7e19-0410-871a-916f4a2858ee
2010-02-17 21:02:49 +00:00
Sandro Santilli d4efe9b20e Add origin field for the clean dataset table, so we can add PG-specific ones w/out caring about visualizing them:)
git-svn-id: http://svn.osgeo.org/postgis/trunk@5254 b70326c6-7e19-0410-871a-916f4a2858ee
2010-02-16 09:08:11 +00:00
Sandro Santilli 3b23616022 Add a test for input being invalid (a test of the test)
git-svn-id: http://svn.osgeo.org/postgis/trunk@5253 b70326c6-7e19-0410-871a-916f4a2858ee
2010-02-16 09:06:48 +00:00
Sandro Santilli 120e78a679 Drop the optional parameter to ST_MakeValid, we always want to collect collapses (users can always filter later) [RT-SIGTA].
git-svn-id: http://svn.osgeo.org/postgis/trunk@5249 b70326c6-7e19-0410-871a-916f4a2858ee
2010-02-16 08:07:39 +00:00
Sandro Santilli 756dca2e79 Rework the regress test to make it easier for curious people to keep the test dataset for inspection with some GUI (give it a try, it's a nice one).
git-svn-id: http://svn.osgeo.org/postgis/trunk@5242 b70326c6-7e19-0410-871a-916f4a2858ee
2010-02-15 20:21:09 +00:00
Sandro Santilli 6e33fce0d2 Implement ST_MakeValid(geom_in, collect_collapses) and stub ST_CleanGeometry. Add regression test for ST_MakeValid and polygons [RT-SIGTA]
git-svn-id: http://svn.osgeo.org/postgis/trunk@5240 b70326c6-7e19-0410-871a-916f4a2858ee
2010-02-14 22:59:57 +00:00
Sandro Santilli d2acb20860 Add another validity test [RT-SIGTA]
git-svn-id: http://svn.osgeo.org/postgis/trunk@5236 b70326c6-7e19-0410-871a-916f4a2858ee
2010-02-13 15:29:01 +00:00
Sandro Santilli 5f67d6b4a9 Don't refuse to unparse malformed geometries. Fixes #411. Didn't seem to expose the crash in #168, the testcase for it was expanded to extract invalidity reason.
git-svn-id: http://svn.osgeo.org/postgis/trunk@5214 b70326c6-7e19-0410-871a-916f4a2858ee
2010-02-08 18:54:47 +00:00
Sandro Santilli 42283ab8a1 Add another test for #407
git-svn-id: http://svn.osgeo.org/postgis/trunk@5212 b70326c6-7e19-0410-871a-916f4a2858ee
2010-02-06 13:48:44 +00:00
Olivier Courtin 15b944bf9c Fix non NULL terminated string in ST_AsSVG with GEOMETRYCOLLECTION EMPTY, cf #409 reported by sdikiy. Add related unit test
git-svn-id: http://svn.osgeo.org/postgis/trunk@5211 b70326c6-7e19-0410-871a-916f4a2858ee
2010-02-06 10:49:22 +00:00
Sandro Santilli f82e241795 Register a buffer-logger as error-reporter from ST_isValidReason and ST_isValidDetail so to catch exceptions thrown by GEOS at postgis->geos conversion for the sake of reporting actual error. Fixes ticket #408. Completed with testcase.
git-svn-id: http://svn.osgeo.org/postgis/trunk@5207 b70326c6-7e19-0410-871a-916f4a2858ee
2010-02-05 20:55:54 +00:00
Paul Ramsey 91be7cc89d Add --no-psqlrc to run_test (#405)
git-svn-id: http://svn.osgeo.org/postgis/trunk@5193 b70326c6-7e19-0410-871a-916f4a2858ee
2010-02-02 23:47:46 +00:00
Olivier Courtin fbec01c10c revert r5175 commit about points results on #304. Related to #395
git-svn-id: http://svn.osgeo.org/postgis/trunk@5176 b70326c6-7e19-0410-871a-916f4a2858ee
2010-01-28 15:51:28 +00:00
Olivier Courtin 71f4c88c47 In regress/tickets* Add missing srid 32702 and 32602. Add results from #304 tests. Related to #395
git-svn-id: http://svn.osgeo.org/postgis/trunk@5175 b70326c6-7e19-0410-871a-916f4a2858ee
2010-01-28 15:28:04 +00:00
Nicklas Avén 2a46f5271b Fix for make check on MingW #389
git-svn-id: http://svn.osgeo.org/postgis/trunk@5148 b70326c6-7e19-0410-871a-916f4a2858ee
2010-01-21 07:19:31 +00:00
Paul Ramsey 7d94c6fd13 Make GEOS 3.1 the mandatory minimum (#385)
git-svn-id: http://svn.osgeo.org/postgis/trunk@5129 b70326c6-7e19-0410-871a-916f4a2858ee
2010-01-15 17:54:52 +00:00
Olivier Courtin 00b73f896f Round decimal part in #58 ticket unit test. As the previous result was not cross platform compliant
git-svn-id: http://svn.osgeo.org/postgis/trunk@5127 b70326c6-7e19-0410-871a-916f4a2858ee
2010-01-15 08:13:19 +00:00
Mark Cave-Ayland 901d61196c Fix ST_Envelope() and ST_Expand() so that they use double precision arithmetic rather than single precision arithmetic for their calculations. The internal BOX2DFLOAT4s should *never* be used for calculation purposes.
git-svn-id: http://svn.osgeo.org/postgis/trunk@5080 b70326c6-7e19-0410-871a-916f4a2858ee
2009-12-30 14:52:52 +00:00
Olivier Courtin 1acbdbc10a Add http://www.epsg.org/6.11.2/4326 srsName pattern support (related to CITE WFS 1.1 GetFeature-tc17.2. Add related unit tests
git-svn-id: http://svn.osgeo.org/postgis/trunk@5050 b70326c6-7e19-0410-871a-916f4a2858ee
2009-12-23 15:48:18 +00:00
Olivier Courtin b8d4342ffc remove the #273 test, as it already the same than point_1
git-svn-id: http://svn.osgeo.org/postgis/trunk@5033 b70326c6-7e19-0410-871a-916f4a2858ee
2009-12-18 19:28:40 +00:00
Olivier Courtin 1358086804 Libxml become mandatory. Cf #344. Modify configure step, remove all HAVE_LIBXML2 from code, sql and unit tests. Update documentation
git-svn-id: http://svn.osgeo.org/postgis/trunk@5032 b70326c6-7e19-0410-871a-916f4a2858ee
2009-12-18 19:08:20 +00:00
Paul Ramsey 2365dbab02 Add NL to end of expected file.
git-svn-id: http://svn.osgeo.org/postgis/trunk@4946 b70326c6-7e19-0410-871a-916f4a2858ee
2009-11-30 20:49:01 +00:00
Paul Ramsey 214aa172b5 Move the fromGML test into the in_gml.sql file, so that it will be properly excluded when libxml2 is not available.
git-svn-id: http://svn.osgeo.org/postgis/trunk@4945 b70326c6-7e19-0410-871a-916f4a2858ee
2009-11-30 20:44:56 +00:00
Mark Cave-Ayland 0a0d67f93e Commit slightly altered regression tests for the above.
git-svn-id: http://svn.osgeo.org/postgis/trunk@4906 b70326c6-7e19-0410-871a-916f4a2858ee
2009-11-26 17:56:28 +00:00
Paul Ramsey 6700d1da91 Merge Nicklas Aven's distance spike into trunk. (#63, #231)
git-svn-id: http://svn.osgeo.org/postgis/trunk@4894 b70326c6-7e19-0410-871a-916f4a2858ee
2009-11-25 19:15:57 +00:00
Mark Cave-Ayland 358145833b Alter regression test harness so that shp2pgsql/pgsql2shp can be tested without being installed.
git-svn-id: http://svn.osgeo.org/postgis/trunk@4862 b70326c6-7e19-0410-871a-916f4a2858ee
2009-11-19 15:39:27 +00:00
Paul Ramsey b3d2b3c9f9 Implement ST_CollectionExtract() to pull specific homogeneous collections out of heterogeneous collections. Regressions and documentation included. (#218)
git-svn-id: http://svn.osgeo.org/postgis/trunk@4847 b70326c6-7e19-0410-871a-916f4a2858ee
2009-11-17 20:03:50 +00:00
Paul Ramsey e05eff13b0 Trim the binary versions of geometries to try and remove regressions from other platforms.
git-svn-id: http://svn.osgeo.org/postgis/trunk@4846 b70326c6-7e19-0410-871a-916f4a2858ee
2009-11-17 17:23:16 +00:00
Mark Cave-Ayland 1bb2f3a2e6 Properly fix #219 by creating a separate "mini install" of PostGIS into the PGXS regression directory that can be used for regression. This is because different architectures have different naming conventions, and so Paul's original hack isn't guaranteed to work. By using PGXS to perform the install, we eliminate the problem of having to know the final architecture library name.
git-svn-id: http://svn.osgeo.org/postgis/trunk@4845 b70326c6-7e19-0410-871a-916f4a2858ee
2009-11-17 14:00:09 +00:00
Paul Ramsey 820541da85 Add tests from #210 to the tickets.sql
git-svn-id: http://svn.osgeo.org/postgis/trunk@4844 b70326c6-7e19-0410-871a-916f4a2858ee
2009-11-17 04:28:11 +00:00
Paul Ramsey 09e70c585e Add tickets.sql and expected tests derived from old trac entries (#214)
git-svn-id: http://svn.osgeo.org/postgis/trunk@4843 b70326c6-7e19-0410-871a-916f4a2858ee
2009-11-17 04:25:26 +00:00
Paul Ramsey 10dbae5167 Add identifying lines to SQL so that error lines are easier to find.
git-svn-id: http://svn.osgeo.org/postgis/trunk@4842 b70326c6-7e19-0410-871a-916f4a2858ee
2009-11-16 23:30:47 +00:00
Paul Ramsey cea471ce0c Remove trailing space from libname
git-svn-id: http://svn.osgeo.org/postgis/trunk@4841 b70326c6-7e19-0410-871a-916f4a2858ee
2009-11-16 23:22:09 +00:00
Paul Ramsey e3eb939893 Add in hack to match the library .so substition name to the one produced by a particular PgSQL version. (#219)
git-svn-id: http://svn.osgeo.org/postgis/trunk@4840 b70326c6-7e19-0410-871a-916f4a2858ee
2009-11-16 22:01:21 +00:00
Paul Ramsey 7ae605bfc2 Add in tests for MapServer/Geoserver-style SQL calls. (#224)
git-svn-id: http://svn.osgeo.org/postgis/trunk@4839 b70326c6-7e19-0410-871a-916f4a2858ee
2009-11-16 21:13:44 +00:00
Kevin Neufeld 3d4a54a77a Ticket #76.
- added a modified version of a plpgsql implementation for ST_DumpPoints() proposed by Maxime van Noppen. 
- added regression tests

git-svn-id: http://svn.osgeo.org/postgis/trunk@4836 b70326c6-7e19-0410-871a-916f4a2858ee
2009-11-16 19:47:33 +00:00
Paul Ramsey c212442dff Add doco and regression tests for ST_MakeEnvelope() (#199)
git-svn-id: http://svn.osgeo.org/postgis/trunk@4832 b70326c6-7e19-0410-871a-916f4a2858ee
2009-11-16 18:46:38 +00:00
Paul Ramsey 4c0b4741b6 Add locale handling by setting to 'C' (#303)
git-svn-id: http://svn.osgeo.org/postgis/trunk@4815 b70326c6-7e19-0410-871a-916f4a2858ee
2009-11-15 19:32:07 +00:00
Paul Ramsey 43a8513e27 Update behavior of lwgeom_same to match "orderingequals" semantics (#289)
git-svn-id: http://svn.osgeo.org/postgis/trunk@4789 b70326c6-7e19-0410-871a-916f4a2858ee
2009-11-11 19:57:24 +00:00
Olivier Courtin 9e3a51f601 Initial version of ST_GeomFromKML function and related units tests
git-svn-id: http://svn.osgeo.org/postgis/trunk@4769 b70326c6-7e19-0410-871a-916f4a2858ee
2009-11-08 19:05:50 +00:00
Paul Ramsey d4b40a910d Drop database when function loads fail in regression tests. (#77)
git-svn-id: http://svn.osgeo.org/postgis/trunk@4764 b70326c6-7e19-0410-871a-916f4a2858ee
2009-11-07 01:47:02 +00:00
Paul Ramsey 6f547e3120 Make ~= be a bounding box only operator and upgrade ST_Equals() and ST_OrderingEquals() to match the new behavior. Update regression tests to match new behavior. (#282) See also #289 for an odd quirk discovered while updating regression tests.
git-svn-id: http://svn.osgeo.org/postgis/trunk@4763 b70326c6-7e19-0410-871a-916f4a2858ee
2009-11-07 01:31:07 +00:00
Olivier Courtin fa590aee0a finalize Xlink support (GML SF-2 fully compliant). Fix typo on PointProperty/Point. Few comments and style corrections. Update unit tests.
git-svn-id: http://svn.osgeo.org/postgis/trunk@4759 b70326c6-7e19-0410-871a-916f4a2858ee
2009-11-06 22:49:09 +00:00
Paul Ramsey d374db48d3 Fix for new LRS regression (#283)
git-svn-id: http://svn.osgeo.org/postgis/trunk@4751 b70326c6-7e19-0410-871a-916f4a2858ee
2009-11-05 19:29:23 +00:00
Paul Ramsey 1375e2ddc5 Implement RFC3 (#195)
git-svn-id: http://svn.osgeo.org/postgis/trunk@4750 b70326c6-7e19-0410-871a-916f4a2858ee
2009-11-05 19:04:45 +00:00
Olivier Courtin 8d09ad000f Allow a double to not have digit after dot (related to #175). Update unit test case
git-svn-id: http://svn.osgeo.org/postgis/trunk@4741 b70326c6-7e19-0410-871a-916f4a2858ee
2009-11-04 21:10:40 +00:00
Olivier Courtin 638856d1d8 Initial support of Xlink. Add related units tests. Few cleaning
git-svn-id: http://svn.osgeo.org/postgis/trunk@4731 b70326c6-7e19-0410-871a-916f4a2858ee
2009-11-03 22:26:25 +00:00
Olivier Courtin 23d3574fc9 Add namespace support. Add pointProperty and pointRep support. Fix pos and posList spaces inside coordinates issue. Comments update. Update unit tests
git-svn-id: http://svn.osgeo.org/postgis/trunk@4725 b70326c6-7e19-0410-871a-916f4a2858ee
2009-11-03 13:36:47 +00:00
Olivier Courtin 1f54920bfb Change dimension to srsDimension (GML 3.1.1)
git-svn-id: http://svn.osgeo.org/postgis/trunk@4705 b70326c6-7e19-0410-871a-916f4a2858ee
2009-10-29 20:31:02 +00:00