Commit Graph

8536 Commits

Author SHA1 Message Date
Adam Wulkiewicz
d8f2d23863 [test][formulas] Print test name/id in error msg in inverse formulas test. 2017-10-03 01:56:53 +02:00
Vissarion Fysikopoulos
eca31647a8 [distance] [test] Meridian distance computation actived in distance strategy 2017-09-28 16:45:46 +01:00
Barend Gehrels
6cce6a0686 [overlay] add explaining pictures 2017-09-27 13:24:18 +02:00
Barend Gehrels
5369afe1c5 [test] add last testcase, plus 3 missing ones, also to union/difference tests 2017-09-27 13:23:26 +02:00
Barend Gehrels
210b662597 [overlay] correct (partly) the behaviour of isolation detection for
an isolated ring, connected to another isolated ring which is
connected multiple times to it
2017-09-27 13:05:25 +02:00
Vissarion Fysikopoulos
866b297482 [formulas] [tests] Distance point-segment; normalization and some changes in the method and tests 2017-09-21 13:22:51 +01:00
Barend Gehrels
3160ee6804 [overlay] fix additional case where isolation information was incorrect.
Including unit test. This also influences two other testcases but they
are not completely fixed by this fix
2017-09-20 17:00:52 +02:00
Barend Gehrels
ca62efc16d [overlay] extract method has_single_connection_point 2017-09-20 13:32:22 +02:00
Barend Gehrels
0c7199c230 [test] add last testcase also to union/diff 2017-09-20 13:05:05 +02:00
Barend Gehrels
f572abf5c1 [overlay] fix case which was not detected as isolated because it was
not clustered. Isolation is now independent on clustering.
Including unit test
2017-09-20 12:52:18 +02:00
Barend Gehrels
79e0e5d258 [overlay] for convenience and for next step, add is_clustered method 2017-09-20 12:43:09 +02:00
Barend Gehrels
35e426700c [overlay] split methods to assign connected regions when all region ids are assigned 2017-09-20 11:04:51 +02:00
Barend Gehrels
af0ca5525b [buffer] fix debug SVG 2017-09-20 10:22:10 +02:00
Barend Gehrels
31f1872e46 [overlay] fix debug information 2017-09-20 10:21:50 +02:00
Vissarion Fysikopoulos
d9f3641795 [formulas] [strategies] [tests] Code simplification for special cases and some unit test cases 2017-09-19 18:01:43 +03:00
Vissarion Fysikopoulos
19eda49034 [strategies] [formulas] Some code cleaning 2017-09-19 17:28:08 +03:00
Vissarion Fysikopoulos
3b05e5ca46 [strategies] [formulas] Replace course algorithm by azimuth formula 2017-09-19 17:25:47 +03:00
Vissarion Fysikopoulos
02de7cc212 [formulas] [strategies] Fix cross track distance for both spherical and geographic 2017-09-19 15:13:33 +03:00
Adam Wulkiewicz
f93e3ad806 [test][union][overlay] Add geographic A/A test case (big polygons, one covering pole). 2017-09-17 21:14:18 +02:00
Adam Wulkiewicz
bc60e0737b [sections] Fix section_functions for boxes covering more than half of the globe. 2017-09-17 21:13:24 +02:00
Adam Wulkiewicz
d139bfd597 [formulas][strategies] Add authalic_radius_sqr() formula and use it in geographic area strategy. 2017-09-14 21:19:01 +02:00
Vissarion Fysikopoulos
2bc7063e73 [formulas] [distance] Use mean radius formula in distance point segment formula 2017-09-13 18:06:53 +03:00
Vissarion Fysikopoulos
098e43e732 Merge branch 'develop' into feature/distance_point_segment 2017-09-13 18:00:46 +03:00
Barend Gehrels
800baaac14 [overlay] fix recent change, assign best_code (this avoids regression in buffer) 2017-09-13 16:05:59 +02:00
Barend Gehrels
33f97b8f21 [test] add new testcase also to difference/intersection 2017-09-13 13:35:58 +02:00
Barend Gehrels
1849ddca84 [overlay] need to mark cc turns as traversed to avoid regression in
cases 75 and 76 which otherwise would have a duplicate ring in union
2017-09-13 13:08:11 +02:00
Barend Gehrels
ce9928a1aa [overlay] fix case which needed a specific selection of a matching ranked point 2017-09-13 13:07:10 +02:00
Vissarion Fysikopoulos
4e1e18fa39 [formulas] [distance] Rename inverse distance formula type name in point-segment formula 2017-09-13 11:28:24 +03:00
Adam Wulkiewicz
650451f977 [formulas][strategies] Add/use mean_radius and unit_spheroid functions. 2017-09-12 20:55:04 +02:00
Vissarion Fysikopoulos
47e2f0b4e9 [test] Tests for small and large distances from point to segment 2017-09-12 16:45:31 +03:00
Vissarion Fysikopoulos
3e97db55ab [test] Tests for geographic distance of pointlike-linear geometries 2017-09-12 14:08:50 +03:00
Adam Wulkiewicz
522f71b81f [test][intersection] Add L/A->P case of Linestring on boundary of Polygon. 2017-09-11 22:59:56 +02:00
Adam Wulkiewicz
abe8a7e7f3 [intersection] Fix L/A->P not returning the first endpoint of Linear on boundary of Areal. 2017-09-11 22:59:03 +02:00
Adam Wulkiewicz
d28766cf57 [test][intersection] Add L/A test cases - entire linestring on boundary of polygon. 2017-09-11 13:38:33 +02:00
Adam Wulkiewicz
da13a23824 [overlay] Fix L/A case - entire linestring on boundary of polygon. 2017-09-11 13:37:31 +02:00
Barend Gehrels
844f4c89ee Merge pull request #422 from MaxKellermann/to_index0
enrich_intersection_points: fix to_index0/to_index1 confusion
2017-09-08 18:39:05 +02:00
Max Kellermann
2bc6737309 enrich_intersection_points: fix to_index0/to_index1 confusion
Found by Coverity:

 "pointless_expression: The expression to_index1 >= 0 && to_index1 >=
 0 does not accomplish anything because it evaluates to either of its
 identical operands, to_index1 >= 0."
