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