Commit Graph

8536 Commits

Author SHA1 Message Date
Barend Gehrels
fac0c80692 [overlay] fix sort order, which might contain duplicate turn_index
values in e.g. buffer
2017-10-18 15:34:07 +02:00
Barend Gehrels
b28a1df011 Merge branch 'feature/intvalid' into develop 2017-10-18 10:22:18 +02:00
Barend Gehrels
9f3d4b62cc Merge branch 'develop' into feature/intvalid 2017-10-18 10:21:03 +02:00
Adam Wulkiewicz
f152c55df4 [test][strategies] Add missing includes. 2017-10-18 01:02:45 +02:00
Adam Wulkiewicz
bf2ed6d495 [test][srs] Comment out unused types in transformation test. 2017-10-17 22:55:37 +02:00
Adam Wulkiewicz
4a5542a418 [srs] Improve consistency of error handling in projection and transformation.
Try to convert all of the points. If some of them were not converted set
them to invalid state (original HUGE_VAL) and return false from function.
2017-10-17 22:52:45 +02:00
Adam Wulkiewicz
615584301f [convert] Move ConvertPointPolicy from range_to_range struct template argument to apply() function argument. 2017-10-17 22:51:56 +02:00
Adam Wulkiewicz
19ccd06551 [srs] Consistently check raw coordinate 0 for HUGE_VAL in transformation. 2017-10-16 17:13:17 +02:00
Adam Wulkiewicz
8321ebd9d1 [srs] Comment out warning printing to stderr in aitoff projection. 2017-10-15 01:12:52 +02:00
Mateusz Łoskot
fcb11af0df Merge pull request #428 from mloskot/ml/doc-axis-order
[doc] Document Axis Order convention
2017-10-13 21:07:04 +02:00
Adam Wulkiewicz
99c47c3d82 [test][srs] Add/remove includes after recent changes (optional EPSG). 2017-10-12 23:28:18 +02:00
Adam Wulkiewicz
49a38f9178 [srs] Add/modify EPSG, ESRI and IAU codes. Make them optionally included.
By default proj4 format is available.
Rearrange the code and modify includes.
2017-10-12 23:24:33 +02:00
Mateusz Loskot
658a7d99cd [doc] Document Axis Order convention
Clarifies question #427
2017-10-11 20:23:47 +01:00
Mateusz Loskot
477b502bb4 [doc] Fix 'a as' typo to read 'as a' 2017-10-11 19:16:40 +01:00
Adam Wulkiewicz
6598f5af2e Merge branch 'develop' into feature/projections
Conflicts:
	test/formulas/inverse.cpp
