Commit graph

525 commits

Author SHA1 Message Date
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
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
Mark Cave-Ayland e78a1a96d9 Fix for GBT#93: ST_Extent() and ST_Estimated_Extent() return BOX2DFLOAT4s. This is currently done using a horrible hack for backwards compatibility which introduces a new type just for ST_Extent(). See GBT email to postgis-devel and code comments for more detail.
git-svn-id: http://svn.osgeo.org/postgis/trunk@3811 b70326c6-7e19-0410-871a-916f4a2858ee
2009-03-08 22:33:31 +00:00
Paul Ramsey ddfe100a7c Change references from ./lwgeom to ./postgis
git-svn-id: http://svn.osgeo.org/postgis/trunk@3687 b70326c6-7e19-0410-871a-916f4a2858ee
2009-02-11 18:28:53 +00:00
Olivier Courtin ce49b5fe54 KML output: use decimal places rather than significant digit, trim trailing zeros, update documentation, update unit test
git-svn-id: http://svn.osgeo.org/postgis/trunk@3677 b70326c6-7e19-0410-871a-916f4a2858ee
2009-02-10 08:00:39 +00:00
Olivier Courtin f2743b91e4 GeoJson output: trim trailing zero, add forgotten free on subgemotry inspect. GML output: precision no more as a global one, decimal places rather than significant digits, trim trailing zero, add unit test, doc update with output example
git-svn-id: http://svn.osgeo.org/postgis/trunk@3676 b70326c6-7e19-0410-871a-916f4a2858ee
2009-02-10 07:54:19 +00:00
Mark Leslie 0974feec6b Fix for Issue 108 and regress test.
git-svn-id: http://svn.osgeo.org/postgis/trunk@3605 b70326c6-7e19-0410-871a-916f4a2858ee
2009-02-02 06:01:27 +00:00
Mark Cave-Ayland feef574560 Part 1 of GBT#94: Rename folders/files to be more consistent. Embed the MAJOR.MINOR version in the PostgreSQL shared library name (to allow different databases to contain different PostGIS versions) and also rename lwpostgis.sql to postgis.sql. Update documentation in various files to reflect the new names at the same time.
git-svn-id: http://svn.osgeo.org/postgis/trunk@3534 b70326c6-7e19-0410-871a-916f4a2858ee
2009-01-15 18:35:06 +00:00
Mark Cave-Ayland baa7ea483b Fix regression tests to account for changes made in r3522 (rename 'Curve' to 'CircularString')
git-svn-id: http://svn.osgeo.org/postgis/trunk@3525 b70326c6-7e19-0410-871a-916f4a2858ee
2009-01-13 15:11:19 +00:00
Paul Ramsey 288e02f21a Remove LFs from regression files per MCA.
git-svn-id: http://svn.osgeo.org/postgis/trunk@3438 b70326c6-7e19-0410-871a-916f4a2858ee
2008-12-17 20:22:07 +00:00
Mark Cave-Ayland f86114f64c Add new lwmessage_truncate() function to liblwgeom that will truncate a string to a maximum number of characters, adding a "..." to indicate where the string has been trimmed. Truncation can be specified to occur from either the start or end of the string as required. Also update the parser error handler to use the new function.
git-svn-id: http://svn.osgeo.org/postgis/trunk@3373 b70326c6-7e19-0410-871a-916f4a2858ee
2008-12-10 12:32:40 +00:00
Paul Ramsey 748b0772df Prepared geometry mixed-types bug fix ported forward from 1.3.
git-svn-id: http://svn.osgeo.org/postgis/trunk@3279 b70326c6-7e19-0410-871a-916f4a2858ee
2008-11-07 17:07:12 +00:00
Mark Cave-Ayland 5ee18ad684 Fix regression tests reporting incorrect failures due to a change of output caused by r3243.
git-svn-id: http://svn.osgeo.org/postgis/trunk@3255 b70326c6-7e19-0410-871a-916f4a2858ee
2008-11-05 11:25:14 +00:00
Mark Cave-Ayland 686af70aac Fix regression test differences between different platforms in the AsGeoJSON regression code. There were two issues: firstly, the original regression tests included precision information > 15 significant figures, and secondly the GeoJSON code was exposing BOX2DFLOAT4 information to the client instead of calculating the true bounding box. With thanks to Olivier Courtin.
git-svn-id: http://svn.osgeo.org/postgis/trunk@3221 b70326c6-7e19-0410-871a-916f4a2858ee
2008-10-30 23:13:13 +00:00
Mark Cave-Ayland e86ae33578 Remove postgis_jts_version() function call from regression tests as the function no longer exists (prevents warning being displayed at the start of the test run)
git-svn-id: http://svn.osgeo.org/postgis/trunk@3140 b70326c6-7e19-0410-871a-916f4a2858ee
2008-10-18 08:33:15 +00:00
Mark Cave-Ayland 8e173fb266 Update the LWGEOM parser to provide error HINTs when being called from PostgreSQL, and update regression tests accordingly.
git-svn-id: http://svn.osgeo.org/postgis/trunk@3113 b70326c6-7e19-0410-871a-916f4a2858ee
2008-10-15 15:03:54 +00:00
Mark Cave-Ayland e28c430e58 Nearly finish work on the new parser API. The key part of this patch is to alter the behaviour of the parser so that instead of generating errors directly, it returns an error code, error location and an error message. Hence the caller is now in charge of the behaviour when parsing invalid geometries, and so can ignore errors or proceed onto the next geometry if required. The regression test change is due to a change in an error message, since the error is now returned from the unparser before it even gets to GEOS.
git-svn-id: http://svn.osgeo.org/postgis/trunk@3106 b70326c6-7e19-0410-871a-916f4a2858ee
2008-10-14 19:51:24 +00:00
Paul Ramsey f2a42d94ca Prepared geometries getting closer to readiness. Integrated into standard functions, regression tests added.
git-svn-id: http://svn.osgeo.org/postgis/trunk@3085 b70326c6-7e19-0410-871a-916f4a2858ee
2008-10-10 04:39:54 +00:00
Mark Leslie 1db757c225 Updating the regression test README file with details about the c preprocessing step and the formatting of the _expected file results.
git-svn-id: http://svn.osgeo.org/postgis/trunk@3084 b70326c6-7e19-0410-871a-916f4a2858ee
2008-10-10 01:35:58 +00:00
Mark Leslie e23659e1a0 Rebuilt the box3d generation for circular strings to account for a special large-arc case. Fix for issue 58, includes regression test for the case.
git-svn-id: http://svn.osgeo.org/postgis/trunk@3080 b70326c6-7e19-0410-871a-916f4a2858ee
2008-10-08 10:14:46 +00:00
Mark Cave-Ayland 7b89b5c5e8 Update regression tests to include test cases for GBT#21.
git-svn-id: http://svn.osgeo.org/postgis/trunk@3032 b70326c6-7e19-0410-871a-916f4a2858ee
2008-09-30 13:29:49 +00:00
Paul Ramsey a9109daf57 Apply GeoJSON patch from Olivier Courtin.
git-svn-id: http://svn.osgeo.org/postgis/trunk@2842 b70326c6-7e19-0410-871a-916f4a2858ee
2008-07-13 23:47:54 +00:00
Mark Cave-Ayland cee1f271e5 Commit new build system based upon PGXS. Due to the large number of changes, please refer to http://postgis.refractions.net/pipermail/postgis-devel/2008-May/003010.html.
git-svn-id: http://svn.osgeo.org/postgis/trunk@2774 b70326c6-7e19-0410-871a-916f4a2858ee
2008-05-14 17:10:19 +00:00
Paul Ramsey db69c6e6cd ST_AsGeoJSon patch from Olivier Courtin <olivier.courtin@camptocamp.com>.
git-svn-id: http://svn.osgeo.org/postgis/trunk@2772 b70326c6-7e19-0410-871a-916f4a2858ee
2008-04-24 01:04:52 +00:00
Paul Ramsey 5ad75bd11b Fix the ST_AsKML regression tests.
git-svn-id: http://svn.osgeo.org/postgis/trunk@2757 b70326c6-7e19-0410-871a-916f4a2858ee
2008-04-07 19:47:21 +00:00
Paul Ramsey fd9fceb57f Allow conditional regression tests based on GEOS_VERNUM and move the
cover/prepared tests into the appropriate buckets. Fix the AT_AsKML 
regression tests.