2017-09-08 15:21:15 +02:00
Adam Wulkiewicz
20a858c0ed [test][difference] Add L/A test cases. 2017-09-07 22:49:39 +02:00
Adam Wulkiewicz
653dc28bb9 [overlay] Fix follow (setops L/A) by using linear turns (from relate). 2017-09-07 22:48:10 +02:00
Vissarion Fysikopoulos
ed80e868c2 [formulas] Series expansion formula for distance on meridians 2017-09-06 17:10:32 +03:00
Barend Gehrels
ce3118c4c9 [test] add testcase from last commit also to union/difference 2017-09-06 14:52:07 +02:00
Barend Gehrels
6e4c61d202 [overlay] add check for self-cluster, which should be located within
the other geometry to avoid creating false rings
2017-09-06 14:40:44 +02:00
Barend Gehrels
1b89ac0473 Merge branch 'feature/intvalid' into develop 2017-09-06 11:46:37 +02:00
Barend Gehrels
564b261197 fix int cluster_id to signed_size_type 2017-09-06 11:43:36 +02:00
Barend Gehrels
df96ce3bcd fix more region_id occurences to signed_size_type 2017-09-06 11:43:14 +02:00
Barend Gehrels
5125f938d8 Fix std::size_t types of turn_index to signed_size_type 2017-09-06 11:42:31 +02:00
Barend Gehrels
25ee55003b Fix int types of region_id to signed_size_type 2017-09-06 11:36:22 +02:00
Barend Gehrels
41ae79cf15 Fix for C++03 2017-09-06 10:58:46 +02:00
Barend Gehrels
3232fd0675 [test] enable testcase for all operations 2017-09-06 10:21:39 +02:00
Barend Gehrels
edb8f92642 Merge branch 'develop' into feature/intvalid 2017-09-06 09:42:11 +02:00