Commit graph

453 commits

Author SHA1 Message Date
Sandro Santilli 258f0ee04f Do not report "face without edges" error for universal face (#1612)
git-svn-id: http://svn.osgeo.org/postgis/trunk@9285 b70326c6-7e19-0410-871a-916f4a2858ee
2012-02-24 15:23:35 +00:00
Sandro Santilli 69fcd2336f Have ST_GetFaceGeometry check face existance, regress-test
git-svn-id: http://svn.osgeo.org/postgis/trunk@9276 b70326c6-7e19-0410-871a-916f4a2858ee
2012-02-23 12:54:48 +00:00
Sandro Santilli 6c472db2c9 Update face MBR on edge change (#1587)
git-svn-id: http://svn.osgeo.org/postgis/trunk@9235 b70326c6-7e19-0410-871a-916f4a2858ee
2012-02-20 10:52:31 +00:00
Sandro Santilli 2ab2a79839 Check edge disposition around endnodes (#1571)
Includes a couple new testcases, for closed and non-closed edges
changing disposition around their end nodes.

git-svn-id: http://svn.osgeo.org/postgis/trunk@9228 b70326c6-7e19-0410-871a-916f4a2858ee
2012-02-17 18:29:50 +00:00
Sandro Santilli ba555d1caf Rework edge motion range construction (#1571)
Includes a new testcase which was failing before this change

git-svn-id: http://svn.osgeo.org/postgis/trunk@9226 b70326c6-7e19-0410-871a-916f4a2858ee
2012-02-17 15:11:36 +00:00
Sandro Santilli d1c6ef4633 Add another test for ST_ChangeEdgeGeom
git-svn-id: http://svn.osgeo.org/postgis/trunk@9225 b70326c6-7e19-0410-871a-916f4a2858ee
2012-02-17 14:03:28 +00:00
Sandro Santilli e13e1fc349 Handle some (not all) cases of non-isomorphic edge changes (#1571)
The problem is much harder than it looks ...

git-svn-id: http://svn.osgeo.org/postgis/trunk@9224 b70326c6-7e19-0410-871a-916f4a2858ee
2012-02-17 13:46:33 +00:00
Sandro Santilli 982d30e9cd Add test numbers to ST_ChangeEdgeGeom regression cases
git-svn-id: http://svn.osgeo.org/postgis/trunk@9223 b70326c6-7e19-0410-871a-916f4a2858ee
2012-02-17 08:39:55 +00:00
Sandro Santilli 09ab3b3f1c Update comment, hopefully clearer now
git-svn-id: http://svn.osgeo.org/postgis/trunk@9221 b70326c6-7e19-0410-871a-916f4a2858ee
2012-02-16 17:45:53 +00:00
Sandro Santilli e6571a3a23 Add a topology.GetNodeEdges function
This function is a fundamental topological primitive to do things
like SQL-based poligonization.

git-svn-id: http://svn.osgeo.org/postgis/trunk@9219 b70326c6-7e19-0410-871a-916f4a2858ee
2012-02-16 10:25:50 +00:00
Sandro Santilli e9817355e9 Accept more feature type names from AddTopoGeometryColumn (#1470)
With this commit you can pass return of ST_GeometryType or
return GeometryType as input to the function.

git-svn-id: http://svn.osgeo.org/postgis/trunk@9172 b70326c6-7e19-0410-871a-916f4a2858ee
2012-02-13 16:29:30 +00:00
Sandro Santilli 2192c713e7 More VOLATILE -> STRICT (#955). Let's call it completed.
git-svn-id: http://svn.osgeo.org/postgis/trunk@9171 b70326c6-7e19-0410-871a-916f4a2858ee
2012-02-13 16:11:48 +00:00
Sandro Santilli 5fa68cfc62 Some VOLATILE functions turned to STABLE (#955)
A noticeable exception is the Geometry(TopoGeometry) cast which
triggers a regression when made STABLE.

git-svn-id: http://svn.osgeo.org/postgis/trunk@9170 b70326c6-7e19-0410-871a-916f4a2858ee
2012-02-13 16:04:30 +00:00
Sandro Santilli 9c1782c75c Drop (SRF()).* constructs (#956)
git-svn-id: http://svn.osgeo.org/postgis/trunk@9165 b70326c6-7e19-0410-871a-916f4a2858ee
2012-02-13 11:25:41 +00:00
Sandro Santilli 9dde5f7da2 Allow changing a closed edge (but w/out fixing linking, see #892)
git-svn-id: http://svn.osgeo.org/postgis/trunk@9063 b70326c6-7e19-0410-871a-916f4a2858ee
2012-02-07 10:14:37 +00:00
Paul Ramsey 3febad8085 Have ST_Union aggregate use UnaryUnion from GEOS-3.0.0 (#922)
git-svn-id: http://svn.osgeo.org/postgis/trunk@9056 b70326c6-7e19-0410-871a-916f4a2858ee
2012-02-06 23:25:00 +00:00
Sandro Santilli f51083ff58 Tabs to spaces (2)
git-svn-id: http://svn.osgeo.org/postgis/trunk@9039 b70326c6-7e19-0410-871a-916f4a2858ee
2012-02-06 13:43:21 +00:00
Sandro Santilli 1afa31d791 Don't let ValidateTopology choke on invalid edges (#1544)
git-svn-id: http://svn.osgeo.org/postgis/trunk@9038 b70326c6-7e19-0410-871a-916f4a2858ee
2012-02-06 13:16:02 +00:00
Paul Ramsey a0c941e2d9 Allow 'make check' to run all the way through on OSX (the sed implementation must be slightly different, so let's see if Perl is any more standard). Hopefully other platforms will be happy.
git-svn-id: http://svn.osgeo.org/postgis/trunk@9037 b70326c6-7e19-0410-871a-916f4a2858ee
2012-02-06 03:20:48 +00:00
Sandro Santilli 8a2cfd063b Fix _ST_AddFaceSplit code against PostgreSQL 9.1
git-svn-id: http://svn.osgeo.org/postgis/trunk@8961 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-28 23:11:08 +00:00
Sandro Santilli bde32ab801 Don't put constant geometries in CTE, which confuses estimator
git-svn-id: http://svn.osgeo.org/postgis/trunk@8960 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-28 22:08:49 +00:00
Sandro Santilli 3e08ad3a3a Simplify code in _ST_AddFaceSplit, reduce edges table scans.
Also set debugging off by default

git-svn-id: http://svn.osgeo.org/postgis/trunk@8959 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-28 17:05:34 +00:00
Sandro Santilli 5759c6e6b4 Switch ST_AddEdgeNewFaces from ST_Polygonize to _ST_AddSplitFace
See ticket #1508

git-svn-id: http://svn.osgeo.org/postgis/trunk@8958 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-28 16:20:14 +00:00
Sandro Santilli 0192990f7f Stop using ST_Polygonize from ST_AddEdgeModFace.
This commit also estrapolates an internal _ST_AddSplitFace function
for reuse by ST_AddEdgeModFaces

git-svn-id: http://svn.osgeo.org/postgis/trunk@8957 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-28 13:45:45 +00:00
Sandro Santilli 5d2e22331e Rename topogeometry column check to be more readable
git-svn-id: http://svn.osgeo.org/postgis/trunk@8956 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-28 13:18:24 +00:00
Sandro Santilli 5f04deb05e New test for closing multi-edge ring in a face (ST_AddEdge*Face*)
git-svn-id: http://svn.osgeo.org/postgis/trunk@8955 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-28 10:42:50 +00:00
Sandro Santilli 05b7566ab4 Allow multiple topogeometry columns in one table (again)
Dunno why this piece was missing from previous commit, sorry

git-svn-id: http://svn.osgeo.org/postgis/trunk@8954 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-28 07:44:40 +00:00
Sandro Santilli 9893b681cd Allow multiple TopoGeometry column in the same table
git-svn-id: http://svn.osgeo.org/postgis/trunk@8953 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-28 07:37:01 +00:00
Sandro Santilli ff391b9944 Add "face has no rings" validity checking
git-svn-id: http://svn.osgeo.org/postgis/trunk@8947 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-27 20:14:52 +00:00
Sandro Santilli c9e5aa744a More test for face splitting and inside holes
git-svn-id: http://svn.osgeo.org/postgis/trunk@8944 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-27 14:22:32 +00:00
Sandro Santilli 53e18162d4 More test for update of isolated nodes in split-faces.
git-svn-id: http://svn.osgeo.org/postgis/trunk@8943 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-27 11:36:58 +00:00
Sandro Santilli 3334012a59 Rewrite test for ST_AddIsoNode (see #1503)
git-svn-id: http://svn.osgeo.org/postgis/trunk@8942 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-27 11:05:44 +00:00
Sandro Santilli 636925915a Simplify the code looking for face containment in ST_AddIsoNode
Fixes bug #1503 for me, altough I didn't handle to produce a
testcase for it.

git-svn-id: http://svn.osgeo.org/postgis/trunk@8941 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-27 11:05:35 +00:00
Sandro Santilli a9feae6325 Add test for update of isolated nodes in split-faces.
Affects both ST_AddEdgeModFace and ST_AddEdgeNewFaces (both work)

git-svn-id: http://svn.osgeo.org/postgis/trunk@8940 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-27 08:18:23 +00:00
Sandro Santilli 44d5075a90 Tweak debug messages not to clutter output
git-svn-id: http://svn.osgeo.org/postgis/trunk@8925 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-26 08:12:44 +00:00
Sandro Santilli dcfd39ba41 Stop WARNING from AddFace about next_left_edge/next_right_edge
git-svn-id: http://svn.osgeo.org/postgis/trunk@8916 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-24 18:04:29 +00:00
Sandro Santilli a7487322ff Optimize ST_AddEdge*Face* detection of face split conditions (#1497)
git-svn-id: http://svn.osgeo.org/postgis/trunk@8915 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-24 17:29:14 +00:00
Sandro Santilli 6b19d9e9c1 Protect DEBUG lines in compile-time conditional
git-svn-id: http://svn.osgeo.org/postgis/trunk@8914 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-24 17:29:07 +00:00
Sandro Santilli 1620199917 Fix linking bugs with ST_NewEdgesSplit function (#1496)
Includes test coverage for this other function.

git-svn-id: http://svn.osgeo.org/postgis/trunk@8912 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-24 14:03:26 +00:00
Sandro Santilli 90bb0776df Fix edge-linking in ST_ModEdgeSplit (#1496)
Includes regression test. ST_NewEdgesSplit still needs testing.

git-svn-id: http://svn.osgeo.org/postgis/trunk@8911 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-24 11:15:56 +00:00
Sandro Santilli 83b215071d Fix ambiguos references (with postgresql 9.x)
git-svn-id: http://svn.osgeo.org/postgis/trunk@8903 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-22 20:10:02 +00:00
Sandro Santilli c2d7b9aa37 AddTopoGeometryColumn: check child layer before incrementing sequence
git-svn-id: http://svn.osgeo.org/postgis/trunk@8902 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-22 19:25:24 +00:00
Sandro Santilli fd4aeeebb1 TopoGeo_addLineString: fix node crossing, reduce edges creations
git-svn-id: http://svn.osgeo.org/postgis/trunk@8900 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-22 15:43:57 +00:00
Sandro Santilli d318176d71 Comment typo
git-svn-id: http://svn.osgeo.org/postgis/trunk@8899 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-22 12:10:02 +00:00
Sandro Santilli 4349de763e Have TopoGeometry::Geometry always return a MULTI* (#1462)
git-svn-id: http://svn.osgeo.org/postgis/trunk@8893 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-20 14:47:36 +00:00
Sandro Santilli d3c21af45c In 9.1, it is datamoduledir driving module install dir, not MODULEDIR
git-svn-id: http://svn.osgeo.org/postgis/trunk@8878 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-19 17:39:01 +00:00
Sandro Santilli 3a61ab1f87 Run the testsuite again after upgrading (#1326)
git-svn-id: http://svn.osgeo.org/postgis/trunk@8855 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-17 17:52:57 +00:00
Sandro Santilli 419470fc86 Enhance staged install to include raster, topology and all scripts
Add an --upgrade switch to regress/run_test in preparation of
regress testing upgrade scripts (#1326)

git-svn-id: http://svn.osgeo.org/postgis/trunk@8853 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-17 17:13:32 +00:00
Sandro Santilli f5bd1c82a6 Detect PERL locally
git-svn-id: http://svn.osgeo.org/postgis/trunk@8840 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-16 13:56:11 +00:00
Sandro Santilli 237ca95517 Use a CTE for queries involving largs WKB input.
Reduces parsing and execution time.

git-svn-id: http://svn.osgeo.org/postgis/trunk@8825 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-16 08:25:08 +00:00
Sandro Santilli 74a1d2bf64 Comment out expensive DEBUG lines
git-svn-id: http://svn.osgeo.org/postgis/trunk@8824 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-16 08:25:00 +00:00
Sandro Santilli 8b3c81adcd Downgrade notice of face splitting to debug level
git-svn-id: http://svn.osgeo.org/postgis/trunk@8823 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-16 08:24:53 +00:00
Sandro Santilli d6845686e0 Wrap DEBUG output in ifdef POSTGIS_TOPOLOGY_DEBUG (#1469)
git-svn-id: http://svn.osgeo.org/postgis/trunk@8822 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-15 20:52:08 +00:00
Sandro Santilli 75e35d741f Make AddTopoGeometryColumn less sequence-number-eager, regress-test
git-svn-id: http://svn.osgeo.org/postgis/trunk@8821 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-15 17:50:46 +00:00
Sandro Santilli f6fbc6612a Add regress test for topology.AddFace robustness (see #1383)
git-svn-id: http://svn.osgeo.org/postgis/trunk@8791 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-12 17:41:17 +00:00
Regina Obe a945d722fc #1430: create topology_drop_before and topology_drop_after to allow changing names of input args and allow changing functions to use default args
git-svn-id: http://svn.osgeo.org/postgis/trunk@8676 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-05 07:59:16 +00:00
Sandro Santilli 47b2bdce12 Work around a PostgreSQL 8.4+ bug with CREATE INTO (#1431)
git-svn-id: http://svn.osgeo.org/postgis/trunk@8673 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-04 21:38:03 +00:00
Sandro Santilli 35b545b3ab Complete implementation and regress test for toTopoGeom (#1017)
You can start playing with this. Lacks documentation.
Expect troubles. Feel free to report them.

git-svn-id: http://svn.osgeo.org/postgis/trunk@8671 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-04 18:33:06 +00:00
Sandro Santilli ed61e222b8 Implement TopoGeometry->Geometry converter for COLLECTION types
git-svn-id: http://svn.osgeo.org/postgis/trunk@8670 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-04 18:17:49 +00:00
Sandro Santilli 5f605e40b6 Implement and regress-test TopoGeo_addPolygon
git-svn-id: http://svn.osgeo.org/postgis/trunk@8663 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-03 23:17:42 +00:00
Sandro Santilli 2aa3211b03 Change parameter names to use the "athing" convention. See #1427
git-svn-id: http://svn.osgeo.org/postgis/trunk@8660 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-03 20:55:19 +00:00
Sandro Santilli fd82b1ce75 Fix typo in exception message, change signature of TopoGeo_addPolygon
git-svn-id: http://svn.osgeo.org/postgis/trunk@8659 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-03 20:48:51 +00:00
Sandro Santilli e6dbd1ea0e Test invalid calls to topogeo_addpoint
git-svn-id: http://svn.osgeo.org/postgis/trunk@8657 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-03 20:24:29 +00:00
Sandro Santilli 741da6eab7 Implement and regress-test TopoGeo_AddLineString
git-svn-id: http://svn.osgeo.org/postgis/trunk@8654 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-03 18:41:55 +00:00
Sandro Santilli 9f05015fa6 Add regression test for TopoGeo_AddPoint
git-svn-id: http://svn.osgeo.org/postgis/trunk@8651 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-03 10:39:38 +00:00
Sandro Santilli e7a29fe26a Move TopoGeom_addXXX functions to populate.sql and refine signatures
Implement TopoGeom_addPoint (misses regression testing yet)

git-svn-id: http://svn.osgeo.org/postgis/trunk@8650 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-03 10:10:15 +00:00
Sandro Santilli 07dc8f9946 Don't consider the old self edge when checking integrity
Fixes a bug introduced by previous commit.

git-svn-id: http://svn.osgeo.org/postgis/trunk@8649 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-03 09:49:54 +00:00
Sandro Santilli 5b2a29f1f2 Don't consider shared nodes as edge intersections. Fixes #1428.
git-svn-id: http://svn.osgeo.org/postgis/trunk@8648 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-03 09:44:10 +00:00
Sandro Santilli 1f0cf9a48d topology.AddNode: add 2 additional optional arguments to allow splitting edges and computing containing_face
git-svn-id: http://svn.osgeo.org/postgis/trunk@8627 b70326c6-7e19-0410-871a-916f4a2858ee
2011-12-31 09:47:26 +00:00
Sandro Santilli 531e202f58 Add parameter names
git-svn-id: http://svn.osgeo.org/postgis/trunk@8626 b70326c6-7e19-0410-871a-916f4a2858ee
2011-12-31 09:47:14 +00:00
Sandro Santilli 8e4bb07c48 Use DEBUG level for printing SQL being executed...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8625 b70326c6-7e19-0410-871a-916f4a2858ee
2011-12-31 09:47:06 +00:00
Sandro Santilli 59eb1b009d Retain type of TopoGeometry objects defined by NO element (#1017)
Includes regression tests for conversion of typed empty objects
from simple to topological model.

git-svn-id: http://svn.osgeo.org/postgis/trunk@8614 b70326c6-7e19-0410-871a-916f4a2858ee
2011-12-29 18:13:07 +00:00
Sandro Santilli 8a3c2bf0ee Consider TopoElements of type 0 as empty, allow CreateTopoGeom calls w/out a TopoElementArray to construct empties (#1017)
git-svn-id: http://svn.osgeo.org/postgis/trunk@8613 b70326c6-7e19-0410-871a-916f4a2858ee
2011-12-29 18:01:08 +00:00
Sandro Santilli 9cc14498a0 Test more TopoGeometry creation
git-svn-id: http://svn.osgeo.org/postgis/trunk@8612 b70326c6-7e19-0410-871a-916f4a2858ee
2011-12-29 11:18:08 +00:00
Sandro Santilli 79ce7227cf CreateTopoGeom: tweak error message on out-of-range TopoGeometry type
git-svn-id: http://svn.osgeo.org/postgis/trunk@8611 b70326c6-7e19-0410-871a-916f4a2858ee
2011-12-29 10:52:17 +00:00
Sandro Santilli 53b45f04c2 Complete parameter names
git-svn-id: http://svn.osgeo.org/postgis/trunk@8610 b70326c6-7e19-0410-871a-916f4a2858ee
2011-12-29 10:44:08 +00:00
Sandro Santilli b4c62aaf0e Typos and argument names
git-svn-id: http://svn.osgeo.org/postgis/trunk@8609 b70326c6-7e19-0410-871a-916f4a2858ee
2011-12-29 07:40:05 +00:00
Sandro Santilli 581c4ed392 Tabs to spaces, a few TODO items...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8607 b70326c6-7e19-0410-871a-916f4a2858ee
2011-12-29 07:04:39 +00:00
Sandro Santilli 122ed50bc4 Put overridden (for topology) spatial predicates in their own file
git-svn-id: http://svn.osgeo.org/postgis/trunk@8606 b70326c6-7e19-0410-871a-916f4a2858ee
2011-12-29 07:04:29 +00:00
Sandro Santilli 4a8fdcb47c topology.toTopoGeom: add type compatibility checks (#1017)
git-svn-id: http://svn.osgeo.org/postgis/trunk@8605 b70326c6-7e19-0410-871a-916f4a2858ee
2011-12-29 06:48:18 +00:00
Sandro Santilli cd6909bc09 Stub toTopoGeom function and testcase (#1017)
git-svn-id: http://svn.osgeo.org/postgis/trunk@8576 b70326c6-7e19-0410-871a-916f4a2858ee
2011-12-25 10:56:12 +00:00
Sandro Santilli 990cf6a4bb Add missing dependencies of topology.sql (includes)
git-svn-id: http://svn.osgeo.org/postgis/trunk@8575 b70326c6-7e19-0410-871a-916f4a2858ee
2011-12-25 10:56:02 +00:00
Sandro Santilli 95f1d8c181 Drop created tables after run
git-svn-id: http://svn.osgeo.org/postgis/trunk@8564 b70326c6-7e19-0410-871a-916f4a2858ee
2011-12-24 11:22:08 +00:00
Sandro Santilli 99edfffbb8 Cleanup created tables after run
git-svn-id: http://svn.osgeo.org/postgis/trunk@8563 b70326c6-7e19-0410-871a-916f4a2858ee
2011-12-24 11:22:02 +00:00
Sandro Santilli b10fcc9513 drop created table after run
git-svn-id: http://svn.osgeo.org/postgis/trunk@8562 b70326c6-7e19-0410-871a-916f4a2858ee
2011-12-24 11:21:56 +00:00
Sandro Santilli 7761d221f0 run_test doesn't need USE_VERSION anymore
git-svn-id: http://svn.osgeo.org/postgis/trunk@8557 b70326c6-7e19-0410-871a-916f4a2858ee
2011-12-24 10:42:48 +00:00
Sandro Santilli 0e25f7b4e6 Generate uninstall_topology.sql
git-svn-id: http://svn.osgeo.org/postgis/trunk@8556 b70326c6-7e19-0410-871a-916f4a2858ee
2011-12-24 10:42:40 +00:00
Sandro Santilli f4a53f17dc Drop topology specific versioning
git-svn-id: http://svn.osgeo.org/postgis/trunk@8406 b70326c6-7e19-0410-871a-916f4a2858ee
2011-12-14 13:31:07 +00:00
Sandro Santilli 8c780265a5 topology.AddToSearchPath: quote database identifier.
Thanks to Jose Carlos Martinez Llario <jomarlla@cgf.upv.es>

git-svn-id: http://svn.osgeo.org/postgis/trunk@8315 b70326c6-7e19-0410-871a-916f4a2858ee
2011-12-08 08:07:58 +00:00
Regina Obe efbea175da #1346: fix misuse of quote_literal causing topology, topology, topology, topology
git-svn-id: http://svn.osgeo.org/postgis/trunk@8299 b70326c6-7e19-0410-871a-916f4a2858ee
2011-12-02 17:44:26 +00:00
Sandro Santilli 57248139f7 Encode dependency of topology.sql on ManageHelper.sql
git-svn-id: http://svn.osgeo.org/postgis/trunk@8298 b70326c6-7e19-0410-871a-916f4a2858ee
2011-12-02 17:28:16 +00:00
Sandro Santilli a71b7fa8bd Move the 'CREATE SCHEMA' query out of first column anchorage (#1325)
Makes the upgrade script generator less confused...

git-svn-id: http://svn.osgeo.org/postgis/trunk@8239 b70326c6-7e19-0410-871a-916f4a2858ee
2011-11-24 21:13:22 +00:00
Sandro Santilli 543e61df5d Override GeometryType and ST_GeometryType for TopoGeometry (#1289)
Includes regression testing.
NOTE: we'll always advertise MULTI as a safest bet

git-svn-id: http://svn.osgeo.org/postgis/trunk@8237 b70326c6-7e19-0410-871a-916f4a2858ee
2011-11-24 16:01:29 +00:00
Sandro Santilli 01ad3d3b53 Shake legacy testcase a bit to avoid to mix population with queries
git-svn-id: http://svn.osgeo.org/postgis/trunk@8236 b70326c6-7e19-0410-871a-916f4a2858ee
2011-11-24 16:01:14 +00:00
Sandro Santilli 4cbae93e9e Add testcase for ticket #1302 (now passes)
git-svn-id: http://svn.osgeo.org/postgis/trunk@8202 b70326c6-7e19-0410-871a-916f4a2858ee
2011-11-21 09:33:51 +00:00
Sandro Santilli f622223663 Update expected error messages not to include the "topology" namespace (now that it's part of the search_path).
git-svn-id: http://svn.osgeo.org/postgis/trunk@8201 b70326c6-7e19-0410-871a-916f4a2858ee
2011-11-21 08:33:43 +00:00
Regina Obe 243df1584e Logic to add topology to database search path on install or upgrade
git-svn-id: http://svn.osgeo.org/postgis/trunk@8197 b70326c6-7e19-0410-871a-916f4a2858ee
2011-11-21 07:48:23 +00:00
Regina Obe 2412000666 logic to create a an topology_upgrade_20_minor.sql
git-svn-id: http://svn.osgeo.org/postgis/trunk@8157 b70326c6-7e19-0410-871a-916f4a2858ee
2011-11-16 03:41:37 +00:00
Sandro Santilli 8cacf6231f Do not consider nodes with the same bounding box as being equal.
Fixes bug #1284. Includes regression test.

git-svn-id: http://svn.osgeo.org/postgis/trunk@8148 b70326c6-7e19-0410-871a-916f4a2858ee
2011-11-12 18:20:56 +00:00
Sandro Santilli 9fa0a260b0 ST_CreateTopoGeo: speedup merged lines splitting [RT-SIGTA]
git-svn-id: http://svn.osgeo.org/postgis/trunk@8069 b70326c6-7e19-0410-871a-916f4a2858ee
2011-10-31 22:26:22 +00:00
Sandro Santilli fed45e298e ST_CreateTopoGeo: do not drop input nodes of degree 2 (#1258) [RT-SIGTA]
git-svn-id: http://svn.osgeo.org/postgis/trunk@8062 b70326c6-7e19-0410-871a-916f4a2858ee
2011-10-31 13:03:42 +00:00
Sandro Santilli 4655b811d2 Fix generation of topology in presence of edges with same bounding box (#1261).
Includes regress test [RT-SIGTA]

git-svn-id: http://svn.osgeo.org/postgis/trunk@8061 b70326c6-7e19-0410-871a-916f4a2858ee
2011-10-31 12:45:46 +00:00
Sandro Santilli 5a33485a8a AddEdgeModFace, AddEdgeNewFaces: simplify calls to AddEdge [RT-SIGTA]
git-svn-id: http://svn.osgeo.org/postgis/trunk@8054 b70326c6-7e19-0410-871a-916f4a2858ee
2011-10-30 21:47:45 +00:00
Regina Obe dd81a578ca move function args to single line so CREATe EXTENSION topology FROM unpackaged script builds corectly
git-svn-id: http://svn.osgeo.org/postgis/trunk@7992 b70326c6-7e19-0410-871a-916f4a2858ee
2011-10-20 00:49:38 +00:00
Sandro Santilli 277be294bc Clamp SRID in AddGeometryColumn, update expected topology test results to expect -1 being transformed to 0 (current official UNKNOWN SRID value).
git-svn-id: http://svn.osgeo.org/postgis/trunk@7966 b70326c6-7e19-0410-871a-916f4a2858ee
2011-10-10 20:26:22 +00:00
Sandro Santilli 840765e5c9 Simple review of the topology README. Wasn't that outdated :)
git-svn-id: http://svn.osgeo.org/postgis/trunk@7939 b70326c6-7e19-0410-871a-916f4a2858ee
2011-10-04 16:45:33 +00:00
Sandro Santilli 1032a74af8 Tweak expected test output to expect unknown srid to be reported as 0
If this will change before release, git-revert is our friend

git-svn-id: http://svn.osgeo.org/postgis/trunk@7937 b70326c6-7e19-0410-871a-916f4a2858ee
2011-10-04 14:33:31 +00:00
Sandro Santilli 1a9e140b67 Make topology.CreateTopology unknown-srid-agnostic (uses ST_Srid to tell)
Hopefully this makes the topology code stable during the SRID fights :)

git-svn-id: http://svn.osgeo.org/postgis/trunk@7936 b70326c6-7e19-0410-871a-916f4a2858ee
2011-10-04 14:33:23 +00:00
Sandro Santilli f8ce0dcdf9 Drop more non-ascii dashes, update regress tests (#1226) [RT-SIGTA]
There's a still-failing regress test due to SRID 0 being considered != 1

git-svn-id: http://svn.osgeo.org/postgis/trunk@7934 b70326c6-7e19-0410-871a-916f4a2858ee
2011-10-03 10:32:47 +00:00
Sandro Santilli 4a635b187b Use ASCII dash, not UTF8 one. Fixes #1226. [RT-SIGTA]
git-svn-id: http://svn.osgeo.org/postgis/trunk@7933 b70326c6-7e19-0410-871a-916f4a2858ee
2011-10-03 10:26:10 +00:00
Sandro Santilli b4036c824b Don't use the same name for input parameter and returned table description.
Hopefully fixes ticket #1210 [RT-SIGTA]

git-svn-id: http://svn.osgeo.org/postgis/trunk@7893 b70326c6-7e19-0410-871a-916f4a2858ee
2011-09-26 14:25:11 +00:00
Sandro Santilli 394249ebd0 Update topology functions status. We've completed the SQL/MM set !
git-svn-id: http://svn.osgeo.org/postgis/trunk@7886 b70326c6-7e19-0410-871a-916f4a2858ee
2011-09-23 19:21:14 +00:00
Sandro Santilli f631305f2f Implement topology.ST_CreateTopoGeo (#1190) [RT-SIGTA]
Includes regress testing and documentation update

git-svn-id: http://svn.osgeo.org/postgis/trunk@7885 b70326c6-7e19-0410-871a-916f4a2858ee
2011-09-23 19:21:08 +00:00
Sandro Santilli 5399e4865d Make face creation order predictable in ST_AddEdgeNewFaces (#1205)
Always create the face on the right first [RT-SIGTA]

git-svn-id: http://svn.osgeo.org/postgis/trunk@7883 b70326c6-7e19-0410-871a-916f4a2858ee
2011-09-22 14:06:12 +00:00
Sandro Santilli 58ad643b69 Add notes and TODO items about the edge-adding functions [RT-SIGTA]
See ticket #1205

git-svn-id: http://svn.osgeo.org/postgis/trunk@7882 b70326c6-7e19-0410-871a-916f4a2858ee
2011-09-22 09:14:43 +00:00
Sandro Santilli bfcbd7726f Reduce noice produced by ST_AddEdgeModFace at NOTICE level [RT-SIGTA]
git-svn-id: http://svn.osgeo.org/postgis/trunk@7881 b70326c6-7e19-0410-871a-916f4a2858ee
2011-09-22 07:22:17 +00:00
Sandro Santilli d5ac843103 Make RemEdgeModFace symmetric to AddEdgeModFace about face retention
Save the face on the right, so that running:
ST_RemEdgeModFace(name, ST_AddEdgeModFace(name, ...))
... will not modify the topology.
[RT-SIGTA]

git-svn-id: http://svn.osgeo.org/postgis/trunk@7878 b70326c6-7e19-0410-871a-916f4a2858ee
2011-09-21 07:32:32 +00:00
Regina Obe a8f65ae89b move args to same line as func so extensions unpackaged adds them correctly will ahve to come up with a better way of doing this.
git-svn-id: http://svn.osgeo.org/postgis/trunk@7877 b70326c6-7e19-0410-871a-916f4a2858ee
2011-09-21 03:29:39 +00:00
Regina Obe bb995ad62d get rid of linebreaks in function arg list so unpackaged builder works, fix logical error in sed expression
git-svn-id: http://svn.osgeo.org/postgis/trunk@7873 b70326c6-7e19-0410-871a-916f4a2858ee
2011-09-20 16:47:08 +00:00
Sandro Santilli 68ced72696 Implement ST_RemEdgeModFace (#1189) [RT-SIGTA]
Include regress testing and documentation.

git-svn-id: http://svn.osgeo.org/postgis/trunk@7871 b70326c6-7e19-0410-871a-916f4a2858ee
2011-09-20 15:21:14 +00:00
Sandro Santilli fba3540a78 Have ST_RemEdgeNewFace return NULL when no face is created [RT-SIGTA]
This is to match the ISO spec more closely. Docs and regress test updated.

git-svn-id: http://svn.osgeo.org/postgis/trunk@7869 b70326c6-7e19-0410-871a-916f4a2858ee
2011-09-19 16:53:32 +00:00
Sandro Santilli 9b406181ef TopologySummary: do not count the universe face in the face count
git-svn-id: http://svn.osgeo.org/postgis/trunk@7867 b70326c6-7e19-0410-871a-916f4a2858ee
2011-09-19 06:40:38 +00:00
Sandro Santilli 9d9772b79d ST_InitTopoGeo: use named argument, drop trailing space from return text
git-svn-id: http://svn.osgeo.org/postgis/trunk@7866 b70326c6-7e19-0410-871a-916f4a2858ee
2011-09-19 06:40:31 +00:00
Sandro Santilli 4f0bd227bf Typo in testcase label
git-svn-id: http://svn.osgeo.org/postgis/trunk@7861 b70326c6-7e19-0410-871a-916f4a2858ee
2011-09-17 07:58:30 +00:00
Sandro Santilli 1696387b15 Typo
git-svn-id: http://svn.osgeo.org/postgis/trunk@7860 b70326c6-7e19-0410-871a-916f4a2858ee
2011-09-17 07:10:09 +00:00
Sandro Santilli 1fb3ad4e7e Minor inline documentation updates
git-svn-id: http://svn.osgeo.org/postgis/trunk@7859 b70326c6-7e19-0410-871a-916f4a2858ee
2011-09-17 06:58:16 +00:00
Sandro Santilli 3cf12fc2d2 Implement ST_RemEdgeNewFace (#1188) [RT-SIGTA]
Includes regress testing and documentation.

git-svn-id: http://svn.osgeo.org/postgis/trunk@7858 b70326c6-7e19-0410-871a-916f4a2858ee
2011-09-17 06:46:04 +00:00
Regina Obe dc8ea50314 postgis_topology extension now installing right. Had to get rid of ALTER TABLE .. hasz and merge it into the CREATE TABLE since that was the culprit causing extension install error
git-svn-id: http://svn.osgeo.org/postgis/trunk@7853 b70326c6-7e19-0410-871a-916f4a2858ee
2011-09-15 18:33:55 +00:00
Regina Obe e2af15b011 #1181 TopologySummary is broken causing ambiquous reference. Changed to have local variable be called var_topology_id so doesn't conflict with table column topology_id
git-svn-id: http://svn.osgeo.org/postgis/trunk@7823 b70326c6-7e19-0410-871a-916f4a2858ee
2011-09-08 14:23:11 +00:00
Sandro Santilli a0052e46e8 Be terse, we don't care about context. Closes ticket #1142.
git-svn-id: http://svn.osgeo.org/postgis/trunk@7666 b70326c6-7e19-0410-871a-916f4a2858ee
2011-07-23 21:42:54 +00:00
Sandro Santilli 465d84de64 Stricter ISO output from ST_GetEdgeFaces: start enumerating ring edges from the edge with smaller id [RT-SIGTA]
git-svn-id: http://svn.osgeo.org/postgis/trunk@7628 b70326c6-7e19-0410-871a-916f4a2858ee
2011-07-11 12:17:33 +00:00
Sandro Santilli 487fed6061 Update expected error messages since typmod introduction. Closes ticket #1101.
git-svn-id: http://svn.osgeo.org/postgis/trunk@7569 b70326c6-7e19-0410-871a-916f4a2858ee
2011-07-04 09:07:07 +00:00
Sandro Santilli 887f180f15 Do not manually delete rows from geometry_columns (which is now a view). Closes ticket #1099.
git-svn-id: http://svn.osgeo.org/postgis/trunk@7568 b70326c6-7e19-0410-871a-916f4a2858ee
2011-07-04 09:00:48 +00:00
Sandro Santilli 763bb3b145 Simplify layertrigger tests dropping unneeded operations. The reduction was verified to still trigger bug #950 prior to the fix for it.
git-svn-id: http://svn.osgeo.org/postgis/trunk@7515 b70326c6-7e19-0410-871a-916f4a2858ee
2011-06-28 19:36:46 +00:00
Sandro Santilli 85e12d5f2c Apply patch by Andrea Peri to fix topology layer trigger. Includes regress test. Closes ticket #950.
git-svn-id: http://svn.osgeo.org/postgis/trunk@7514 b70326c6-7e19-0410-871a-916f4a2858ee
2011-06-28 19:36:39 +00:00
Sandro Santilli 545caebf45 Add missing SQL/MM functions in the status section (TODO)
git-svn-id: http://svn.osgeo.org/postgis/trunk@7431 b70326c6-7e19-0410-871a-916f4a2858ee
2011-06-20 11:37:40 +00:00
Sandro Santilli 35e0b52a85 Do not explicitly name GIST opclass (was renamed). Fixes topology after the GSERIALIZED switch.
git-svn-id: http://svn.osgeo.org/postgis/trunk@7393 b70326c6-7e19-0410-871a-916f4a2858ee
2011-06-14 08:20:43 +00:00
Sandro Santilli 5192467dcb ST_AddEdgeModFace is complete...
git-svn-id: http://svn.osgeo.org/postgis/trunk@7275 b70326c6-7e19-0410-871a-916f4a2858ee
2011-05-27 14:01:24 +00:00
Sandro Santilli 3ead9a536d Implement topology.ST_AddEdgeModFace. Includes regress test. [RT-SIGTA]
git-svn-id: http://svn.osgeo.org/postgis/trunk@7273 b70326c6-7e19-0410-871a-916f4a2858ee
2011-05-27 14:01:14 +00:00
Sandro Santilli 9568ec8e5d Simplify face registration by the end of ST_AddEdgeNewFaces [RT-SIGTA]
git-svn-id: http://svn.osgeo.org/postgis/trunk@7271 b70326c6-7e19-0410-871a-916f4a2858ee
2011-05-27 10:18:38 +00:00
Sandro Santilli 7e5e8423d8 ST_AddEdgeNewFaces: another test splitting a face with holes on both sides [RT-SIGTA].
git-svn-id: http://svn.osgeo.org/postgis/trunk@7270 b70326c6-7e19-0410-871a-916f4a2858ee
2011-05-27 09:51:18 +00:00
Sandro Santilli 567986bd5e topology.ST_AddEdgeNewFaces: do not needlessly replace face of holes found in a face splitted by the newly added edge. Regress test it. [RT-SIGTA].
git-svn-id: http://svn.osgeo.org/postgis/trunk@7269 b70326c6-7e19-0410-871a-916f4a2858ee
2011-05-27 09:34:18 +00:00
Sandro Santilli 84dc153361 Add an optional force_new parameter to topology.ST_AddFace to force creation of a new face when one already exists. Regress test and document. [RT-SIGTA]
git-svn-id: http://svn.osgeo.org/postgis/trunk@7268 b70326c6-7e19-0410-871a-916f4a2858ee
2011-05-27 08:34:23 +00:00
Sandro Santilli a10bddb88b fix cpp extra token warning
git-svn-id: http://svn.osgeo.org/postgis/trunk@7267 b70326c6-7e19-0410-871a-916f4a2858ee
2011-05-27 08:34:13 +00:00
Sandro Santilli fe9e336ea9 Error handling refinements in topology.ST_AddEdgeNewFaces (#988)
Check for given edge having two distinct vertices before getting a new
edge id from sequence, and before testing it for crossing nodes (or it'd
give a confusing error message). Refine error message about no-segment
edges to not talk about nodes. [RT-SIGTA]

git-svn-id: http://svn.osgeo.org/postgis/trunk@7253 b70326c6-7e19-0410-871a-916f4a2858ee
2011-05-26 07:26:56 +00:00
Sandro Santilli 7eecd1dbef Allow dumping universal face edges with ST_GetFaceEdges. Do it in the correct order. Fixes bug #984. [RT-SIGTA]
git-svn-id: http://svn.osgeo.org/postgis/trunk@7236 b70326c6-7e19-0410-871a-916f4a2858ee
2011-05-24 14:47:00 +00:00
Sandro Santilli bc6bbb47b7 ST_GetFaceGeometry: throw SQL/MM exception when asked for the Universal Face geometry. Fixes bug #973 [RT-SIGTA]
git-svn-id: http://svn.osgeo.org/postgis/trunk@7234 b70326c6-7e19-0410-871a-916f4a2858ee
2011-05-24 13:49:18 +00:00
Sandro Santilli 2179b7e2aa topology.ValidateTopology: do not construct the geometry of universal face, it's not used anyway. Closes bug #977. [RT-SIGTA]
git-svn-id: http://svn.osgeo.org/postgis/trunk@7233 b70326c6-7e19-0410-871a-916f4a2858ee
2011-05-24 13:47:55 +00:00
Sandro Santilli 8aaa246193 ST_AddEdgeNewFaces: don't get fooled by empty segments when computing azimuts [RT-SIGTA]
git-svn-id: http://svn.osgeo.org/postgis/trunk@7232 b70326c6-7e19-0410-871a-916f4a2858ee
2011-05-24 13:15:01 +00:00
Sandro Santilli 81e3f2c74c Fix a bogus test for ST_AddEdgeNewFaces (was missing to check informations about the newly added edge) -- [RT-SIGTA]
git-svn-id: http://svn.osgeo.org/postgis/trunk@7231 b70326c6-7e19-0410-871a-916f4a2858ee
2011-05-24 12:14:14 +00:00