git-svn-id: http://svn.osgeo.org/postgis/trunk@2756 b70326c6-7e19-0410-871a-916f4a2858ee
2008-04-07 19:47:05 +00:00
Paul Ramsey b653974a3f Removed regress_ogc_prep from tests temporarily until a new GEOS is released with support
for new predicates.


git-svn-id: http://svn.osgeo.org/postgis/trunk@2741 b70326c6-7e19-0410-871a-916f4a2858ee
2008-03-28 17:05:04 +00:00
Ben Jubb 9f2acdc13d Changed the interface for the GEOS prepared predicates.
ST_contains, ST_containsProperly, ST_covers, and ST_intersects are now overloaded.  
The new arguments style is ( geometry, geometry, integer).  The third argument is used to determine when the first argument changes.  The assumption is that when the third argument changes, the first argument is assumed to have changed too.  This side-steps the issue of determining when the identity of the first geometry changes.




git-svn-id: http://svn.osgeo.org/postgis/trunk@2735 b70326c6-7e19-0410-871a-916f4a2858ee
2008-01-29 01:24:34 +00:00
Ben Jubb 103a48cd3e Tests for the prepared geometry predicates.
The tests were copied from regress_ogc, and modified.
Most of the tests use a pattern where the same function is invoked three times with the same argument.
This tests the prepared geometry caching mechanism.
This testfile haven't been added to regress/Makefile yet, as it fails for one case.  This 
probably due to a bug in GEOS.



