Commit graph

343 commits

Author SHA1 Message Date
Sandro Santilli e9817355e9 Accept more feature type names from AddTopoGeometryColumn (#1470)
With this commit you can pass return of ST_GeometryType or
return GeometryType as input to the function.

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

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

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

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

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

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

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

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

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

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

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

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

git-svn-id: http://svn.osgeo.org/postgis/trunk@8671 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-04 18:33:06 +00:00
Sandro Santilli ed61e222b8 Implement TopoGeometry->Geometry converter for COLLECTION types
git-svn-id: http://svn.osgeo.org/postgis/trunk@8670 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-04 18:17:49 +00:00
Sandro Santilli 5f605e40b6 Implement and regress-test TopoGeo_addPolygon
git-svn-id: http://svn.osgeo.org/postgis/trunk@8663 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-03 23:17:42 +00:00