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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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