git-svn-id: http://svn.osgeo.org/postgis/trunk@2729 b70326c6-7e19-0410-871a-916f4a2858ee
2008-01-18 00:59:13 +00:00
Paul Ramsey 1ac4070cb0 KML credits patch <yecarrillo>
git-svn-id: http://svn.osgeo.org/postgis/trunk@2711 b70326c6-7e19-0410-871a-916f4a2858ee
2007-10-23 00:19:54 +00:00
Mark Leslie b74075b770 Updated the regression tests for curved geoms to avoid the byte ordering problems.
git-svn-id: http://svn.osgeo.org/postgis/trunk@2680 b70326c6-7e19-0410-871a-916f4a2858ee
2007-08-09 16:56:37 +00:00
Mark Leslie e8e9d4ffc9 Resurrected the ST_LineToCurve regression tests, but commented them out until ST_SnapToGrid excepts curves.
git-svn-id: http://svn.osgeo.org/postgis/trunk@2663 b70326c6-7e19-0410-871a-916f4a2858ee
2007-07-16 18:26:58 +00:00
Mark Leslie 495c97b173 Removing the unsnappable test calls to LineToCurve.
git-svn-id: http://svn.osgeo.org/postgis/trunk@2654 b70326c6-7e19-0410-871a-916f4a2858ee
2007-07-12 17:20:24 +00:00
Mark Leslie e4236983db Added ST_Covers and ST_CoveredBy functions, as discussed at http://lin-ear-th-inking.blogspot.com. Added regression tests and documention for the new functions.
git-svn-id: http://svn.osgeo.org/postgis/trunk@2635 b70326c6-7e19-0410-871a-916f4a2858ee
2007-06-28 22:46:08 +00:00
Mark Leslie 3741f4e3dd Updated the regression test suite to allow variable results depending on jts/geos availability.
git-svn-id: http://svn.osgeo.org/postgis/trunk@2625 b70326c6-7e19-0410-871a-916f4a2858ee
2007-06-15 19:06:11 +00:00
Mark Leslie 5313b69c4f Added versions of functions with standard ST (Spatial Type) prefixes to any functions that were lacking them. Updated the regression tests to include the new functions.
git-svn-id: http://svn.osgeo.org/postgis/trunk@2616 b70326c6-7e19-0410-871a-916f4a2858ee
2007-06-04 23:06:28 +00:00
Mark Leslie aad405de80 Ongoing PIP trauma. Addressed the issue of points in line with a boundary segment, but not actually on it. Added appropriate unit tests.
git-svn-id: http://svn.osgeo.org/postgis/trunk@2614 b70326c6-7e19-0410-871a-916f4a2858ee
2007-06-01 20:56:58 +00:00
Mark Leslie 5624dc6444 Added curve handling to getType, numGeometries, geometryN, dimension, exteriorRing, numInteriorRings, interiorRingN, closed (lwgeom_ogc.c) lwgeom_clone (lwgeom.c) and area. Added function ST_CurveToLine and ST_LineToCurve. Added regression tests for sql-mm geometries and related functions.
git-svn-id: http://svn.osgeo.org/postgis/trunk@2609 b70326c6-7e19-0410-871a-916f4a2858ee
2007-05-28 15:34:04 +00:00
Mark Leslie 99ed2d6186 Added short-circuit calls for the point-in-polygon cases of disjoint and intersect calls. Added regression tests for the new short-circuits.
git-svn-id: http://svn.osgeo.org/postgis/trunk@2608 b70326c6-7e19-0410-871a-916f4a2858ee
2007-05-22 22:10:33 +00:00
Mark Cave-Ayland e3e346a894 Fix broken regress_proj expected results by removing the extra DELETE at the end of the file.
git-svn-id: http://svn.osgeo.org/postgis/trunk@2606 b70326c6-7e19-0410-871a-916f4a2858ee
2007-05-14 17:55:58 +00:00
Mark Leslie 68d1d48c0a Bug 143 code fix and regression case.
git-svn-id: http://svn.osgeo.org/postgis/trunk@2598 b70326c6-7e19-0410-871a-916f4a2858ee
2007-03-09 00:33:58 +00:00
Sandro Santilli e20cf2d03f * regress/run_test: discard CONTEXT and DELETE
lines from test outputs.