2017-10-11 19:57:14 +02:00
Adam Wulkiewicz
038d99e84c [test][srs] Add various CS units cases in transformation test. 2017-10-11 19:18:38 +02:00
Adam Wulkiewicz
4db38089d1 [srs] Support various CS units combinations in transformation. Also remove unnecessary temporary points. 2017-10-11 19:17:53 +02:00
Adam Wulkiewicz
a6ef269196 [convert] Add ConvertPointPolicy to range_to_range conversion struct. 2017-10-11 19:16:53 +02:00
Barend Gehrels
877ef98340 [overlay] add check to skip self-turns in rings, boxes, and polygons without
interior rings or multi-polygons with only one such polygon
2017-10-11 14:58:44 +02:00
Barend Gehrels
1a7b13dadc [test] add last testcases to union/difference 2017-10-11 14:38:28 +02:00
Barend Gehrels
b20aeba724 [overlay] fix cases where non-traversed rings were incorrectly added.
This also changes the order of checks
2017-10-11 13:54:48 +02:00
Barend Gehrels
3010148541 [test] add last testcases to union/difference 2017-10-11 13:52:31 +02:00
Barend Gehrels
4d1b094e6a [overlay] discard self-turns i/u for intersection traveling to themselves 2017-10-11 12:58:29 +02:00
Barend Gehrels
16402bcd83 Merge branch 'feature/intvalid' into develop 2017-10-11 10:44:21 +02:00
Barend Gehrels
9a022331b2 [overlay] insert missing curly brace (earlier commit error) 2017-10-11 10:42:52 +02:00
Barend Gehrels
8a136b86b1 Merge branch 'develop' into feature/intvalid 2017-10-11 10:19:58 +02:00
Barend Gehrels
2dc2adbc90 Merge branch 'feature/dissolve' into develop 2017-10-11 10:19:30 +02:00
Adam Wulkiewicz
f85af69b15 [srs] In transformation convert per range instead of per geometry and use temporary range if calculation type is more precise than the output geometry coordinate type. 2017-10-09 23:47:54 +02:00
Adam Wulkiewicz
abfaae26d3 [srs] Support all geometries (besides Box) in transformation. 2017-10-08 03:00:36 +02:00
Barend Gehrels
a04050a31a [test] for dissolve unit tests now also check validity - and most
cases are already valid
2017-10-06 17:38:04 +02:00
Barend Gehrels
23e9f8628b [test] also move/cleanup multi-polygon tests 2017-10-06 16:38:35 +02:00
Barend Gehrels
c77f1c99ab [test] improve test, phase 2, now always check for clips/holes 2017-10-06 16:26:28 +02:00
Barend Gehrels
5f865f79f2 [test] dissolve: start testing #clips and #holes too 2017-10-06 16:01:40 +02:00
Barend Gehrels
1187e1e805 [dissolve] fix case with two triangles which needs to be corrected w.r.t.
next turn if there is only one turn
2017-10-06 15:46:20 +02:00
Barend Gehrels
a73246bbd2 [dissolve] change in order of algorithm / comment 2017-10-06 13:46:01 +02:00
Barend Gehrels
ee02d25a42 [test] add Johan's testcases for dissolve 2017-10-06 13:02:14 +02:00
Barend Gehrels
7783eb6a24 [overlay] distinguish dissolve intersection/union to be able to avoid
self-turn being true for dissolve (otherwise all is true), to avoid having
those turns discarded.
This fixes some (but not all) of the regressions detected earlier
2017-10-06 12:30:48 +02:00
Barend Gehrels
5eed687af3 [dissolve] clear turns between the two phases of enrich/traverse 2017-10-06 11:21:50 +02:00
Barend Gehrels
f73abdab1b [test] add labels for dissolve-svg 2017-10-06 11:20:37 +02:00
Barend Gehrels
6e02971a66 [test] enhance dissolve SVG with information from visitor 2017-10-06 10:52:42 +02:00
Barend Gehrels
0bb0e7fcae [dissolve][test] enhance test information, check different outputs,
prepare svg-debug-info
2017-10-06 10:23:08 +02:00
Barend Gehrels
2ece2f2fca [dissolve] pass visitor, this makes dissolve_overlay_visitor redundant 2017-10-06 10:01:46 +02:00
Barend Gehrels
aaf2a5f4d6 [dissolve] use the map, which is now passed, instead of the old one
which was created explicitly
2017-10-06 10:00:36 +02:00
Barend Gehrels
1d23e0b511 [dissolve][test] fix test environment, exclude now failing cases 2017-10-06 09:18:56 +02:00
Barend Gehrels
641ee18257 [dissolve] fix call to traverse which needs extra argument now
(which is not (yet) used for dissolve)
2017-10-06 09:18:10 +02:00
Barend Gehrels
9e230f972f Merge branch 'develop' into feature/intvalid 2017-10-04 18:25:37 +02:00
Barend Gehrels
a5507f2e68 [test] add testcases to union/difference 2017-10-04 18:22:18 +02:00
Barend Gehrels
65a5c2ba53 [overlay] fix bug (it always returned false), and it should not consider
all turns in a cluster here. This fixes #case_recursive_boxes_76
Including unit test
2017-10-04 18:12:37 +02:00
Barend Gehrels
0c5038233f [test] add last testcases also to union/difference tests 2017-10-04 15:29:34 +02:00
Barend Gehrels
c5710b2ab9 [overlay] skip ranks of isolated regions 2017-10-04 14:00:40 +02:00