Commit graph

383 commits

Author SHA1 Message Date
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
Sandro Santilli 681dd7bf6c Add another (successful) test for ST_AddEdgeNewFaces when creating a new face in the universal face by closing a ring around an existing non-isolated edge [RT-SIGTA].
git-svn-id: http://svn.osgeo.org/postgis/trunk@7230 b70326c6-7e19-0410-871a-916f4a2858ee
2011-05-24 10:45:40 +00:00
Sandro Santilli aef3126877 Add TODO item and SQL/MM compatibility note in ST_ChangeEdgeGeom
git-svn-id: http://svn.osgeo.org/postgis/trunk@7229 b70326c6-7e19-0410-871a-916f4a2858ee
2011-05-24 09:22:12 +00:00
Sandro Santilli f4b9367a55 Test ST_ChangeEdgeGeom with edge crossing
git-svn-id: http://svn.osgeo.org/postgis/trunk@7228 b70326c6-7e19-0410-871a-916f4a2858ee
2011-05-24 09:13:39 +00:00
Sandro Santilli 859f148607 ST_ChangeEdgeGeom: check existence of given edge, reduce scans used to check start/end point and simplify the code, regress test the fix. Fixes bug #979.
git-svn-id: http://svn.osgeo.org/postgis/trunk@7227 b70326c6-7e19-0410-871a-916f4a2858ee
2011-05-24 08:45:55 +00:00
Sandro Santilli 5c65e3e064 No functional change: tabs to 2 spaces.
git-svn-id: http://svn.osgeo.org/postgis/trunk@7226 b70326c6-7e19-0410-871a-916f4a2858ee
2011-05-24 08:22:54 +00:00
Sandro Santilli 5230cc400d Move tests for ST_ChangeEdgeGeom into a dedicated file. Prepared for ticket #979. [RT-SIGTA].
git-svn-id: http://svn.osgeo.org/postgis/trunk@7225 b70326c6-7e19-0410-871a-916f4a2858ee
2011-05-24 08:13:46 +00:00
Sandro Santilli 3f79bce079 Test ST_GetFaceGeometry behavior when given face_id 0 (Universal Face). See ticket #973.
git-svn-id: http://svn.osgeo.org/postgis/trunk@7224 b70326c6-7e19-0410-871a-916f4a2858ee
2011-05-24 07:54:45 +00:00
Sandro Santilli 8f010b34df ST_AddIsoEdge: tell that a node is isolated by only looking at containing_face rather than recomputing it. Closes ticket #978. [RT-SIGTA]
git-svn-id: http://svn.osgeo.org/postgis/trunk@7223 b70326c6-7e19-0410-871a-916f4a2858ee
2011-05-24 07:04:43 +00:00
Sandro Santilli 966db07632 Do not let ST_AddIsoNode add non-isolated nodes. Allow specifying 0 as the isolated node face and check it is correct. If containing_face is given as null then compute it. Patch by Andrea Peri. [RT-SIGTA]
git-svn-id: http://svn.osgeo.org/postgis/trunk@7222 b70326c6-7e19-0410-871a-916f4a2858ee
2011-05-24 06:55:29 +00:00
Regina Obe 6161063032 Fix for #981 - using astext legacy function in tests
git-svn-id: http://svn.osgeo.org/postgis/trunk@7221 b70326c6-7e19-0410-871a-916f4a2858ee
2011-05-24 06:44:34 +00:00
Regina Obe 3905413dcb Document ST_ChangeEdgeGeom, revise function to confirm to new plpgsql coding standard. Get rid of redundant && check since its already encapsulated in ST_Intersects and ST_Within
git-svn-id: http://svn.osgeo.org/postgis/trunk@7216 b70326c6-7e19-0410-871a-916f4a2858ee
2011-05-24 03:03:41 +00:00
Sandro Santilli 5be0f4d0e4 update the list of what's implemented and what not
git-svn-id: http://svn.osgeo.org/postgis/trunk@7215 b70326c6-7e19-0410-871a-916f4a2858ee
2011-05-23 13:30:41 +00:00
Sandro Santilli 7b3707ae9f Style-only change: tab to spaces in ST_AddIsoEdge, shorten name of test topology
git-svn-id: http://svn.osgeo.org/postgis/trunk@7214 b70326c6-7e19-0410-871a-916f4a2858ee
2011-05-23 13:30:36 +00:00
Sandro Santilli e87586fdb1 Fix test for ST_AddIsoEdge verifying "geometry intersects an edge" exception. Fix exception message raised when attempting to insert a closed edge. Update regress test accoringly.
git-svn-id: http://svn.osgeo.org/postgis/trunk@7213 b70326c6-7e19-0410-871a-916f4a2858ee
2011-05-23 13:13:21 +00:00
Sandro Santilli c3ba1e62b5 ST_AddIsoEdge: set containing_face of nodes connected by the newly added edge to null as the nodes are not isolated anymore. Regress test it. Closes ticket #976.
git-svn-id: http://svn.osgeo.org/postgis/trunk@7212 b70326c6-7e19-0410-871a-916f4a2858ee
2011-05-23 12:49:51 +00:00
Sandro Santilli f94c1a3de4 Put tests for ST_AddIsoEdge in their own file. Fix use of ! rather than "not" for negating booleans in pl/pgsql.
git-svn-id: http://svn.osgeo.org/postgis/trunk@7211 b70326c6-7e19-0410-871a-916f4a2858ee
2011-05-23 12:33:12 +00:00
Sandro Santilli 5f0b055c01 Update load_topology.sql to properly set MBR field of faces.
git-svn-id: http://svn.osgeo.org/postgis/trunk@7210 b70326c6-7e19-0410-871a-916f4a2858ee
2011-05-23 11:30:44 +00:00
Sandro Santilli 147e0c17b1 And fix expected test output from st_addedgenewfaces (dunno how I could commit such a partial change...)
git-svn-id: http://svn.osgeo.org/postgis/trunk@7209 b70326c6-7e19-0410-871a-916f4a2858ee
2011-05-23 11:28:18 +00:00
Sandro Santilli 34a5213861 Oops, forgot to uncomment temporarely disabled lines
git-svn-id: http://svn.osgeo.org/postgis/trunk@7208 b70326c6-7e19-0410-871a-916f4a2858ee
2011-05-23 11:26:25 +00:00
Sandro Santilli df1f153e48 Test that topology.ST_AddEdgeNewFaces properly updates isolated edges contained in a newly created face [RT-SIGTA]
git-svn-id: http://svn.osgeo.org/postgis/trunk@7207 b70326c6-7e19-0410-871a-916f4a2858ee
2011-05-23 08:44:00 +00:00
Sandro Santilli c212408084 topology.AddEdge: make edge linking self-consistent (each added edge will form a proper loop)
git-svn-id: http://svn.osgeo.org/postgis/trunk@7201 b70326c6-7e19-0410-871a-916f4a2858ee
2011-05-19 20:36:47 +00:00
Sandro Santilli 2c77789f2b topology.ST_AddEdgeNewFaces implementation and regression test [RT-SIGTA]
git-svn-id: http://svn.osgeo.org/postgis/trunk@7194 b70326c6-7e19-0410-871a-916f4a2858ee
2011-05-18 16:08:36 +00:00
Sandro Santilli b7f9b8fa59 topology.AddFace(): properly update left/right face for edges _contained_ in the newly registered face and containing_face for isolated nodes in it, refine documentation about it [RT-SIGTA]
git-svn-id: http://svn.osgeo.org/postgis/trunk@7192 b70326c6-7e19-0410-871a-916f4a2858ee
2011-05-18 13:59:03 +00:00
Sandro Santilli 906fd8cd0a topology.GetRingEdges() implementation and test. This is the first real user of next_left_edge/next_right_edge fields in the edge table. [RT-SIGTA]
git-svn-id: http://svn.osgeo.org/postgis/trunk@7185 b70326c6-7e19-0410-871a-916f4a2858ee
2011-05-18 08:58:34 +00:00
Sandro Santilli 9a9689da02 Add a short paragraph about the semantic of edge's next_left_edge and next_right_edge fields.
git-svn-id: http://svn.osgeo.org/postgis/trunk@7184 b70326c6-7e19-0410-871a-916f4a2858ee
2011-05-18 07:23:06 +00:00
Sandro Santilli 57fdf7b251 Appropriately tag GML functions as STABLE, IMMUTABLE or VOLATILE - see bug #955
git-svn-id: http://svn.osgeo.org/postgis/trunk@7176 b70326c6-7e19-0410-871a-916f4a2858ee
2011-05-17 19:35:20 +00:00
Sandro Santilli 82eb861308 Tag some functions as STABLE or even IMMUTABLE (from volatile) - see bug #955
git-svn-id: http://svn.osgeo.org/postgis/trunk@7169 b70326c6-7e19-0410-871a-916f4a2858ee
2011-05-17 14:42:44 +00:00
Sandro Santilli 672530be60 Fixed bug in sample topology load (face id sequence value) [RT-SIGTA]
git-svn-id: http://svn.osgeo.org/postgis/trunk@7167 b70326c6-7e19-0410-871a-916f4a2858ee
2011-05-17 07:33:55 +00:00
Sandro Santilli cbe81a3405 Fix a bug in the example topology data (related to next_left_edge) -- affected regress testing, also updated [RT-SIGTA]
git-svn-id: http://svn.osgeo.org/postgis/trunk@7146 b70326c6-7e19-0410-871a-916f4a2858ee
2011-05-16 11:01:22 +00:00
Sandro Santilli 6e3318a18c topology.ST_AddEdgeNewFaces : tabs to spaces, named arguments, code cleanups and improved checks, tests for invalid calls [RT-SIGTA]
git-svn-id: http://svn.osgeo.org/postgis/trunk@7134 b70326c6-7e19-0410-871a-916f4a2858ee
2011-05-12 16:14:53 +00:00
Sandro Santilli 0e69383d94 Don't miss to clean load_topology-4326.sql
git-svn-id: http://svn.osgeo.org/postgis/trunk@7133 b70326c6-7e19-0410-871a-916f4a2858ee
2011-05-12 10:23:24 +00:00
Sandro Santilli de679b25e7 Implement, document, and regress-test SQL/MM ST_NewEdgeHeal [RT-SIGTA]
git-svn-id: http://svn.osgeo.org/postgis/trunk@7118 b70326c6-7e19-0410-871a-916f4a2858ee
2011-05-09 15:16:30 +00:00
Sandro Santilli 10f1a2c33d Check for "other connected edges" before TopoGeometry definitions
git-svn-id: http://svn.osgeo.org/postgis/trunk@7116 b70326c6-7e19-0410-871a-916f4a2858ee
2011-05-09 14:17:05 +00:00
Sandro Santilli 80d2b7ce0a ST_ModEdgeHeal: move check for TopoGeometry after check for connected edges. Fixes bug #942 and regress-tests it [RT-SIGTA]
git-svn-id: http://svn.osgeo.org/postgis/trunk@7109 b70326c6-7e19-0410-871a-916f4a2858ee
2011-05-06 21:39:46 +00:00
Sandro Santilli 7b03175753 topology.ST_ModEdgeHeal: Check for edge existance before TopoGeometry definitions. Fixes bug #941 and regress-tests it.
git-svn-id: http://svn.osgeo.org/postgis/trunk@7108 b70326c6-7e19-0410-871a-916f4a2858ee
2011-05-06 21:21:55 +00:00
Sandro Santilli 4b96edeb54 Closer-to-iso exceptions from ST_GetFaceEdges/ST_ModEdgeHeal [RT-SIGTA]
git-svn-id: http://svn.osgeo.org/postgis/trunk@7105 b70326c6-7e19-0410-871a-916f4a2858ee
2011-05-06 06:46:58 +00:00
Sandro Santilli 67bce71647 ST_ModEdgeHeal: update TopoGeom definitions, and test it [RT-SIGTA]
git-svn-id: http://svn.osgeo.org/postgis/trunk@7089 b70326c6-7e19-0410-871a-916f4a2858ee
2011-05-04 18:20:20 +00:00
Sandro Santilli ce9f044415 Test that healing of two edges is forbidden if any topogeom is defined by only one of them [RT-SIGTA]
git-svn-id: http://svn.osgeo.org/postgis/trunk@7088 b70326c6-7e19-0410-871a-916f4a2858ee
2011-05-04 18:20:11 +00:00
Sandro Santilli 5cc632dd81 Forbid healing edges if any feature is defined by only one of the two [RT-SIGTA]
git-svn-id: http://svn.osgeo.org/postgis/trunk@7087 b70326c6-7e19-0410-871a-916f4a2858ee
2011-05-04 18:20:01 +00:00
Sandro Santilli 9ca3b1669e Complete primitive (SQL/MM) portion of ST_ModEdgeHeal, regress test [RT-SIGTA]
git-svn-id: http://svn.osgeo.org/postgis/trunk@7086 b70326c6-7e19-0410-871a-916f4a2858ee
2011-05-04 18:19:51 +00:00
Sandro Santilli 391f7897e7 Stub topology.ST_ModEdgeHeal [RT-SIGTA]
git-svn-id: http://svn.osgeo.org/postgis/trunk@7085 b70326c6-7e19-0410-871a-916f4a2858ee
2011-05-04 18:19:39 +00:00
Sandro Santilli ece190863a Implement ST_GetFaceEdges (sql/mm topology function) [RT-SIGTA]
git-svn-id: http://svn.osgeo.org/postgis/trunk@7081 b70326c6-7e19-0410-871a-916f4a2858ee
2011-05-03 13:32:41 +00:00
Sandro Santilli 3495921405 Move type definition close to the function using it (ST_GetFaceEdges)
git-svn-id: http://svn.osgeo.org/postgis/trunk@7079 b70326c6-7e19-0410-871a-916f4a2858ee
2011-05-03 08:20:00 +00:00
Sandro Santilli cd37bf1577 Regress test for topology.polygonize(<toponame>)
git-svn-id: http://svn.osgeo.org/postgis/trunk@7048 b70326c6-7e19-0410-871a-916f4a2858ee
2011-04-19 16:58:52 +00:00
Sandro Santilli c1091e7e82 Add topology.polygonize(<toponame>) function, see ticket #916
git-svn-id: http://svn.osgeo.org/postgis/trunk@7047 b70326c6-7e19-0410-871a-916f4a2858ee
2011-04-19 16:58:42 +00:00
Sandro Santilli e38fac3d06 Add support for a RUNTESTFLAGS variable so you can do something like: 'make check RUNTESTFLAGS=-v' and get the problems printed w/out having to look at logs.
git-svn-id: http://svn.osgeo.org/postgis/trunk@7015 b70326c6-7e19-0410-871a-916f4a2858ee
2011-04-11 09:54:06 +00:00
Sandro Santilli fe3ac93539 topology.AddFace: prepare ring geometry and check intersection with an interior edge point. Speeds up registration of faces, particularly when composed by many edges. See ticket #880. [RT-SIGTA]
git-svn-id: http://svn.osgeo.org/postgis/trunk@7002 b70326c6-7e19-0410-871a-916f4a2858ee
2011-04-04 12:11:00 +00:00
Sandro Santilli 727cd3369c Use a 2d geometry for face mbr, even for 2.5d topologies. After all mbr is a rectangle (not cube) by definition (Minimum Bounding Rectangle) so we don't want to mess with poliedron or whatnot [see #103 for more infos about the can of worms..]
git-svn-id: http://svn.osgeo.org/postgis/trunk@6995 b70326c6-7e19-0410-871a-916f4a2858ee
2011-04-02 12:27:13 +00:00
Sandro Santilli c29a721016 topology.TopologSummary: survive presence of stale records in topology.topology and missing tables from topology schemas.
git-svn-id: http://svn.osgeo.org/postgis/trunk@6993 b70326c6-7e19-0410-871a-916f4a2858ee
2011-03-31 10:26:41 +00:00
Sandro Santilli 874bee281e topology.TopologySummary: report 'has Z' flag on topologies
git-svn-id: http://svn.osgeo.org/postgis/trunk@6992 b70326c6-7e19-0410-871a-916f4a2858ee
2011-03-31 10:26:32 +00:00
Sandro Santilli f69dd26749 Add support for creating topologies allowing 3d vertices on edges and nodes. Includes regress testing [RT-SIGTA]
git-svn-id: http://svn.osgeo.org/postgis/trunk@6991 b70326c6-7e19-0410-871a-916f4a2858ee
2011-03-31 09:35:11 +00:00
Sandro Santilli 83db921ad5 Add another test for topology.AddFace in presence of an open edge whose endpoints both intersect a polygon ring which does not cover it.
git-svn-id: http://svn.osgeo.org/postgis/trunk@6987 b70326c6-7e19-0410-871a-916f4a2858ee
2011-03-29 13:57:01 +00:00
Regina Obe e9a850b5bb Fix #879 (get rid of use of both deprecated line_locate_point and line_substring... document function
git-svn-id: http://svn.osgeo.org/postgis/trunk@6952 b70326c6-7e19-0410-871a-916f4a2858ee
2011-03-22 05:44:52 +00:00
Sandro Santilli 01952faa4b Convert to $$ quoting (ticket #714)
git-svn-id: http://svn.osgeo.org/postgis/trunk@6950 b70326c6-7e19-0410-871a-916f4a2858ee
2011-03-21 11:04:43 +00:00
Sandro Santilli 7b57a45fe1 Add an ST_RemIsoNode alias to ST_RemoveIsoNode (ticket #798)
git-svn-id: http://svn.osgeo.org/postgis/trunk@6949 b70326c6-7e19-0410-871a-916f4a2858ee
2011-03-21 10:28:38 +00:00
Sandro Santilli de990d75db ST_ModEdgesSplit -> ST_ModEdgeSplit (ticket #794)
git-svn-id: http://svn.osgeo.org/postgis/trunk@6948 b70326c6-7e19-0410-871a-916f4a2858ee
2011-03-21 10:18:58 +00:00
Sandro Santilli 670053ca72 Re-drop ST_SharedPath from topology.AddFace, this time with stronger robustness, so not prone to error exposed by #874. It was a pity to give up a 10% speed improvement... Thanks supermoon for keeping me up. [RT-SIGTA]
git-svn-id: http://svn.osgeo.org/postgis/trunk@6943 b70326c6-7e19-0410-871a-916f4a2858ee
2011-03-20 08:55:52 +00:00
Sandro Santilli a209240f8d Fix #874 by getting back to ST_SharedPaths use. Might try to optimize again in the future, but correctness first! This commit also adds regression testing for the case [RT-SIGTA]
git-svn-id: http://svn.osgeo.org/postgis/trunk@6942 b70326c6-7e19-0410-871a-916f4a2858ee
2011-03-19 23:35:21 +00:00
Sandro Santilli edcf85bd26 Avoid using ST_SharedPath in topology.AddFace as well.
git-svn-id: http://svn.osgeo.org/postgis/trunk@6916 b70326c6-7e19-0410-871a-916f4a2858ee
2011-03-17 00:08:11 +00:00
Sandro Santilli a6134a2835 TopologySummary: Take an empty feature_column as a sign of a "detached" topological layer (one having no deploy on user-tables).
git-svn-id: http://svn.osgeo.org/postgis/trunk@6891 b70326c6-7e19-0410-871a-916f4a2858ee
2011-03-10 11:33:44 +00:00
Sandro Santilli bff7f6071f Ticket #849 by Andrea Peri: topology.GetFaceByPoint implementation and test
git-svn-id: http://svn.osgeo.org/postgis/trunk@6889 b70326c6-7e19-0410-871a-916f4a2858ee
2011-03-09 21:59:39 +00:00
Sandro Santilli e5ca72613d Ticket #856: topology.CopyTopology(text,text) implementation, test and documentation
git-svn-id: http://svn.osgeo.org/postgis/trunk@6888 b70326c6-7e19-0410-871a-916f4a2858ee
2011-03-09 19:18:45 +00:00
Sandro Santilli 03f0a18e24 Make createtopogeom test independent from the number of topologies created before running it
git-svn-id: http://svn.osgeo.org/postgis/trunk@6887 b70326c6-7e19-0410-871a-916f4a2858ee
2011-03-09 16:30:17 +00:00
Sandro Santilli 74cfd01d54 Ticket #855: topology.TopologySummary(<name>)
git-svn-id: http://svn.osgeo.org/postgis/trunk@6886 b70326c6-7e19-0410-871a-916f4a2858ee
2011-03-09 10:19:15 +00:00
Sandro Santilli ea0fa1f642 Simplify AddEdge code by using BoundaryNodeRule 2 (Endpoint) in ST_Relate call, thus saving a couple of calls to ST_RelateMatch. See tickets #770 and #844.
git-svn-id: http://svn.osgeo.org/postgis/trunk@6884 b70326c6-7e19-0410-871a-916f4a2858ee
2011-03-08 15:26:38 +00:00
Sandro Santilli 066e6d140e Avoid using ST_SharedPath (expensive)
git-svn-id: http://svn.osgeo.org/postgis/trunk@6880 b70326c6-7e19-0410-871a-916f4a2858ee
2011-03-07 11:05:13 +00:00
Sandro Santilli 70b953e2b6 Use left_face/right_face when looking for face ring's edges. I've seen some areal TopoGeometries dumped in 1:76 of the time [RT-SIGTA]
git-svn-id: http://svn.osgeo.org/postgis/trunk@6873 b70326c6-7e19-0410-871a-916f4a2858ee
2011-02-28 18:14:24 +00:00
Sandro Santilli af1dfe5f63 Add test for invalid AddFace call (polygon not fully defined by known edges)
git-svn-id: http://svn.osgeo.org/postgis/trunk@6872 b70326c6-7e19-0410-871a-916f4a2858ee
2011-02-28 10:53:40 +00:00
Sandro Santilli a9c3c02823 Founded -> Found (in expected results..)
git-svn-id: http://svn.osgeo.org/postgis/trunk@6871 b70326c6-7e19-0410-871a-916f4a2858ee
2011-02-28 10:40:20 +00:00
Regina Obe d70df9a350 #848 Fix eror message for GetNodeByPoint, GetNodeByEdge
git-svn-id: http://svn.osgeo.org/postgis/trunk@6870 b70326c6-7e19-0410-871a-916f4a2858ee
2011-02-26 21:29:33 +00:00