Patch by Eduin Carrillo, sliglty modified to take precision
into account:

        * regress/: Makefile, kml.sql, kml_expected:
          Regression test for asKML().




git-svn-id: http://svn.osgeo.org/postgis/trunk@2595 b70326c6-7e19-0410-871a-916f4a2858ee
2007-02-26 09:03:52 +00:00
Kevin Neufeld f005e965d6 initial load
git-svn-id: http://svn.osgeo.org/postgis/trunk@2567 b70326c6-7e19-0410-871a-916f4a2858ee
2007-01-03 17:28:03 +00:00
Sandro Santilli 4a2931ef66 * regress/README: wrote info about adding regression tests
(plus some ChangeLog formatting)


git-svn-id: http://svn.osgeo.org/postgis/trunk@2561 b70326c6-7e19-0410-871a-916f4a2858ee
2006-12-20 20:43:05 +00:00
Kevin Neufeld 65959e6974 Added test to fix that permitted gist indexes to have more than 459 null geometries in a table
git-svn-id: http://svn.osgeo.org/postgis/trunk@2559 b70326c6-7e19-0410-871a-916f4a2858ee
2006-12-20 18:44:55 +00:00
Mark Leslie c40a30b516 Added typedefs and serialization/deserialization functionality for sql-mm defined curved geometry types. Added a point_in_polygon short-circuit for contains and within functions.
git-svn-id: http://svn.osgeo.org/postgis/trunk@2532 b70326c6-7e19-0410-871a-916f4a2858ee
2006-12-01 22:16:44 +00:00
Markus Schaber 5a0d4e643d Make regress test build loader and dumper as it needs them
git-svn-id: http://svn.osgeo.org/postgis/trunk@2516 b70326c6-7e19-0410-871a-916f4a2858ee
2006-10-25 09:57:41 +00:00
Sandro Santilli e827fe7fae Fixed regress tests to pass with GEOS-3.0.0
git-svn-id: http://svn.osgeo.org/postgis/trunk@2474 b70326c6-7e19-0410-871a-916f4a2858ee
2006-09-18 09:16:22 +00:00
Sandro Santilli 27ddf609cf Added tests for makeline, makebox2d and makebox3d
git-svn-id: http://svn.osgeo.org/postgis/trunk@2462 b70326c6-7e19-0410-871a-916f4a2858ee
2006-07-28 13:07:52 +00:00
Sandro Santilli f366330cdb Marked shapefiles as binary, corrected accidentally mangled ones
git-svn-id: http://svn.osgeo.org/postgis/trunk@2458 b70326c6-7e19-0410-871a-916f4a2858ee
2006-07-27 15:06:11 +00:00
Sandro Santilli 3ef2104106 Fixed bug in collect() function discarding SRID of input
git-svn-id: http://svn.osgeo.org/postgis/trunk@2413 b70326c6-7e19-0410-871a-916f4a2858ee
2006-07-25 20:16:00 +00:00
Sandro Santilli 9443f0ac46 replaced ROLLBACK with COMMIT in psql output to hide differences with 7.4 and lower pgsql versions.
git-svn-id: http://svn.osgeo.org/postgis/trunk@2402 b70326c6-7e19-0410-871a-916f4a2858ee
2006-06-26 01:02:28 +00:00
Sandro Santilli c2e09db19d qualified all geometry arguments.
git-svn-id: http://svn.osgeo.org/postgis/trunk@2399 b70326c6-7e19-0410-871a-916f4a2858ee
2006-06-26 00:40:45 +00:00
Sandro Santilli c9ab560b5b Added Long Transaction Support routines, dox and regress test.
git-svn-id: http://svn.osgeo.org/postgis/trunk@2398 b70326c6-7e19-0410-871a-916f4a2858ee
2006-06-25 23:59:33 +00:00
Sandro Santilli 3f57847e2e Fixed the lc_messages failure by avoiding attempts at setting it when run against a postgresql version < 8.0. Also fixed a path in a message from run_test.
git-svn-id: http://svn.osgeo.org/postgis/trunk@2397 b70326c6-7e19-0410-871a-916f4a2858ee
2006-06-25 23:45:30 +00:00
Sandro Santilli 44e7d93655 Removed -0 values from polygon doubles
git-svn-id: http://svn.osgeo.org/postgis/trunk@2389 b70326c6-7e19-0410-871a-916f4a2858ee
2006-06-19 10:42:40 +00:00
Sandro Santilli c684f79b9d Changed -e test with -f, for Solaris support
git-svn-id: http://svn.osgeo.org/postgis/trunk@2388 b70326c6-7e19-0410-871a-916f4a2858ee
2006-06-18 11:29:21 +00:00
Sandro Santilli 629575f5d2 removed spurious newline
git-svn-id: http://svn.osgeo.org/postgis/trunk@2387 b70326c6-7e19-0410-871a-916f4a2858ee
2006-06-17 11:46:03 +00:00
Sandro Santilli c8095e4047 Fixed portability issues in the new run_test code, added loader test
for all supported shapefile types


