Commit graph

402 commits

Author SHA1 Message Date
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
Olivier Courtin b79d225e62 Change attribute dimension into srsDimension (GML 3.1.1), cf #276
git-svn-id: http://svn.osgeo.org/postgis/trunk@4704 b70326c6-7e19-0410-871a-916f4a2858ee
2009-10-29 20:21:15 +00:00
Olivier Courtin cf4d25428c Add mixed GML srs support. Add ability to deal with lat/lon issue in GML 3. Fix GML collection units tests. Update units tests
git-svn-id: http://svn.osgeo.org/postgis/trunk@4699 b70326c6-7e19-0410-871a-916f4a2858ee
2009-10-29 18:42:17 +00:00
Olivier Courtin 793bed0412 Update unit test result, related to error message change (r4662 in lwgeom_transform.c)
git-svn-id: http://svn.osgeo.org/postgis/trunk@4697 b70326c6-7e19-0410-871a-916f4a2858ee
2009-10-29 14:21:09 +00:00
Olivier Courtin 6e36099797 Add attribute dimension in gml:pos and gml:posList. Fix geometrycollection invalid GML output. Update units test. Cf #276
git-svn-id: http://svn.osgeo.org/postgis/trunk@4696 b70326c6-7e19-0410-871a-916f4a2858ee
2009-10-29 14:08:16 +00:00
Olivier Courtin 2c6e06417e Add multi data coordinates support. Add unit test case data_1
git-svn-id: http://svn.osgeo.org/postgis/trunk@4680 b70326c6-7e19-0410-871a-916f4a2858ee
2009-10-24 16:37:12 +00:00
Olivier Courtin c20bc78be5 Use ptarray_isclosed3d to check if 3D rings are closed also on Z. Update units tests cases
git-svn-id: http://svn.osgeo.org/postgis/trunk@4671 b70326c6-7e19-0410-871a-916f4a2858ee
2009-10-22 14:08:09 +00:00
Olivier Courtin 5178422626 Add initial version of GeomFromGML function, and units tests cases.
git-svn-id: http://svn.osgeo.org/postgis/trunk@4667 b70326c6-7e19-0410-871a-916f4a2858ee
2009-10-20 12:54:01 +00:00
Sandro Santilli 867210851c Ensure lwcollection_segmentize2d always return a NEW geometry. Fixes ticket #254. Add regression test for that bug.
git-svn-id: http://svn.osgeo.org/postgis/trunk@4542 b70326c6-7e19-0410-871a-916f4a2858ee
2009-09-29 13:31:20 +00:00
Mark Leslie 2c33167122 Removing accidental commit from r4366.
git-svn-id: http://svn.osgeo.org/postgis/trunk@4397 b70326c6-7e19-0410-871a-916f4a2858ee
2009-08-13 00:37:30 +00:00
Mark Leslie 3eddf6078b Fix for ticket #234
git-svn-id: http://svn.osgeo.org/postgis/trunk@4366 b70326c6-7e19-0410-871a-916f4a2858ee
2009-08-07 03:38:24 +00:00
Mark Cave-Ayland adf4763a73 Remove quotes from PATH in regression Makefile, as it seems that the last MingW hack doesn't need this any more.
git-svn-id: http://svn.osgeo.org/postgis/trunk@4338 b70326c6-7e19-0410-871a-916f4a2858ee
2009-07-30 16:03:55 +00:00
Mark Cave-Ayland 33ee9fcb58 Fix for Windows combining stdout/stderr when executing the $(shell) command.
git-svn-id: http://svn.osgeo.org/postgis/trunk@4322 b70326c6-7e19-0410-871a-916f4a2858ee
2009-07-18 20:01:52 +00:00
Mark Cave-Ayland 13c6bee1ec Apply fix to allow regression tests to run on MingW by fixing PATH and removing trailing CR/LFs on some outputs.
git-svn-id: http://svn.osgeo.org/postgis/trunk@4321 b70326c6-7e19-0410-871a-916f4a2858ee
2009-07-18 19:01:31 +00:00
Mark Cave-Ayland ba0962fc9f Fix regression regex listings so that the newer "LINE n:" lines and lines containing just a position indicator (^) introduced in PostgreSQL 8.4 are removed from the regression output.
git-svn-id: http://svn.osgeo.org/postgis/trunk@4319 b70326c6-7e19-0410-871a-916f4a2858ee
2009-07-18 18:45:42 +00:00
Sandro Santilli 572d23937c Pre-install check rule by Paul cleaned up to allow top-level run and correct dependencies. See issue #219.
git-svn-id: http://svn.osgeo.org/postgis/trunk@4284 b70326c6-7e19-0410-871a-916f4a2858ee
2009-07-08 16:03:36 +00:00
Sandro Santilli 73bfa93284 For buffer parameters: accept 'butt' as a synonim for 'flat', 'miter' for 'mitre' and 'miter_limit' for 'mitre_limit'.
git-svn-id: http://svn.osgeo.org/postgis/trunk@4266 b70326c6-7e19-0410-871a-916f4a2858ee
2009-07-07 15:03:50 +00:00
Mark Leslie 10d24712cd Making the changes from r4244 and r4245 onto trunk, addressing ticket 212.
git-svn-id: http://svn.osgeo.org/postgis/trunk@4246 b70326c6-7e19-0410-871a-916f4a2858ee
2009-07-02 08:31:24 +00:00
Mark Leslie 38518df9a3 First swing at ticket 212.
git-svn-id: http://svn.osgeo.org/postgis/trunk@4231 b70326c6-7e19-0410-871a-916f4a2858ee
2009-06-30 07:35:37 +00:00
Mark Cave-Ayland c503926042 Unbreak the PostGIS universe for people who aren't using GEOS SVN (will be 3.2).
git-svn-id: http://svn.osgeo.org/postgis/trunk@4218 b70326c6-7e19-0410-871a-916f4a2858ee
2009-06-26 09:35:43 +00:00
Paul Ramsey 81fc797550 Add support for hausdorff distance calculations. Requires GEOS 3.2+. (#209) From Vincent Picavet.
If you are working off of GEOS trunk, svn up, compile and install!


git-svn-id: http://svn.osgeo.org/postgis/trunk@4208 b70326c6-7e19-0410-871a-916f4a2858ee
2009-06-24 22:08:33 +00:00
Sandro Santilli db528c5188 Add tests for parametrized buffer
git-svn-id: http://svn.osgeo.org/postgis/trunk@4206 b70326c6-7e19-0410-871a-916f4a2858ee
2009-06-24 13:32:46 +00:00
Sandro Santilli 1ca8b4052f Yet another buffer auto-cast test. With a different quadSegs this time to be really sure the argument is being used.
git-svn-id: http://svn.osgeo.org/postgis/trunk@4192 b70326c6-7e19-0410-871a-916f4a2858ee
2009-06-23 16:38:10 +00:00
Sandro Santilli 9bf0f74075 Add test for third argument to buffer() being a string (based on auto-cast)
git-svn-id: http://svn.osgeo.org/postgis/trunk@4191 b70326c6-7e19-0410-871a-916f4a2858ee
2009-06-23 16:36:23 +00:00
Sandro Santilli f2e22b4309 Add tests for area() called against empty geometries
git-svn-id: http://svn.osgeo.org/postgis/trunk@4188 b70326c6-7e19-0410-871a-916f4a2858ee
2009-06-20 21:26:04 +00:00
Paul Ramsey f31941735b Fix for #192.
git-svn-id: http://svn.osgeo.org/postgis/trunk@4134 b70326c6-7e19-0410-871a-916f4a2858ee
2009-06-04 14:17:07 +00:00
Paul Ramsey bc9640ffcb Fix for issue #186
git-svn-id: http://svn.osgeo.org/postgis/trunk@4131 b70326c6-7e19-0410-871a-916f4a2858ee
2009-06-03 23:07:48 +00:00
Kevin Neufeld 18c2e66d92 dropping a table that's not there causes an ERROR in the logs
- 8.1 does not support DROP TABLE IF EXISTS, so first test if the table is there, then drop it.

git-svn-id: http://svn.osgeo.org/postgis/trunk@4040 b70326c6-7e19-0410-871a-916f4a2858ee
2009-04-29 19:22:18 +00:00
Olivier Courtin f7efab822a Add a new option for ST_AsGML related to axis order, and lat lon inversion in GML 3.1.1, cf #161. Add unit test on this new option bit field. Update documentation. Fix also wrong option value in ST_AsGML for CRS, and outdated example output (still for ST_AsGML).
git-svn-id: http://svn.osgeo.org/postgis/trunk@4039 b70326c6-7e19-0410-871a-916f4a2858ee
2009-04-28 19:13:26 +00:00
Paul Ramsey f8ae273e9d Final fix to remove cpp requirement
git-svn-id: http://svn.osgeo.org/postgis/trunk@3889 b70326c6-7e19-0410-871a-916f4a2858ee
2009-03-19 00:48:57 +00:00
Paul Ramsey 7ad30d98c7 Remove preproc step for sql-mm curve regression.
git-svn-id: http://svn.osgeo.org/postgis/trunk@3888 b70326c6-7e19-0410-871a-916f4a2858ee
2009-03-19 00:38:34 +00:00
Paul Ramsey 6ba139d4fd Remove USE_JTS and cpp preproc from sql-mm regression
git-svn-id: http://svn.osgeo.org/postgis/trunk@3887 b70326c6-7e19-0410-871a-916f4a2858ee
2009-03-19 00:37:21 +00:00
Olivier Courtin 447f68e2cd updated SVG unit to reduce to max 2 decimal digits
git-svn-id: http://svn.osgeo.org/postgis/trunk@3847 b70326c6-7e19-0410-871a-916f4a2858ee
2009-03-10 21:05:19 +00:00
Olivier Courtin 2d6bdb6b9d Add SVG unit test file
git-svn-id: http://svn.osgeo.org/postgis/trunk@3845 b70326c6-7e19-0410-871a-916f4a2858ee
2009-03-10 20:49:27 +00:00
Olivier Courtin cf10a0eccc update GML unit test according to AsGML option related to CRS output option
git-svn-id: http://svn.osgeo.org/postgis/trunk@3840 b70326c6-7e19-0410-871a-916f4a2858ee
2009-03-10 20:15:22 +00:00
Olivier Courtin ebcd77343f Update unit test upon previous GeoJson CRS change
git-svn-id: http://svn.osgeo.org/postgis/trunk@3838 b70326c6-7e19-0410-871a-916f4a2858ee
2009-03-10 19:30:52 +00:00
Mark Leslie 488d11cba9 Moving parser changes from spike/mleslie/parser to allow the proper nesting of compound curves within curve polygons and the validation of compound curve continuity. This also resolves GBT#124.
git-svn-id: http://svn.osgeo.org/postgis/trunk@3821 b70326c6-7e19-0410-871a-916f4a2858ee
2009-03-10 00:29:32 +00:00
Paul Ramsey 84ede471af Fix for GBT#96.
git-svn-id: http://svn.osgeo.org/postgis/trunk@3817 b70326c6-7e19-0410-871a-916f4a2858ee
2009-03-09 18:40:23 +00:00