Commit graph

453 commits

Author SHA1 Message Date
Sandro Santilli 18a18d6b4c Avoid (srf()).* construct, known to invoke srf() for each out field
Should slightly improve performances of TopoGeo_addLinestring
(in turn used by toTopoGeom)

git-svn-id: http://svn.osgeo.org/postgis/trunk@11484 b70326c6-7e19-0410-871a-916f4a2858ee
2013-05-22 20:24:12 +00:00
Paul Ramsey 4762b673c7 Change PGCONFIG to PG_CONFIG
git-svn-id: http://svn.osgeo.org/postgis/trunk@11301 b70326c6-7e19-0410-871a-916f4a2858ee
2013-04-16 15:21:42 +00:00
Sandro Santilli d5372e1097 Fix lineal TopoJSON output to keep multi components separated
REF: #2228

git-svn-id: http://svn.osgeo.org/postgis/trunk@11196 b70326c6-7e19-0410-871a-916f4a2858ee
2013-03-22 12:34:34 +00:00
Sandro Santilli 59eba85d49 Fix areal TopoJSON output to group and order polygon rings (#2228)
git-svn-id: http://svn.osgeo.org/postgis/trunk@11193 b70326c6-7e19-0410-871a-916f4a2858ee
2013-03-21 16:15:51 +00:00
Sandro Santilli b4b22dd15f Review comments above Makefile rule to generate .sql from .sql.in
git-svn-id: http://svn.osgeo.org/postgis/trunk@11192 b70326c6-7e19-0410-871a-916f4a2858ee
2013-03-21 09:01:28 +00:00
Sandro Santilli bd7e18d27d Have functions deprecated in 2.1.0 raise a WARNING message (#1994)
Drop use of some deprecated functions by other functions
(as exposed by testsuite).

Add a _postgis_deprecate service function for the message, so we
can change from WARNING to NOTICE or we can tweak the message,
in a central place.

git-svn-id: http://svn.osgeo.org/postgis/trunk@11191 b70326c6-7e19-0410-871a-916f4a2858ee
2013-03-20 17:38:58 +00:00
Sandro Santilli 5a5276dbf4 Add perturbating edges in TopoJSON test
git-svn-id: http://svn.osgeo.org/postgis/trunk@11189 b70326c6-7e19-0410-871a-916f4a2858ee
2013-03-20 16:10:40 +00:00
Sandro Santilli 30284fe572 Speedup areal TopoJSON output routine to use edge walking
Now it takes 6% of the time to do the same thing !

Tweak tests to expect new arcs numbering and order.
Also fixes missing comma separating polygon ring arcs.

git-svn-id: http://svn.osgeo.org/postgis/trunk@11187 b70326c6-7e19-0410-871a-916f4a2858ee
2013-03-20 11:44:37 +00:00
Sandro Santilli 246b3e2589 Fix AsTopoJSON call in testcase
git-svn-id: http://svn.osgeo.org/postgis/trunk@11186 b70326c6-7e19-0410-871a-916f4a2858ee
2013-03-20 10:27:07 +00:00
Sandro Santilli 21d97861b7 Properly encode TopoJSON.sql.in dependency into topology.sql
git-svn-id: http://svn.osgeo.org/postgis/trunk@11185 b70326c6-7e19-0410-871a-916f4a2858ee
2013-03-20 10:26:51 +00:00
Sandro Santilli fb12450ad4 Oops, forgot to add topojson test expectancy (#2240)
git-svn-id: http://svn.osgeo.org/postgis/trunk@11184 b70326c6-7e19-0410-871a-916f4a2858ee
2013-03-20 07:48:15 +00:00
Sandro Santilli b335f520c3 Add AsTopoJSON(TopoGeometry) function (#2228)
git-svn-id: http://svn.osgeo.org/postgis/trunk@11183 b70326c6-7e19-0410-871a-916f4a2858ee
2013-03-19 18:29:38 +00:00
Sandro Santilli 5fe198c02e Move GML function under a new export/ subdir
git-svn-id: http://svn.osgeo.org/postgis/trunk@11181 b70326c6-7e19-0410-871a-916f4a2858ee
2013-03-19 09:59:41 +00:00
Sandro Santilli 8c77371474 Drop the .c suffix of sql files to preprocess under topology/ dir
git-svn-id: http://svn.osgeo.org/postgis/trunk@11180 b70326c6-7e19-0410-871a-916f4a2858ee
2013-03-19 09:53:17 +00:00
Sandro Santilli a94e44ff19 Drop unused variables
git-svn-id: http://svn.osgeo.org/postgis/trunk@11176 b70326c6-7e19-0410-871a-916f4a2858ee
2013-03-18 18:14:52 +00:00
Sandro Santilli 6b74c8c9c3 Add ST_Simplify override for TopoGeometry objects (#1687)
git-svn-id: http://svn.osgeo.org/postgis/trunk@11158 b70326c6-7e19-0410-871a-916f4a2858ee
2013-03-07 16:14:45 +00:00
Sandro Santilli 0a92fb796e Split test for #1968 in two parts, to avoid false negative
git-svn-id: http://svn.osgeo.org/postgis/trunk@11156 b70326c6-7e19-0410-871a-916f4a2858ee
2013-03-07 07:31:50 +00:00
Sandro Santilli aab9bec5a7 Improve the test for #1968 to also check duplicated components
git-svn-id: http://svn.osgeo.org/postgis/trunk@11155 b70326c6-7e19-0410-871a-916f4a2858ee
2013-03-06 18:37:50 +00:00
Sandro Santilli 022f3d200a Fix missing edge from toTopoGeom return (#1968)
git-svn-id: http://svn.osgeo.org/postgis/trunk@11152 b70326c6-7e19-0410-871a-916f4a2858ee
2013-03-06 18:11:27 +00:00
Sandro Santilli 7373c86a6e Allow adding points at precision distance with TopoGeo_addPoint
git-svn-id: http://svn.osgeo.org/postgis/trunk@11149 b70326c6-7e19-0410-871a-916f4a2858ee
2013-03-06 15:20:48 +00:00
Regina Obe 88de793472 #2190: further cleanup of topology existence checking so regresses for 9.3. Should pass with flying colors now.
git-svn-id: http://svn.osgeo.org/postgis/trunk@11076 b70326c6-7e19-0410-871a-916f4a2858ee
2013-02-02 23:48:13 +00:00
Regina Obe 67a4b78881 fix for 9.3 -- pg 9.3 seems to throw errors sooner so we need to check a topology exists before trying to query it.
git-svn-id: http://svn.osgeo.org/postgis/trunk@11075 b70326c6-7e19-0410-871a-916f4a2858ee
2013-02-02 22:12:28 +00:00
Sandro Santilli b100f9e2cc Properly copy topologies with Z value (#2184)
git-svn-id: http://svn.osgeo.org/postgis/trunk@11022 b70326c6-7e19-0410-871a-916f4a2858ee
2013-01-24 21:15:40 +00:00
Sandro Santilli 4b439c1a9b Prefer boolean predicates over overlay ops in ST_ChangeEdgeGeom
Further reduces robustness issues and squeezes another bit of
performance.

git-svn-id: http://svn.osgeo.org/postgis/trunk@10987 b70326c6-7e19-0410-871a-916f4a2858ee
2013-01-17 08:05:43 +00:00
Sandro Santilli 00160c15b9 Drop useless input endpoints relate check in ST_ChangeEdgeGeom
git-svn-id: http://svn.osgeo.org/postgis/trunk@10985 b70326c6-7e19-0410-871a-916f4a2858ee
2013-01-16 21:42:56 +00:00
Sandro Santilli 18bfdbd23e Make ST_ChangeEdgeGeom motion collision detection code more robust
The new model avoids a call to GEOSSymDifference but rather checks
each candidate node against both "motion ranges" containment.
It still constructs something, but only MULTIPOINT, which should
be safe. Haven't profiled but the new code should also be faster
than the previous. Fixes ticket #2176, includes testcase for it.

git-svn-id: http://svn.osgeo.org/postgis/trunk@10984 b70326c6-7e19-0410-871a-916f4a2858ee
2013-01-16 15:14:06 +00:00
Sandro Santilli 354cf42088 Provide a version of toTopoGeom taking a TopoGeometry object
Such version would _add_ the space taken by the input geometry
to an existing TopoGeometry.

git-svn-id: http://svn.osgeo.org/postgis/trunk@10809 b70326c6-7e19-0410-871a-916f4a2858ee
2012-12-06 23:23:57 +00:00
Sandro Santilli 0caa3c0b89 Add topology.clearTopoGeom(TopoGeometry) function
git-svn-id: http://svn.osgeo.org/postgis/trunk@10808 b70326c6-7e19-0410-871a-916f4a2858ee
2012-12-06 23:02:23 +00:00
Sandro Santilli a9f17555c1 Do not hardcode version to rule to build topology_upgrade_X_minor
git-svn-id: http://svn.osgeo.org/postgis/trunk@10807 b70326c6-7e19-0410-871a-916f4a2858ee
2012-12-06 18:45:40 +00:00
Sandro Santilli 9a222413d7 Make ST_RemEdge* tests 30% faster by reducing service costs
git-svn-id: http://svn.osgeo.org/postgis/trunk@10781 b70326c6-7e19-0410-871a-916f4a2858ee
2012-12-03 10:09:54 +00:00
Sandro Santilli c698b80aeb Enhance error message on unsupported geometry type (#1899)
git-svn-id: http://svn.osgeo.org/postgis/trunk@10763 b70326c6-7e19-0410-871a-916f4a2858ee
2012-11-29 19:29:22 +00:00
Sandro Santilli ad6cbf2540 Fix ST_{Mod,New}EdgeHeal joining edges sharing both endpoints
Closes #1998. Include testcases.
Also simplifies the code and avoids a GEOS call.

[RT-SIGTA] C.I.G.: 0494241492

git-svn-id: http://svn.osgeo.org/postgis/trunk@10734 b70326c6-7e19-0410-871a-916f4a2858ee
2012-11-23 22:15:38 +00:00
Sandro Santilli a4ce1e04b2 Rewrite topology.GetRingEdges using a recursive CTE (#2087)
Walking around a ring of ~22k edges takes 1/7 of the time

git-svn-id: http://svn.osgeo.org/postgis/trunk@10660 b70326c6-7e19-0410-871a-916f4a2858ee
2012-11-08 08:40:56 +00:00
Sandro Santilli 6eaadd1f8b Share some code between ST_RemEdgeModFace and ST_RemEdgeNewFaces
Also check TopoGeometry existance as first thing, to reduce the
time it takes for failing calls.

git-svn-id: http://svn.osgeo.org/postgis/trunk@10659 b70326c6-7e19-0410-871a-916f4a2858ee
2012-11-08 08:40:42 +00:00
Sandro Santilli d42054844e Create indices on start_node and end_node of edge_data (#2082)
Those indices speed up nodes deletion by a factor of x1000 !
I didn't profile, but I suspect those indices would also speed up
ring walking (whereas you have to find a match between endnodes).

git-svn-id: http://svn.osgeo.org/postgis/trunk@10644 b70326c6-7e19-0410-871a-916f4a2858ee
2012-11-05 10:27:08 +00:00
Sandro Santilli a5179586d0 Oops, revert the revert...
Note to self: never commit between 1:00am and 8:00am

git-svn-id: http://svn.osgeo.org/postgis/trunk@10637 b70326c6-7e19-0410-871a-916f4a2858ee
2012-11-04 00:44:09 +00:00
Sandro Santilli c044a511be Revert "#1970 - 9.2rc1 regress failure change layer_id_seq from select * to explicitly select fields. log_cnt now returns 0 for 9.2rc1 so fails regress otherwise"
This reverts commit c272b5ed6d.

git-svn-id: http://svn.osgeo.org/postgis/trunk@10635 b70326c6-7e19-0410-871a-916f4a2858ee
2012-11-04 00:30:08 +00:00
Sandro Santilli 3e705b6646 Fix GetTopoGeomElementArray(TopoGeometry) function, and add test
See http://trac.osgeo.org/postgis/ticket/2060

git-svn-id: http://svn.osgeo.org/postgis/trunk@10502 b70326c6-7e19-0410-871a-916f4a2858ee
2012-10-21 18:02:54 +00:00
Sandro Santilli dada3886d9 Improve TopologySummary output
Add unregistered layers and orphaned TopoGeom count

git-svn-id: http://svn.osgeo.org/postgis/trunk@10435 b70326c6-7e19-0410-871a-916f4a2858ee
2012-10-16 08:29:26 +00:00
Sandro Santilli 6404af0579 Have TopologySummary use the word "Mixed" for collection layers
git-svn-id: http://svn.osgeo.org/postgis/trunk@10434 b70326c6-7e19-0410-871a-916f4a2858ee
2012-10-16 08:29:15 +00:00
Sandro Santilli 7d6daaf548 Fix adding a splitting point into a 2.5d topology (#2033)
git-svn-id: http://svn.osgeo.org/postgis/trunk@10381 b70326c6-7e19-0410-871a-916f4a2858ee
2012-10-05 19:26:57 +00:00
Sandro Santilli bde285f4b3 ST_AddEdge*: make update of old face edges more robust (#2025)
Include tests for adding an edge that splits an hole in a face
while forming a left ring which constitutes an invalid polygon ring.

Also fixes one case of invalid topology creation (when the formed
ring has a dangling edge but not a new area on the other side).

git-svn-id: http://svn.osgeo.org/postgis/trunk@10365 b70326c6-7e19-0410-871a-916f4a2858ee
2012-10-03 06:16:51 +00:00
Regina Obe c272b5ed6d #1970 - 9.2rc1 regress failure change layer_id_seq from select * to explicitly select fields. log_cnt now returns 0 for 9.2rc1 so fails regress otherwise
git-svn-id: http://svn.osgeo.org/postgis/trunk@10234 b70326c6-7e19-0410-871a-916f4a2858ee
2012-09-05 13:41:41 +00:00
Sandro Santilli 76c5fa465c Fix ST_ModEdgeHeal and ST_NewEdgeHeal for doubly connected edges
Includes testcases, closes #1955

git-svn-id: http://svn.osgeo.org/postgis/trunk@10189 b70326c6-7e19-0410-871a-916f4a2858ee
2012-08-17 17:18:41 +00:00
Sandro Santilli a5532e02b7 Catch invalid topology name passed to topogeo_add* (#1867)
git-svn-id: http://svn.osgeo.org/postgis/trunk@9908 b70326c6-7e19-0410-871a-916f4a2858ee
2012-06-14 16:06:54 +00:00
Sandro Santilli d6cc06e993 Move sqldefine include on top of the file (#1822)
git-svn-id: http://svn.osgeo.org/postgis/trunk@9904 b70326c6-7e19-0410-871a-916f4a2858ee
2012-06-12 17:28:58 +00:00
Sandro Santilli fd6d6d0f67 Clearer error on setting an geometry to an invalid one (#1774)
Include testcase

git-svn-id: http://svn.osgeo.org/postgis/trunk@9899 b70326c6-7e19-0410-871a-916f4a2858ee
2012-06-12 12:34:23 +00:00
Sandro Santilli 2637e560da Drop temporary table at end of ValidateTopology (#1797)
git-svn-id: http://svn.osgeo.org/postgis/trunk@9896 b70326c6-7e19-0410-871a-916f4a2858ee
2012-06-12 10:46:58 +00:00
Sandro Santilli f214bec7c3 Fix failure to detect endpoint mismatch in ST_AddEdge*Face* (#1857)
Affects calls with start_node = end_node and matching start point.

git-svn-id: http://svn.osgeo.org/postgis/trunk@9865 b70326c6-7e19-0410-871a-916f4a2858ee
2012-06-08 11:55:20 +00:00
Sandro Santilli 38dd59f32e Remove unused variables
git-svn-id: http://svn.osgeo.org/postgis/trunk@9862 b70326c6-7e19-0410-871a-916f4a2858ee
2012-06-08 11:13:01 +00:00