Commit graph

111 commits

Author SHA1 Message Date
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 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
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 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 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 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 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 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 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 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 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 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 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 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 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 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 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
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 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 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 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 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 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 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
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 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 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