Commit graph

413 commits

Author SHA1 Message Date
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
Paul Ramsey 6caa800404 Convert to using run_test.pl instead of run_test.sh
git-svn-id: http://svn.osgeo.org/postgis/trunk@9847 b70326c6-7e19-0410-871a-916f4a2858ee
2012-05-31 22:49:56 +00:00
Paul Ramsey 6036d947b6 back out run_test.pl change, that was an accident
git-svn-id: http://svn.osgeo.org/postgis/trunk@9845 b70326c6-7e19-0410-871a-916f4a2858ee
2012-05-31 20:16:23 +00:00
Paul Ramsey 07fab68e7a Change from sed to perl
git-svn-id: http://svn.osgeo.org/postgis/trunk@9843 b70326c6-7e19-0410-871a-916f4a2858ee
2012-05-31 17:29:26 +00:00
Sandro Santilli c4245407cd Fix topology loader against PostgreSQL 9.2 (#1822)
git-svn-id: http://svn.osgeo.org/postgis/trunk@9748 b70326c6-7e19-0410-871a-916f4a2858ee
2012-05-17 12:27:51 +00:00
Regina Obe aaa4dbc0ff #1820 part fix 9.2 language is case sensitive if quoted -- change 'C' and 'SQL' to 'c' and 'sql'
git-svn-id: http://svn.osgeo.org/postgis/trunk@9735 b70326c6-7e19-0410-871a-916f4a2858ee
2012-05-16 08:29:14 +00:00
Sandro Santilli 08453791fe Fix false edge-node crossing report in ValidateTopology (#1625)
git-svn-id: http://svn.osgeo.org/postgis/trunk@9683 b70326c6-7e19-0410-871a-916f4a2858ee
2012-04-26 20:10:22 +00:00
Sandro Santilli b742fe8cfa Fix toTopoGeom handling of duplicated primitives (#1790)
git-svn-id: http://svn.osgeo.org/postgis/trunk@9675 b70326c6-7e19-0410-871a-916f4a2858ee
2012-04-25 19:41:33 +00:00
Sandro Santilli ea300ebd9b Regress-test ST_ChangeEdgeGeom with 2-vertext target (#1775)
This case was actually fixed by previous commit (ST_SymDifference)

git-svn-id: http://svn.osgeo.org/postgis/trunk@9642 b70326c6-7e19-0410-871a-916f4a2858ee
2012-04-13 21:14:57 +00:00
Sandro Santilli 50eecf8c2e Give more detail on topology editing function exception
git-svn-id: http://svn.osgeo.org/postgis/trunk@9640 b70326c6-7e19-0410-871a-916f4a2858ee
2012-04-13 14:32:07 +00:00
Sandro Santilli 10fc02f7a5 Use an SQLPP command for pre-processing SQL files (#1694)
The SQLPP command is figured at ./configure time.
It will use cpp(1) or gpp(1) if any is found in that order or
fallback to whatever CPP expands to (usually the compiler with -E)

git-svn-id: http://svn.osgeo.org/postgis/trunk@9639 b70326c6-7e19-0410-871a-916f4a2858ee
2012-04-12 14:09:22 +00:00
Sandro Santilli 52b429a731 Automate test for toTopoGeom usage with custom search_path (#1763)
git-svn-id: http://svn.osgeo.org/postgis/trunk@9636 b70326c6-7e19-0410-871a-916f4a2858ee
2012-04-12 10:28:30 +00:00
Sandro Santilli 3b769280b8 Don't let ST_RemEdge* destroy TopoGeometry objects (#1766)
git-svn-id: http://svn.osgeo.org/postgis/trunk@9627 b70326c6-7e19-0410-871a-916f4a2858ee
2012-04-11 19:17:49 +00:00
Sandro Santilli 821a1f41bf Cleanup lines after (bad) snapping (#1714)
git-svn-id: http://svn.osgeo.org/postgis/trunk@9625 b70326c6-7e19-0410-871a-916f4a2858ee
2012-04-11 12:37:18 +00:00
Sandro Santilli c6fc39dc76 Have ST_ModEdgeSplit and ST_NewEdgesSplit to use ST_Spit (#1715)
git-svn-id: http://svn.osgeo.org/postgis/trunk@9624 b70326c6-7e19-0410-871a-916f4a2858ee
2012-04-10 17:26:57 +00:00
Sandro Santilli a0c6242eba Fully qualify calls to topology functions (#1763)
git-svn-id: http://svn.osgeo.org/postgis/trunk@9619 b70326c6-7e19-0410-871a-916f4a2858ee
2012-04-08 10:00:13 +00:00
Sandro Santilli e92b97dcac Tabs to spaces
git-svn-id: http://svn.osgeo.org/postgis/trunk@9607 b70326c6-7e19-0410-871a-916f4a2858ee
2012-04-04 21:49:26 +00:00
Sandro Santilli b2f7b6b602 Fix GetGopoGeomElementArray code (#1730)
Includes regression testing for both GetGopoGeomElements
and GetGopoGeomElementArray

git-svn-id: http://svn.osgeo.org/postgis/trunk@9568 b70326c6-7e19-0410-871a-916f4a2858ee
2012-03-28 11:36:52 +00:00
Sandro Santilli 718bbb3745 Wrap most topology.sql into a transaction
CREATE SCHEMA is left out because uninstall_topology isn't getting
rid of it (to be fixed later)

git-svn-id: http://svn.osgeo.org/postgis/trunk@9557 b70326c6-7e19-0410-871a-916f4a2858ee
2012-03-27 17:30:43 +00:00
Sandro Santilli 09205909c5 Add topology validity checking (extra paranoia)
git-svn-id: http://svn.osgeo.org/postgis/trunk@9541 b70326c6-7e19-0410-871a-916f4a2858ee
2012-03-23 23:00:19 +00:00
Sandro Santilli 72d9f2d938 Do not abuse ST_Snap for tweaking edge endpoints (#1706)
git-svn-id: http://svn.osgeo.org/postgis/trunk@9540 b70326c6-7e19-0410-871a-916f4a2858ee
2012-03-23 22:54:10 +00:00
Sandro Santilli e7296ab87d Enhance edge splitting robustness (#1711)
git-svn-id: http://svn.osgeo.org/postgis/trunk@9539 b70326c6-7e19-0410-871a-916f4a2858ee
2012-03-23 22:23:05 +00:00
Sandro Santilli fbfe439e67 Add debugging lines to sqlmm edge splitting functions
git-svn-id: http://svn.osgeo.org/postgis/trunk@9536 b70326c6-7e19-0410-871a-916f4a2858ee
2012-03-23 17:08:08 +00:00
Sandro Santilli c317ab58d6 Add missing ticket reference to it's regression test
git-svn-id: http://svn.osgeo.org/postgis/trunk@9535 b70326c6-7e19-0410-871a-916f4a2858ee
2012-03-23 15:11:07 +00:00
Paul Ramsey 29e2d6a299 Change @rm to rm for visibility
git-svn-id: http://svn.osgeo.org/postgis/trunk@9523 b70326c6-7e19-0410-871a-916f4a2858ee
2012-03-21 21:36:59 +00:00
Paul Ramsey cf8753bd36 Make distclean should remove all the Makefile's generated by ./configure
git-svn-id: http://svn.osgeo.org/postgis/trunk@9522 b70326c6-7e19-0410-871a-916f4a2858ee
2012-03-21 20:32:29 +00:00
Sandro Santilli 95b8ba808d Make sure to rebuild topology.sql on postgis_svn_revision.h change
git-svn-id: http://svn.osgeo.org/postgis/trunk@9492 b70326c6-7e19-0410-871a-916f4a2858ee
2012-03-14 15:40:33 +00:00
Sandro Santilli ba8ee640f5 Add upgrade instructions
git-svn-id: http://svn.osgeo.org/postgis/trunk@9483 b70326c6-7e19-0410-871a-916f4a2858ee
2012-03-13 09:18:04 +00:00
Sandro Santilli 08fb7ae21e Drop SRID constraint issue (not an issue anymore with typmod)
git-svn-id: http://svn.osgeo.org/postgis/trunk@9482 b70326c6-7e19-0410-871a-916f4a2858ee
2012-03-13 09:17:55 +00:00
Sandro Santilli 17aad4599b Add note about toTopoGeom
git-svn-id: http://svn.osgeo.org/postgis/trunk@9481 b70326c6-7e19-0410-871a-916f4a2858ee
2012-03-13 09:17:46 +00:00
Sandro Santilli e3be619046 Drop .cvsignore files
git-svn-id: http://svn.osgeo.org/postgis/trunk@9429 b70326c6-7e19-0410-871a-916f4a2858ee
2012-03-08 10:36:15 +00:00
Sandro Santilli bcf0caf894 Snap new lines over existing nodes (#1654)
Also add Salvatore to the list of testing heroes :)

git-svn-id: http://svn.osgeo.org/postgis/trunk@9409 b70326c6-7e19-0410-871a-916f4a2858ee
2012-03-06 16:16:34 +00:00
Sandro Santilli 2aa8da7e1f Don't let a single collapse hide _all_ edges (#1650)
git-svn-id: http://svn.osgeo.org/postgis/trunk@9408 b70326c6-7e19-0410-871a-916f4a2858ee
2012-03-06 13:44:04 +00:00
Sandro Santilli eb170994e8 Skip collapsed edges after snapping (#1650)
git-svn-id: http://svn.osgeo.org/postgis/trunk@9407 b70326c6-7e19-0410-871a-916f4a2858ee
2012-03-06 13:21:01 +00:00
Sandro Santilli b6ba629675 Uncomment new tests for #1641
git-svn-id: http://svn.osgeo.org/postgis/trunk@9406 b70326c6-7e19-0410-871a-916f4a2858ee
2012-03-06 13:20:41 +00:00
Sandro Santilli 68ec5d2211 Fix toTopoGeom to actualy _use_ to given tolerance (#1647)
git-svn-id: http://svn.osgeo.org/postgis/trunk@9404 b70326c6-7e19-0410-871a-916f4a2858ee
2012-03-06 09:05:00 +00:00
Sandro Santilli 1dbfa82550 Add GetTopologySRID (#1182)
git-svn-id: http://svn.osgeo.org/postgis/trunk@9399 b70326c6-7e19-0410-871a-916f4a2858ee
2012-03-05 12:24:48 +00:00
Sandro Santilli bb4dc91e35 Optimize ST_AddIsoNode (#983)
git-svn-id: http://svn.osgeo.org/postgis/trunk@9398 b70326c6-7e19-0410-871a-916f4a2858ee
2012-03-05 12:14:47 +00:00
Sandro Santilli 5c31b7b19d _ST_MinTolerance isn't IMMUTABLE, due to db lookup...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9396 b70326c6-7e19-0410-871a-916f4a2858ee
2012-03-05 11:05:34 +00:00
Sandro Santilli 249909d5da Handle 0 tolerance by using topology.precision or min float one
This handling fixes the #1641 case w/out passing an explicit
tolerance and makes a step toward #785.

git-svn-id: http://svn.osgeo.org/postgis/trunk@9395 b70326c6-7e19-0410-871a-916f4a2858ee
2012-03-05 10:49:41 +00:00
Sandro Santilli 4b605d2e5a Add an internal topology._st_mintolerance funtion
This function computes the minimum tolerance for a given geometry.
It works by computing the smallest floating point difference that
could be expressed on any vertex of the geometry.

Currently it's only used to workaround the ST_DWithin/ST_Within
inconsistency (#1625) but could probably be used everytime 0 is
passed as a tolerance, possibly fixing #1641 as well.

git-svn-id: http://svn.osgeo.org/postgis/trunk@9374 b70326c6-7e19-0410-871a-916f4a2858ee
2012-03-01 19:09:50 +00:00