Commit graph

396 commits

Author SHA1 Message Date
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
Sandro Santilli 124263dfbc Update copyright notice
git-svn-id: http://svn.osgeo.org/postgis/trunk@6866 b70326c6-7e19-0410-871a-916f4a2858ee
2011-02-25 09:18:34 +00:00
Sandro Santilli e13426764b topology.GetEdgeByPoint: implementation and regress test, by Andrea Peri. Ticket #791. Note that previous commit (for #793) was GetNodeByPoint. My mistake, sorry.
git-svn-id: http://svn.osgeo.org/postgis/trunk@6865 b70326c6-7e19-0410-871a-916f4a2858ee
2011-02-25 08:56:01 +00:00
Sandro Santilli 54ec9a6b4f topology.GetEdgeByPoint: implementation and regress test, by Andrea Peri. Ticket #793
git-svn-id: http://svn.osgeo.org/postgis/trunk@6864 b70326c6-7e19-0410-871a-916f4a2858ee
2011-02-25 08:45:03 +00:00
Sandro Santilli 263c19e50f Performance improvements in topology.AddFace: consider each ring separately when looking for composing edges; compute orientation inside the loop body to avoid sorting and grouping [RT-SIGTA]
git-svn-id: http://svn.osgeo.org/postgis/trunk@6846 b70326c6-7e19-0410-871a-916f4a2858ee
2011-02-18 16:24:39 +00:00
Sandro Santilli 79e3fdbacc Test passing polygons with holes to topology.AddFace [RT-SIGTA]
git-svn-id: http://svn.osgeo.org/postgis/trunk@6845 b70326c6-7e19-0410-871a-916f4a2858ee
2011-02-18 14:58:41 +00:00
Sandro Santilli 3e7e7d2ce7 topology: create an index on edge.left_face and edge.right_face, speeding up construction of polygonal Geometry from TopoGeometry by a factor of 10 (Closes #806)
git-svn-id: http://svn.osgeo.org/postgis/trunk@6822 b70326c6-7e19-0410-871a-916f4a2858ee
2011-02-15 08:26:37 +00:00
Sandro Santilli 6c51629008 topology.AddFace: report an "uncovered point" on missing edges [RT-SIGTA]
git-svn-id: http://svn.osgeo.org/postgis/trunk@6792 b70326c6-7e19-0410-871a-916f4a2858ee
2011-02-09 16:36:45 +00:00
Sandro Santilli da1ff4cabf Tag VOLATILE functions explicitly [RT-SIGTA]
git-svn-id: http://svn.osgeo.org/postgis/trunk@6785 b70326c6-7e19-0410-871a-916f4a2858ee
2011-02-07 16:53:26 +00:00
Sandro Santilli f807ff8ec7 Use quote_ident more...
git-svn-id: http://svn.osgeo.org/postgis/trunk@6777 b70326c6-7e19-0410-871a-916f4a2858ee
2011-02-04 17:26:20 +00:00
Sandro Santilli e80cdbbb54 Fix a bug in topology.CreateTopoGeom in presence of MixCased topologies [RT-SIGTA]
git-svn-id: http://svn.osgeo.org/postgis/trunk@6776 b70326c6-7e19-0410-871a-916f4a2858ee
2011-02-04 17:19:16 +00:00
Sandro Santilli b590431807 Fix a bug in topology.add{Node,Edge,Face} breaking on MixedCased topology names [RT-SIGTA]
git-svn-id: http://svn.osgeo.org/postgis/trunk@6775 b70326c6-7e19-0410-871a-916f4a2858ee
2011-02-04 16:31:34 +00:00
Sandro Santilli 4bb089e777 AsGML(TopoGeometry): test xref to visited face [RT-SIGTA].
git-svn-id: http://svn.osgeo.org/postgis/trunk@6772 b70326c6-7e19-0410-871a-916f4a2858ee
2011-02-01 10:24:34 +00:00
Sandro Santilli 26573303ce AsGML(TopoGeometry): add test for faces marking visit of edges [RT-SIGTA]
git-svn-id: http://svn.osgeo.org/postgis/trunk@6771 b70326c6-7e19-0410-871a-916f4a2858ee
2011-02-01 09:55:32 +00:00
Sandro Santilli 61bdf6988c AsGML(TopoGeometry) Add test for ouput of multi puntual features [RT-SIGTA]
git-svn-id: http://svn.osgeo.org/postgis/trunk@6770 b70326c6-7e19-0410-871a-916f4a2858ee
2011-02-01 09:43:07 +00:00
Sandro Santilli 40556d4b2d Use a <gml:Face> tag for each topological face, allowing proper xrefs. Needs xref testing (requires overlapping topological features) [RT-SIGTA]
git-svn-id: http://svn.osgeo.org/postgis/trunk@6768 b70326c6-7e19-0410-871a-916f4a2858ee
2011-01-31 17:33:55 +00:00
Sandro Santilli 75b7cfdb2d Use named parameters
git-svn-id: http://svn.osgeo.org/postgis/trunk@6760 b70326c6-7e19-0410-871a-916f4a2858ee
2011-01-28 17:15:46 +00:00
Sandro Santilli b350029004 Add a "gmlversion" parameter to topology.AsGML(TopoGeometry). Test and document. [RT-SIGTA].
git-svn-id: http://svn.osgeo.org/postgis/trunk@6759 b70326c6-7e19-0410-871a-916f4a2858ee
2011-01-28 17:05:25 +00:00
Sandro Santilli 89f0060ff2 Change face.mbr field from BOX2D to GEOMETRY, and gist-index it, closes ticket #800 [RT-SIGTA].
git-svn-id: http://svn.osgeo.org/postgis/trunk@6747 b70326c6-7e19-0410-871a-916f4a2858ee
2011-01-28 08:55:22 +00:00
Sandro Santilli 80055a1ce2 AsGML(TopoGeometry): allow specifying a prefix for topology element identifiers, and test it. [RT-SIGTA]
git-svn-id: http://svn.osgeo.org/postgis/trunk@6744 b70326c6-7e19-0410-871a-916f4a2858ee
2011-01-27 20:35:23 +00:00
Sandro Santilli 9931745d6f AsGML(TopoGeometry): fix xref syntax error (#811) [RT-SIGTA]
git-svn-id: http://svn.osgeo.org/postgis/trunk@6740 b70326c6-7e19-0410-871a-916f4a2858ee
2011-01-27 09:43:24 +00:00
Sandro Santilli 04a833324b topology.AddEdge: when an intersection occurs, also report intersection point [RT-SIGTA]
git-svn-id: http://svn.osgeo.org/postgis/trunk@6739 b70326c6-7e19-0410-871a-916f4a2858ee
2011-01-27 08:48:11 +00:00
Sandro Santilli 427052b6e3 Complete visited bookkeeping for AsGML(TopoGeometry) and automate test for it [RT-SIGTA]
git-svn-id: http://svn.osgeo.org/postgis/trunk@6732 b70326c6-7e19-0410-871a-916f4a2858ee
2011-01-25 21:52:11 +00:00
Sandro Santilli 3a700961ef I realized we're in 2011...
git-svn-id: http://svn.osgeo.org/postgis/trunk@6731 b70326c6-7e19-0410-871a-916f4a2858ee
2011-01-25 18:08:57 +00:00
Sandro Santilli 495e0ed7c1 AsGML(TopoGeometry): Add support for visited table and xlink:xref for Edges [RT-SIGTA]
git-svn-id: http://svn.osgeo.org/postgis/trunk@6729 b70326c6-7e19-0410-871a-916f4a2858ee
2011-01-25 17:04:32 +00:00
Sandro Santilli 16e99f02ad Test use of the options argument to topology.AsGML [RT-SIGTA]
git-svn-id: http://svn.osgeo.org/postgis/trunk@6726 b70326c6-7e19-0410-871a-916f4a2858ee
2011-01-25 15:05:17 +00:00
Sandro Santilli 458ebf77e0 Allow specifying GML output precision and options to the topology.AsGML(TopoGeometry) function [RT-SIGTA].
git-svn-id: http://svn.osgeo.org/postgis/trunk@6725 b70326c6-7e19-0410-871a-916f4a2858ee
2011-01-25 14:52:21 +00:00
Sandro Santilli 6f385996bb Make topology.AddEdge consistent with AddNode and AddFace in that it will return an existing identical Edge, if found.
git-svn-id: http://svn.osgeo.org/postgis/trunk@6724 b70326c6-7e19-0410-871a-916f4a2858ee
2011-01-25 09:39:50 +00:00
Sandro Santilli c1384ad26f Test multi-component lineal topogeometries [RT-SIGTA]
git-svn-id: http://svn.osgeo.org/postgis/trunk@6719 b70326c6-7e19-0410-871a-916f4a2858ee
2011-01-24 20:56:36 +00:00
Sandro Santilli 2c65d35a37 Output multi-edge lineal TopoGeometry GML with a meaningful edge ordering [RT-SIGTA]
git-svn-id: http://svn.osgeo.org/postgis/trunk@6718 b70326c6-7e19-0410-871a-916f4a2858ee
2011-01-24 20:52:29 +00:00
Sandro Santilli 2edc1c08c4 Add test for TopoSurface GML output with multi-face TopoGeometry objects [RT-SIGTA]
git-svn-id: http://svn.osgeo.org/postgis/trunk@6715 b70326c6-7e19-0410-871a-916f4a2858ee
2011-01-24 14:38:38 +00:00
Sandro Santilli 91063f859b Test the noprefix and customprefix GML outputs against all geoms taken in consideration for the default GML ..
git-svn-id: http://svn.osgeo.org/postgis/trunk@6713 b70326c6-7e19-0410-871a-916f4a2858ee
2011-01-24 14:14:17 +00:00
Sandro Santilli ff0c281c38 Add test for single-component areal TopoGeometry GML output [RT-SIGTA]
git-svn-id: http://svn.osgeo.org/postgis/trunk@6712 b70326c6-7e19-0410-871a-916f4a2858ee
2011-01-24 14:03:46 +00:00
Sandro Santilli 1dc72e231d AsGML(TopoGeometry): Do not force right-hand-rule on each polygon ring (isn't needed and doesn't make sense as it would get the hole rings wrong anyway) [RT-SIGTA]
git-svn-id: http://svn.osgeo.org/postgis/trunk@6711 b70326c6-7e19-0410-871a-916f4a2858ee
2011-01-24 14:01:21 +00:00
Sandro Santilli 0d9db00f94 AsGML(TopoGeometry): for TopoSurface, make the directedEdge sequence be ordered to go around each ring (ie: make the order meaningful) [RT-SIGTA].
git-svn-id: http://svn.osgeo.org/postgis/trunk@6710 b70326c6-7e19-0410-871a-916f4a2858ee
2011-01-24 11:43:33 +00:00
Sandro Santilli 278e8bac53 AsGML(TopoGeometry) add test for TopoCurve output (only single-element, till ordering of components is sorted out) [RT-SIGTA].
git-svn-id: http://svn.osgeo.org/postgis/trunk@6709 b70326c6-7e19-0410-871a-916f4a2858ee
2011-01-24 11:11:06 +00:00
Sandro Santilli 63381ad200 Test GML output of puntual TopoGeometry objects. Lineal and Areal are still undergoing manual tests and debate about importance of components sequence ordering [RT-SIGTA].
git-svn-id: http://svn.osgeo.org/postgis/trunk@6708 b70326c6-7e19-0410-871a-916f4a2858ee
2011-01-24 09:31:21 +00:00
Sandro Santilli 08dc815be6 topology.AsGML(TopoGeometry): Write end node of edges. Fixes bug #807 [RT-SIGTA]
git-svn-id: http://svn.osgeo.org/postgis/trunk@6702 b70326c6-7e19-0410-871a-916f4a2858ee
2011-01-23 20:25:36 +00:00
Sandro Santilli 93c4e13a70 Port topology.Geometry to $$ syntax [RT-SIGTA]
git-svn-id: http://svn.osgeo.org/postgis/trunk@6700 b70326c6-7e19-0410-871a-916f4a2858ee
2011-01-22 23:02:38 +00:00
Sandro Santilli 3aa73538f8 update email address
git-svn-id: http://svn.osgeo.org/postgis/trunk@6699 b70326c6-7e19-0410-871a-916f4a2858ee
2011-01-22 22:38:29 +00:00
Sandro Santilli 7fc0694143 topology.AsGML: Add the missing gml:directedEdge part within the gml:Face tag, appropriately (?) computing orientation of each "ring" edge [RT-SIGTA] (#803)
git-svn-id: http://svn.osgeo.org/postgis/trunk@6698 b70326c6-7e19-0410-871a-916f4a2858ee
2011-01-22 19:26:06 +00:00
Sandro Santilli ac2ce80a23 There's no need to add geometry columns when creating Topological layers, that's something only useful for caching geometries, so move to cache_geometries.sql
git-svn-id: http://svn.osgeo.org/postgis/trunk@6696 b70326c6-7e19-0410-871a-916f4a2858ee
2011-01-22 18:08:46 +00:00
Sandro Santilli 14cbbbd617 Cleanup the topology regress dir Makefile. Have load_topology.sql generated to allow for specifying different SRIDs.
git-svn-id: http://svn.osgeo.org/postgis/trunk@6695 b70326c6-7e19-0410-871a-916f4a2858ee
2011-01-22 18:08:34 +00:00
Sandro Santilli 73bb371e4a Rename internal functions so to have an underscore prefix, document them as such. Drop wrappers for internal functions (they are not meant to be called by users so don't need to be friendly) [RT-SIGTA]
git-svn-id: http://svn.osgeo.org/postgis/trunk@6694 b70326c6-7e19-0410-871a-916f4a2858ee
2011-01-22 17:26:09 +00:00
Sandro Santilli a25372deb0 topology.AsGML(TopoGeometry): Add support for specifying a namespace prefix. See ticket #801. [RT-SIGTA]
git-svn-id: http://svn.osgeo.org/postgis/trunk@6693 b70326c6-7e19-0410-871a-916f4a2858ee
2011-01-22 17:21:59 +00:00
Sandro Santilli f42cad53e3 topology.AsGML: Use Long CRS for pointProperty and curveProperty [RT-SIGTA]
git-svn-id: http://svn.osgeo.org/postgis/trunk@6692 b70326c6-7e19-0410-871a-916f4a2858ee
2011-01-22 16:10:04 +00:00
Sandro Santilli 7642bcc6ee Use GML3 for Edge curveProperty and Node pointProperty (see #802) [RT-SIGTA].
git-svn-id: http://svn.osgeo.org/postgis/trunk@6691 b70326c6-7e19-0410-871a-916f4a2858ee
2011-01-22 15:24:50 +00:00
Sandro Santilli 60e449d4e8 topology.AsGML(TopoGeometry): add a <gml:Face> tag (See ticket #803) [RT-SIGTA]
git-svn-id: http://svn.osgeo.org/postgis/trunk@6690 b70326c6-7e19-0410-871a-916f4a2858ee
2011-01-22 13:55:14 +00:00
Sandro Santilli bcd7f21095 Don't miss to include the gml routines in the main topology.sql
git-svn-id: http://svn.osgeo.org/postgis/trunk@6689 b70326c6-7e19-0410-871a-916f4a2858ee
2011-01-22 13:27:25 +00:00
Sandro Santilli dae494740f fix spurious ending bracket in topo-GML output [RT-SIGTA]
git-svn-id: http://svn.osgeo.org/postgis/trunk@6688 b70326c6-7e19-0410-871a-916f4a2858ee
2011-01-22 08:37:47 +00:00
Sandro Santilli 51210b9b6d First version of topological gml output routines (still miss the visited map) [RT-SIGTA]
git-svn-id: http://svn.osgeo.org/postgis/trunk@6687 b70326c6-7e19-0410-871a-916f4a2858ee
2011-01-21 22:10:52 +00:00
Sandro Santilli cec1e3324b I've just realized TopoElement is also used for TopoGeomId/LayerID, thus can't restrict the second element to a max of 4 or using layers beyond the forth would be impossible. Fix the domain and test accordingly. Update documentation to be informative on the matter.
git-svn-id: http://svn.osgeo.org/postgis/trunk@6684 b70326c6-7e19-0410-871a-916f4a2858ee
2011-01-21 14:08:59 +00:00
Sandro Santilli 508febfa2b Fix TopoGeometry -> Geometry conversion for hierarchically defined TopoGeometries in presence of multiple topologies. Take the chance so simplify a query. WARNING: This fix doesn't have an automated regression test.
git-svn-id: http://svn.osgeo.org/postgis/trunk@6683 b70326c6-7e19-0410-871a-916f4a2858ee
2011-01-21 13:21:52 +00:00
Sandro Santilli 2db89579b8 Make the TopoElement domain stricter to forbid arrays with more than 2 elements and also checking the element type being in valid range [RT-SIGTA]
git-svn-id: http://svn.osgeo.org/postgis/trunk@6672 b70326c6-7e19-0410-871a-916f4a2858ee
2011-01-19 16:46:16 +00:00
Sandro Santilli d5a820bd90 Raise an exception if AddEdge is called on a topology which already defines faces other than the universe face (see #781)
git-svn-id: http://svn.osgeo.org/postgis/trunk@6670 b70326c6-7e19-0410-871a-916f4a2858ee
2011-01-18 17:19:55 +00:00
Sandro Santilli fcc149ae96 ValidateTopology: have temporary table dropped on commit (#783). Thanks Andrea Peri [RT-SIGTA]
git-svn-id: http://svn.osgeo.org/postgis/trunk@6668 b70326c6-7e19-0410-871a-916f4a2858ee
2011-01-18 13:52:42 +00:00
Regina Obe 79943766a5 Fix #786 ST_MoveIsoNode gives ST_Intersects is not unique. Also change to use newer $$ quoting syntax.
git-svn-id: http://svn.osgeo.org/postgis/trunk@6665 b70326c6-7e19-0410-871a-916f4a2858ee
2011-01-18 06:38:01 +00:00
Sandro Santilli 3c839c505c topology.AddNode: fix detection of edge crossing (#780) [RT-SIGTA]
git-svn-id: http://svn.osgeo.org/postgis/trunk@6659 b70326c6-7e19-0410-871a-916f4a2858ee
2011-01-17 22:35:50 +00:00
Sandro Santilli 608471f434 ValidateTopology: Use a temporary table to create face geometries only once. Huge speed boost for #772.
git-svn-id: http://svn.osgeo.org/postgis/trunk@6658 b70326c6-7e19-0410-871a-916f4a2858ee
2011-01-17 21:32:11 +00:00
Sandro Santilli 434d0238fd ValidateTopology: Put some water on fire by avoiding a full cartesian product scan (#772). It's still too slow, but it is a step forward.
git-svn-id: http://svn.osgeo.org/postgis/trunk@6657 b70326c6-7e19-0410-871a-916f4a2858ee
2011-01-17 21:03:36 +00:00
Sandro Santilli cb12e9e593 ST_DWithin already includes a bounding box check
git-svn-id: http://svn.osgeo.org/postgis/trunk@6656 b70326c6-7e19-0410-871a-916f4a2858ee
2011-01-17 19:58:49 +00:00
Sandro Santilli ff5382c294 topology.ValidateTopology: rewrite the edge crossing detection query. Fixes a false positive (#777) and unexpectedly a bunch of false negative in the legacy_invalid testcase (now properly checked visually). [RT-SIGTA].
git-svn-id: http://svn.osgeo.org/postgis/trunk@6650 b70326c6-7e19-0410-871a-916f4a2858ee
2011-01-17 09:04:18 +00:00
Sandro Santilli c4ac0d5a9b topology.AddEdge: correctly handle the case in which a newly added closed edge touches an existing closed edge with an endpoint over a non-endpoint [RT-SIGTA].
git-svn-id: http://svn.osgeo.org/postgis/trunk@6649 b70326c6-7e19-0410-871a-916f4a2858ee
2011-01-17 08:47:34 +00:00
Sandro Santilli d5c2ca585b topology.AddFace: raise another WARNING about next_left/right_face element of topology edges not being set as dictated by the model
git-svn-id: http://svn.osgeo.org/postgis/trunk@6648 b70326c6-7e19-0410-871a-916f4a2858ee
2011-01-17 08:47:24 +00:00
Sandro Santilli 826a31212e ValidateTopology: don't compute full intersection matrix to detect edge-node intersection. Use ST_DWithin instead. Use ST_DWithin for coincident nodes detection as well, so to be more consistent [RT-SIGTA]
git-svn-id: http://svn.osgeo.org/postgis/trunk@6646 b70326c6-7e19-0410-871a-916f4a2858ee
2011-01-16 21:42:05 +00:00
Sandro Santilli 9f80c1cc62 ValidateTopology: && operator is not enough to tell if two points are cohincident (it was at time of HWGEOM...) [RT-SIGTA]
git-svn-id: http://svn.osgeo.org/postgis/trunk@6645 b70326c6-7e19-0410-871a-916f4a2858ee
2011-01-16 21:29:30 +00:00
Regina Obe d754722106 #776: replace dump with ST_Dump in ST_CreateTopogeo
git-svn-id: http://svn.osgeo.org/postgis/trunk@6641 b70326c6-7e19-0410-871a-916f4a2858ee
2011-01-16 11:22:20 +00:00
Sandro Santilli 9f029df4a8 Drop unused domain TopoGeomElementArray. See #775
git-svn-id: http://svn.osgeo.org/postgis/trunk@6640 b70326c6-7e19-0410-871a-916f4a2858ee
2011-01-16 10:36:29 +00:00
Sandro Santilli a85b767ad7 topology.AddFace: group face boundary edge finding query results to avoid considering the _same_ edge multiple times. Can reduce execution time from _hours_ to _minutes_ [RT-SIGTA]
git-svn-id: http://svn.osgeo.org/postgis/trunk@6633 b70326c6-7e19-0410-871a-916f4a2858ee
2011-01-15 23:14:30 +00:00
Sandro Santilli d20207b6f3 topology.AddEdge: handle case of endpoint intersection between closed edges. Fixes #770. [RT-SIGTA]
git-svn-id: http://svn.osgeo.org/postgis/trunk@6626 b70326c6-7e19-0410-871a-916f4a2858ee
2011-01-14 16:40:01 +00:00
Regina Obe 8f573ca940 #764: Topology error using ST_AddIsoNode (now that raster has an ST_Intersects it is now more necessary to not rely on auto casts)
git-svn-id: http://svn.osgeo.org/postgis/trunk@6593 b70326c6-7e19-0410-871a-916f4a2858ee
2011-01-11 09:12:54 +00:00
Regina Obe 3c14ce4eb1 #760: missed some
git-svn-id: http://svn.osgeo.org/postgis/trunk@6590 b70326c6-7e19-0410-871a-916f4a2858ee
2011-01-10 17:31:34 +00:00
Regina Obe 1b4bca68ca #760: replace deprecated function names with new names so all regress tests pass again. This should completely work now.
git-svn-id: http://svn.osgeo.org/postgis/trunk@6589 b70326c6-7e19-0410-871a-916f4a2858ee
2011-01-10 17:27:22 +00:00
Regina Obe 82ff8a7756 Start replacing deprecated names with new names - still more to do
git-svn-id: http://svn.osgeo.org/postgis/trunk@6588 b70326c6-7e19-0410-871a-916f4a2858ee
2011-01-10 17:13:09 +00:00
Sandro Santilli f44d93b745 Enlarge the diagram image, by Andrea Peri (#750)
git-svn-id: http://svn.osgeo.org/postgis/trunk@6579 b70326c6-7e19-0410-871a-916f4a2858ee
2011-01-07 10:48:11 +00:00
Sandro Santilli 3b1c9e47d7 Fix bug in topology.DropTopology getting confused in presence of multiple topologies [RT-SIGTA]
git-svn-id: http://svn.osgeo.org/postgis/trunk@6578 b70326c6-7e19-0410-871a-916f4a2858ee
2011-01-07 09:55:00 +00:00
Sandro Santilli a56cbf8a70 Add TopoElementArray_agg function, to help with TopoGeometry construction [RT-SIGTA]
git-svn-id: http://svn.osgeo.org/postgis/trunk@6577 b70326c6-7e19-0410-871a-916f4a2858ee
2011-01-07 09:54:49 +00:00
Sandro Santilli 8220dbff22 Default topology tolerance is 0, not -1
git-svn-id: http://svn.osgeo.org/postgis/trunk@6522 b70326c6-7e19-0410-871a-916f4a2858ee
2010-12-28 17:16:19 +00:00
Sandro Santilli c6d94cfa10 PG_CONFIG seems to be needed for PGXS
git-svn-id: http://svn.osgeo.org/postgis/trunk@6514 b70326c6-7e19-0410-871a-916f4a2858ee
2010-12-27 11:56:44 +00:00
Sandro Santilli 66cc45f8e2 Do not consider DEBUG and NOTICE mesages when running sqlmm regression tests. Should fix #734.
git-svn-id: http://svn.osgeo.org/postgis/trunk@6512 b70326c6-7e19-0410-871a-916f4a2858ee
2010-12-27 11:05:24 +00:00
Sandro Santilli a5692b4caf Update with some integrations provided by Andrea Peri [RT-SIGTA]
git-svn-id: http://svn.osgeo.org/postgis/trunk@6497 b70326c6-7e19-0410-871a-916f4a2858ee
2010-12-24 10:22:45 +00:00
Sandro Santilli 2435869dee Other CREATEFUNCTION and _VOLATILE* gone (see #714)
git-svn-id: http://svn.osgeo.org/postgis/trunk@6489 b70326c6-7e19-0410-871a-916f4a2858ee
2010-12-23 17:30:32 +00:00
Sandro Santilli f6a4bb85bf Stop relying on preprocessor for CREATEFUNCTION and _VOLATILE (see #714)
git-svn-id: http://svn.osgeo.org/postgis/trunk@6486 b70326c6-7e19-0410-871a-916f4a2858ee
2010-12-23 14:19:33 +00:00
Sandro Santilli 5ced73be27 Make ST_GetFaceGeometry use ST_BuildArea rather than assuming first polygon coming out of Polygonize will be the correct one. Fixes ticket #726. Enables automated testing for it.
git-svn-id: http://svn.osgeo.org/postgis/trunk@6484 b70326c6-7e19-0410-871a-916f4a2858ee
2010-12-23 12:49:01 +00:00
Sandro Santilli 348c017d0e Add test showing bug in st_getfacegeometry
git-svn-id: http://svn.osgeo.org/postgis/trunk@6483 b70326c6-7e19-0410-871a-916f4a2858ee
2010-12-23 12:28:11 +00:00
Sandro Santilli 9d2b1faeb4 Support faces with all edges on the same side, and test [RT-SIGTA]
git-svn-id: http://svn.osgeo.org/postgis/trunk@6474 b70326c6-7e19-0410-871a-916f4a2858ee
2010-12-22 18:45:07 +00:00
Sandro Santilli 42f41926b7 Implement topology.AddFace and add test
git-svn-id: http://svn.osgeo.org/postgis/trunk@6471 b70326c6-7e19-0410-871a-916f4a2858ee
2010-12-22 17:27:02 +00:00
Sandro Santilli 0f033d66fe Fix addEdge when both endpoints are shared with an existing edge (and test) [RT-SIGTA]
git-svn-id: http://svn.osgeo.org/postgis/trunk@6456 b70326c6-7e19-0410-871a-916f4a2858ee
2010-12-20 22:01:04 +00:00
Sandro Santilli 43cc5b5a2b Add regress testing for topology.AddEdge
git-svn-id: http://svn.osgeo.org/postgis/trunk@6435 b70326c6-7e19-0410-871a-916f4a2858ee
2010-12-17 17:56:56 +00:00
Sandro Santilli ae20e8786a Add a note about possible semantic change
git-svn-id: http://svn.osgeo.org/postgis/trunk@6432 b70326c6-7e19-0410-871a-916f4a2858ee
2010-12-17 17:19:07 +00:00
Sandro Santilli 4dcc6fc5df New topology.AddEdge function [RT-SIGTA]
git-svn-id: http://svn.osgeo.org/postgis/trunk@6431 b70326c6-7e19-0410-871a-916f4a2858ee
2010-12-17 17:16:00 +00:00
Sandro Santilli b7766a573d Use newer quoting paradigm ($$); use ST_Crosses when willing to check crossing, not just intersection...; add proper credits
git-svn-id: http://svn.osgeo.org/postgis/trunk@6428 b70326c6-7e19-0410-871a-916f4a2858ee
2010-12-17 16:16:41 +00:00
Sandro Santilli 13559b749e Add an inspection in the final node table
git-svn-id: http://svn.osgeo.org/postgis/trunk@6427 b70326c6-7e19-0410-871a-916f4a2858ee
2010-12-17 15:51:04 +00:00
Sandro Santilli 694dec36a3 Add test for topology.addNode
git-svn-id: http://svn.osgeo.org/postgis/trunk@6426 b70326c6-7e19-0410-871a-916f4a2858ee
2010-12-17 15:27:12 +00:00
Sandro Santilli 4b078f7c5a Avoid NOTICE messages while running topology tests, make results immune of the number of topologies ever created in the database (helps getting stable results when running the tests manually using run_test directly)
git-svn-id: http://svn.osgeo.org/postgis/trunk@6425 b70326c6-7e19-0410-871a-916f4a2858ee
2010-12-17 15:17:57 +00:00
Sandro Santilli 578d0ac9a0 split load_topology in 3 steps: load of topology, creation of feature tables, query of feature tables. Adapt tests accordingly.
git-svn-id: http://svn.osgeo.org/postgis/trunk@6423 b70326c6-7e19-0410-871a-916f4a2858ee
2010-12-17 07:52:06 +00:00
Sandro Santilli 05624d765d Install topology.sql in the same directory as other things postgis
git-svn-id: http://svn.osgeo.org/postgis/trunk@6406 b70326c6-7e19-0410-871a-916f4a2858ee
2010-12-15 18:29:29 +00:00
Sandro Santilli 89d8fb0289 Generate GNUMakefile, add a --with-topology switch to configure, enabling descending under topology/ dir
git-svn-id: http://svn.osgeo.org/postgis/trunk@6404 b70326c6-7e19-0410-871a-916f4a2858ee
2010-12-15 18:03:52 +00:00
Sandro Santilli 6fd43f6035 Add a check rule under topology/ [RT-SIGTA]
git-svn-id: http://svn.osgeo.org/postgis/trunk@6400 b70326c6-7e19-0410-871a-916f4a2858ee
2010-12-15 17:11:34 +00:00
Sandro Santilli 2592f840d3 Make sure predicate sql file is generated before use
git-svn-id: http://svn.osgeo.org/postgis/trunk@6399 b70326c6-7e19-0410-871a-916f4a2858ee
2010-12-15 17:06:12 +00:00
Sandro Santilli 01263e654d Add sqlmm automated test. Drop old rules [RT-SIGTA]
git-svn-id: http://svn.osgeo.org/postgis/trunk@6398 b70326c6-7e19-0410-871a-916f4a2858ee
2010-12-15 16:41:12 +00:00
Sandro Santilli c7117c9a02 automatize topology validity checking [RT-SIGTA]
git-svn-id: http://svn.osgeo.org/postgis/trunk@6397 b70326c6-7e19-0410-871a-916f4a2858ee
2010-12-15 16:24:01 +00:00
Sandro Santilli 6cec1b8e0c Start a proper 'make check' rule, using the testrunner in top dir's regress dir
git-svn-id: http://svn.osgeo.org/postgis/trunk@6396 b70326c6-7e19-0410-871a-916f4a2858ee
2010-12-15 16:04:05 +00:00
Sandro Santilli 7eee0aae59 Add new populate.sql file to host topology population routines. Properly encode dependencies.
git-svn-id: http://svn.osgeo.org/postgis/trunk@6391 b70326c6-7e19-0410-871a-916f4a2858ee
2010-12-15 13:39:52 +00:00
Sandro Santilli 82943113aa Split sqlmm specific things into its own file
git-svn-id: http://svn.osgeo.org/postgis/trunk@6389 b70326c6-7e19-0410-871a-916f4a2858ee
2010-12-15 11:01:00 +00:00
Sandro Santilli de082e616d Work outside of transaction, to help upgrade/test cycles. Fix leftover from previous commit. [RT-SIGTA]
git-svn-id: http://svn.osgeo.org/postgis/trunk@6388 b70326c6-7e19-0410-871a-916f4a2858ee
2010-12-15 10:48:24 +00:00
Sandro Santilli 3daf93d2f5 Fix typo in TopoGeo_addLinestring description, add DEBUG lines [RT-SIGTA]
git-svn-id: http://svn.osgeo.org/postgis/trunk@6387 b70326c6-7e19-0410-871a-916f4a2858ee
2010-12-15 10:44:37 +00:00
Sandro Santilli 8218075d32 Fix detection of non-existent schema in ST_CreateTopoGeo
git-svn-id: http://svn.osgeo.org/postgis/trunk@6386 b70326c6-7e19-0410-871a-916f4a2858ee
2010-12-15 10:08:31 +00:00
Sandro Santilli ccede85f76 Add comments on the 'edge' topology primitives view
git-svn-id: http://svn.osgeo.org/postgis/trunk@6345 b70326c6-7e19-0410-871a-916f4a2858ee
2010-12-13 10:49:18 +00:00
Sandro Santilli fa64621762 typo
git-svn-id: http://svn.osgeo.org/postgis/trunk@6344 b70326c6-7e19-0410-871a-916f4a2858ee
2010-12-13 09:51:30 +00:00
Sandro Santilli d383600a23 Do not force drop of pre-existing topology schema. Sounds dangerous when start using it for real.
git-svn-id: http://svn.osgeo.org/postgis/trunk@6339 b70326c6-7e19-0410-871a-916f4a2858ee
2010-12-11 00:27:25 +00:00
Sandro Santilli 37d7438c8a Drop references to topology geometry tables in DropTopology (see #586)
git-svn-id: http://svn.osgeo.org/postgis/trunk@5966 b70326c6-7e19-0410-871a-916f4a2858ee
2010-09-13 19:18:13 +00:00
Sandro Santilli aaa0ad8971 Add note about topology.sql expecting a postgis-enabled db
git-svn-id: http://svn.osgeo.org/postgis/trunk@5965 b70326c6-7e19-0410-871a-916f4a2858ee
2010-09-13 17:01:24 +00:00
Sandro Santilli f3634e60f4 PostgreSQL 9 support : don't use reserved 'table' keyword (see #585)
git-svn-id: http://svn.osgeo.org/postgis/trunk@5964 b70326c6-7e19-0410-871a-916f4a2858ee
2010-09-13 16:59:21 +00:00
Sandro Santilli 3a102a5ec8 Make edge-edge relations clearer. Thanks to Peter Hopfgartner and to
Xfig developers for the wonderful experience of patching a diagram ! :)


git-svn-id: http://svn.osgeo.org/postgis/trunk@5893 b70326c6-7e19-0410-871a-916f4a2858ee
2010-09-03 12:31:41 +00:00
Sandro Santilli ac913341c7 Add 7.3+ CAST (wasn't needed up to 7.2, against which this topology implementation was coded)
git-svn-id: http://svn.osgeo.org/postgis/trunk@5732 b70326c6-7e19-0410-871a-916f4a2858ee
2010-07-07 21:52:15 +00:00
Sandro Santilli 25c10402ef Remove spurious element (was hiding behind a fill)
git-svn-id: http://svn.osgeo.org/postgis/trunk@5722 b70326c6-7e19-0410-871a-916f4a2858ee
2010-07-06 08:28:08 +00:00
Sandro Santilli d98e51793b Do not source psqlrc when doing tests
git-svn-id: http://svn.osgeo.org/postgis/trunk@5717 b70326c6-7e19-0410-871a-916f4a2858ee
2010-06-30 16:14:03 +00:00
Sandro Santilli e2d33bcc46 More explicit cast from geometry to text (for quote_ident's sake) and an handling of unexistent topology. Tests run again with psql 8.3.9
git-svn-id: http://svn.osgeo.org/postgis/trunk@5716 b70326c6-7e19-0410-871a-916f4a2858ee
2010-06-30 16:10:54 +00:00
Sandro Santilli bacacf52bc Define the cross-pgsql macros that used to be in sqldefines.h (now lost) + use st_union rather than geomunion (now lost)
git-svn-id: http://svn.osgeo.org/postgis/trunk@5715 b70326c6-7e19-0410-871a-916f4a2858ee
2010-06-30 15:52:02 +00:00
Sandro Santilli d30ca83a70 Fix loading of postgis.sql
git-svn-id: http://svn.osgeo.org/postgis/trunk@5714 b70326c6-7e19-0410-871a-916f4a2858ee
2010-06-30 15:51:17 +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
Paul Ramsey cdfcc4e366 Propset Author Id Keyword Revision on all files.
git-svn-id: http://svn.osgeo.org/postgis/trunk@3639 b70326c6-7e19-0410-871a-916f4a2858ee
2009-02-04 00:28:37 +00:00
Mark Cave-Ayland b6e444e638 Change configure to check for the existence of the PGXS Makefile, even if pg_config can be found. This is become distributions such as Debian install pg_config as part of libpq-dev but this package doesn't contain the required Makefile. Per bug report from strk.
git-svn-id: http://svn.osgeo.org/postgis/trunk@3261 b70326c6-7e19-0410-871a-916f4a2858ee
2008-11-06 15:15:06 +00:00
Mark Cave-Ayland 4eec27c992 Allow Makefile substitutions for PGCONFIG which are required if pg_config is not located in the path. Note that as part of this fix, we now need to generate topology/Makefile using autoconf. Thanks to Jorgen Austvik for the report and partial patch.
git-svn-id: http://svn.osgeo.org/postgis/trunk@2885 b70326c6-7e19-0410-871a-916f4a2858ee
2008-07-28 10:03:31 +00:00
Mark Cave-Ayland 70609da272 Update topology/ directory to use the new PGXS build system.
git-svn-id: http://svn.osgeo.org/postgis/trunk@2779 b70326c6-7e19-0410-871a-916f4a2858ee
2008-05-22 14:31:02 +00:00
Sandro Santilli 17de7461ef removed duplicated function definition
git-svn-id: http://svn.osgeo.org/postgis/trunk@2469 b70326c6-7e19-0410-871a-916f4a2858ee
2006-09-06 11:16:59 +00:00
Sandro Santilli 13d7f31340 Added 'with oids' specification to create table (oids are used for the test).
'With oids' was available in postgresql 7.3.4 so we should not be highering
the requirements for topology. Suggestion from Alex Bodnaru.


git-svn-id: http://svn.osgeo.org/postgis/trunk@2363 b70326c6-7e19-0410-871a-916f4a2858ee
2006-05-22 12:10:58 +00:00
Sandro Santilli 36f7d35145 Applied cleanups by Alex Bodnaru
git-svn-id: http://svn.osgeo.org/postgis/trunk@2362 b70326c6-7e19-0410-871a-916f4a2858ee
2006-05-22 11:17:34 +00:00
Sandro Santilli 946649dc11 Initial work on ST_AddEdgeNewFaces
git-svn-id: http://svn.osgeo.org/postgis/trunk@2018 b70326c6-7e19-0410-871a-916f4a2858ee
2005-11-01 11:56:20 +00:00
Sandro Santilli e51b2fe6b6 Added ST_ModEdgesSplit function, cleaned up test files, added tests for
the new topology editing functions.


git-svn-id: http://svn.osgeo.org/postgis/trunk@1971 b70326c6-7e19-0410-871a-916f4a2858ee
2005-10-19 10:04:15 +00:00
Sandro Santilli 307df8801e Fixed ST_NewEdgesSplit function to return new Node id rather then text
git-svn-id: http://svn.osgeo.org/postgis/trunk@1970 b70326c6-7e19-0410-871a-916f4a2858ee
2005-10-18 16:39:15 +00:00
Sandro Santilli a7fcbf3910 Added SQL/MM functions ST_RemoveIsoEdge and ST_NewEdgesSplit.
The ST_NewEdgesSplit also updates the Relation table (out of SQL/MM specs).


git-svn-id: http://svn.osgeo.org/postgis/trunk@1969 b70326c6-7e19-0410-871a-916f4a2858ee
2005-10-18 15:31:26 +00:00
Sandro Santilli 2b5868ca90 Initial work on topology model support
git-svn-id: http://svn.osgeo.org/postgis/trunk@1964 b70326c6-7e19-0410-871a-916f4a2858ee
2005-10-13 16:21:49 +00:00