git-svn-id: http://svn.osgeo.org/postgis/trunk@2386 b70326c6-7e19-0410-871a-916f4a2858ee
2006-06-17 11:44:12 +00:00
Sandro Santilli 3690108345 New regress test cases and support for loader/dumper.
git-svn-id: http://svn.osgeo.org/postgis/trunk@2384 b70326c6-7e19-0410-871a-916f4a2858ee
2006-06-16 14:13:06 +00:00
Sandro Santilli 4f9f590c8f Moved 'measures' query into a specific file, added a test for bug #108
git-svn-id: http://svn.osgeo.org/postgis/trunk@2367 b70326c6-7e19-0410-871a-916f4a2858ee
2006-05-22 15:29:19 +00:00
Sandro Santilli 2504bfda8c Additional bbox tests for transcale, rotateX and rotateY
git-svn-id: http://svn.osgeo.org/postgis/trunk@2352 b70326c6-7e19-0410-871a-916f4a2858ee
2006-05-17 07:52:55 +00:00
Sandro Santilli c54bcc654c Added tests for translate and scale bbox computation
git-svn-id: http://svn.osgeo.org/postgis/trunk@2351 b70326c6-7e19-0410-871a-916f4a2858ee
2006-05-16 19:11:37 +00:00
Sandro Santilli 74a0dcbffd Added test for wkt parser
git-svn-id: http://svn.osgeo.org/postgis/trunk@2332 b70326c6-7e19-0410-871a-916f4a2858ee
2006-04-18 12:30:46 +00:00
Sandro Santilli f0eea2ca89 Mangled Self-intersection message to remove 'at or near point'
so that test works with both GEOS 2.x (w/out point spec) and 3.x (with point spec)


git-svn-id: http://svn.osgeo.org/postgis/trunk@2321 b70326c6-7e19-0410-871a-916f4a2858ee
2006-03-28 08:39:38 +00:00
Sandro Santilli f17c883dd0 Used a larger grid for buffer() test, to account for rounding changes between
GEOS-2.2 and GEOS-3.0


git-svn-id: http://svn.osgeo.org/postgis/trunk@2320 b70326c6-7e19-0410-871a-916f4a2858ee
2006-03-27 09:33:03 +00:00
Sandro Santilli f7e6040466 Fixed 'clean' rule to succeed also when tree already cleaned (rm -f)
git-svn-id: http://svn.osgeo.org/postgis/trunk@2314 b70326c6-7e19-0410-871a-916f4a2858ee
2006-03-01 09:10:22 +00:00
Markus Schaber 2da9b850ab documented affine(), rewrote transscale() to use affine()
git-svn-id: http://svn.osgeo.org/postgis/trunk@2312 b70326c6-7e19-0410-871a-916f4a2858ee
2006-02-23 11:48:08 +00:00
Sandro Santilli 945d8543c4 Added affine() internal function.
Provided rotate{Z,X,Y}() internally using affine().
Made scale() and translate() internally use affine().
Obsoleted transscale() function.
Fixed a bbox-related bug in transscale()
Added a test for affine transformations.


git-svn-id: http://svn.osgeo.org/postgis/trunk@2311 b70326c6-7e19-0410-871a-916f4a2858ee
2006-02-22 14:06:20 +00:00
Sandro Santilli f1d0146ec7 Qualified args of difference() to avoid clashes with other packages
git-svn-id: http://svn.osgeo.org/postgis/trunk@2310 b70326c6-7e19-0410-871a-916f4a2858ee
2006-02-15 08:38:06 +00:00
Sandro Santilli 22be39982a Made regress/run_test create and drop it's regress database
unless otherwise specified using --nocreate and --nodrop switches.


git-svn-id: http://svn.osgeo.org/postgis/trunk@2300 b70326c6-7e19-0410-871a-916f4a2858ee
2006-02-01 22:15:32 +00:00
Sandro Santilli b0bd31e6f8 Fixed bug in SnapToGrid() bbox computation.
Previous policy (WHEN SIMPLE) turned out to be non-simple,
so this has been changed to TAINING.
Bbox will then be recomputed by scanning output coordinates
iff input had a bbox cache.
AUTOCACHE_BBOX define (the default) will still force a
computation of output box if worth it.
Regress tests added for the case reported on postgis-users

Run of regress tests do not require postgis install
anymore. The library build in source tree will be
used for this purpose.

Version bumped to 1.1.2 and CHANGES file updated.


git-svn-id: http://svn.osgeo.org/postgis/trunk@2298 b70326c6-7e19-0410-871a-916f4a2858ee
2006-01-29 13:54:38 +00:00
Sandro Santilli eafb517fd7 Separated 'export' from assignment, for Solaris support - reported by Michael Fuhr
git-svn-id: http://svn.osgeo.org/postgis/trunk@2294 b70326c6-7e19-0410-871a-916f4a2858ee
2006-01-21 08:40:41 +00:00
Sandro Santilli 804f7947e7 Added a couple of line_interpolate_point tests
git-svn-id: http://svn.osgeo.org/postgis/trunk@2292 b70326c6-7e19-0410-871a-916f4a2858ee
2006-01-19 19:13:46 +00:00
Sandro Santilli cff08737ef Made line_substring() handle corner case of start/end having the same
value. A point is returned in that case.


git-svn-id: http://svn.osgeo.org/postgis/trunk@2290 b70326c6-7e19-0410-871a-916f4a2858ee
2006-01-19 18:26:32 +00:00
Sandro Santilli 615748762b Added more regress tests for line_substring
git-svn-id: http://svn.osgeo.org/postgis/trunk@2289 b70326c6-7e19-0410-871a-916f4a2858ee
2006-01-19 18:17:26 +00:00
Sandro Santilli 3fdcc7037b Added -v switch to show differences inline
git-svn-id: http://svn.osgeo.org/postgis/trunk@2286 b70326c6-7e19-0410-871a-916f4a2858ee
2006-01-19 18:15:45 +00:00
Sandro Santilli 81943a774a Forced lc_messages to be 'C' during regress tests
git-svn-id: http://svn.osgeo.org/postgis/trunk@2285 b70326c6-7e19-0410-871a-916f4a2858ee
2006-01-18 21:06:07 +00:00
Sandro Santilli 396e28401d Fixed out-of-bound condition in ptarray_substring during copy of
unaltered points.
Added regress test for the case (postgis-devel/2006-January/001951.html)


git-svn-id: http://svn.osgeo.org/postgis/trunk@2284 b70326c6-7e19-0410-871a-916f4a2858ee
2006-01-18 10:19:11 +00:00