Commit Graph

8536 Commits

Author SHA1 Message Date
Adam Wulkiewicz
e450c3b692 [projections] Implement static projection hybrid interface.
- Remove string parameter from static_proj4.
- Add 2 projection<> ctors taking srs::proj4, disabled by default with
  ifdef.
- Modify and use EPSG, ESRI and IAU2000 traits to use hybrid interface.
2017-10-30 20:04:51 +01:00
Adam Wulkiewicz
8853442dd2 [projection] Fix double to int conversion warnings in isea projection. 2017-10-30 17:57:13 +01:00
Adam Wulkiewicz
21ca6dbd4f [projections] In implementation on aeqd projection make free functions inline. 2017-10-30 17:56:39 +01:00
Adam Wulkiewicz
cf9504ee18 [test][projections] Pass static o_proj parameter in static ob_tran projection test. 2017-10-30 17:55:43 +01:00
Adam Wulkiewicz
f3fb8821f6 [projections] Support static o_proj parameter in ob_tran projection (internally use static projection). 2017-10-30 17:54:30 +01:00
Adam Wulkiewicz
fe3ae4a41d [test][projections] Add esri/iau2000 tests and change names of aeqd projection types. 2017-10-29 03:22:13 +01:00
Adam Wulkiewicz
595d6736d9 [projections] Add static parameters to static_projection traits.
- The intention is to add support for guam and o_proj.
- Implement static_proj4-based SRID traits and define epsg, esri and
  iau2000 traits in terms of static_proj4.
- Support static guam parameter and spheroid/sphere definition in aeqd
  projection.
2017-10-29 03:16:51 +01:00
Adam Wulkiewicz
7e366baca9 [ci] Fix variable names in circle.yml script. 2017-10-28 21:51:14 +02:00
Adam Wulkiewicz
8eacc794c4 [ci] Run tests from 2 manual lists, one for each parallel container (prevent timeout). 2017-10-27 15:54:46 +02:00
Adam Wulkiewicz
14592168c4 [relate] Fix reference to temporary (reported by clang-4.0 asan). 2017-10-27 01:22:01 +02:00
Adam Wulkiewicz
968035415f Merge pull request #424 from awulkiew/fix/geographic_preceding
Fix preceding/exceeding in geographic CS
2017-10-25 23:28:14 +02:00
Adam Wulkiewicz
6665497ecc Merge pull request #423 from awulkiew/fix/setops_la
Fix L/A set operations
2017-10-25 23:28:02 +02:00
Adam Wulkiewicz
51e67a38bb [test][projections] Update tests WRT recent changes in static_proj4 interface and parameters. 2017-10-25 00:53:10 +02:00
Adam Wulkiewicz
375e39a0db [projections] Redesign static_proj4<> interface and parameters.
- Take up to 10 types/parameters in static_proj4<>.
- Static parameters now can be passed in arbitrary order and are searched
  at compile-time.
- With static_proj4 run-time proj, ellps and datum parameters are ignored
  completly.
- Move static parameters into srs::par4 namespace.
- Add parameter wrappers/names proj<>, ellps<>, datum<>, etc.
- Adapt static_projection, epsg, esri, iau2000, etc. traits accordingly.
2017-10-25 00:47:04 +02:00
Adam Wulkiewicz
eb56e0aa23 [projections] Update ellpses and datums. 2017-10-25 00:46:28 +02:00
Barend Gehrels
7a0d547d8b Merge branch 'bg-prepare' 2017-10-23 23:57:00 +02:00
Barend Gehrels
b705d53ae3 Merge branch 'develop' into bg-prepare
# Conflicts:
#	extensions/test/algorithms/dissolve.cpp
#	include/boost/geometry/extensions/algorithms/dissolve.hpp
#	include/boost/geometry/extensions/multi/algorithms/dissolve.hpp
#	include/boost/geometry/extensions/nsphere/algorithms/expand.hpp
2017-10-23 23:39:21 +02:00
Barend Gehrels
36d1fe7657 Merge branch 'feature/intvalid' into develop 2017-10-23 18:39:46 +02:00
Barend Gehrels
ddd95fa45a [doc] add start of release notes for 1.66 2017-10-23 15:26:17 +02:00
Barend Gehrels
48843415b0 [test] add condition for robustness in some cases 2017-10-23 15:24:39 +02:00
Barend Gehrels
1e0ecf37c7 [test] remove line which was still there unintended 2017-10-23 15:24:10 +02:00
Barend Gehrels
dd6958b903 [test] add last testcase also to intersection/difference 2017-10-23 15:19:13 +02:00
Barend Gehrels
8a1bede41b [test] Add option to recursive_polygons to check area of resulting polygons
(which should normally be >= 0.25)
2017-10-23 15:18:38 +02:00
Barend Gehrels
9024c5f095 [test] Add testcase for incorrectly generated interior ring 2017-10-23 14:57:11 +02:00
Barend Gehrels
433b5fae58 [test] add ticket_12503 to intersection (OK)/difference (failing) 2017-10-23 13:46:39 +02:00
Barend Gehrels
8dee4ab1c8 [is_valid] check reported testcase, it is valid now. Also add it to
union to check the self-intersection-points (which are many)
2017-10-23 13:12:39 +02:00
Barend Gehrels
15b8bcbd79 [test] modify cases for tickets 12751 and 12752 which are (a/b) now
both valid if self-turns are used
2017-10-23 12:19:27 +02:00
Barend Gehrels
704488a731 [test] add last testcase to union/difference too 2017-10-23 12:17:52 +02:00
Barend Gehrels
94ce58de02 [overlay] fix bug in new code, it should check for the operation because
it can happen that union travels to itself and that is irrelevant
2017-10-23 11:26:21 +02:00
Barend Gehrels
38c38397cc [within] remove unused constants 2017-10-23 10:10:16 +02:00
Adam Wulkiewicz
536cd6ab8e [srs][projections] Implement one static aeqd projection instead of two (aeqd and aeqd_guam).
Also fix some calculation-type-related errors.
2017-10-20 21:01:31 +02:00
Adam Wulkiewicz
f7ae50dc4f [test][projections] Modify combined projections test WRT recent changes - one ob_tran projection. 2017-10-20 19:47:38 +02:00
Adam Wulkiewicz
7aac227db8 [srs][projections] Implement one static ob_tran projection instead of two (oblique and transverse). 2017-10-20 19:46:51 +02:00
Adam Wulkiewicz
4605301ea3 [srs][projections] Add create_new() function hiding factory inside. 2017-10-20 19:45:16 +02:00
Barend Gehrels
7ccda4bfc5 [test] add testcases for dissolve, some still failing 2017-10-20 16:34:18 +02:00
Barend Gehrels
36e70aa1ce [dissolve] move/partly enable other testcases 2017-10-20 15:14:57 +02:00
Barend Gehrels
8484bcc923 [test] Move and enable acute/obtuse heptagrams which are fixed now 2017-10-20 15:14:02 +02:00
Barend Gehrels
b39b9a319b [dissolve] reject negative child rings of negative parents (the parents
are reversed later), the same way as positive child rings of positive parents
are removed. This fixes the hexagram case and also dissolve_10 (both ccw)
2017-10-20 15:11:19 +02:00
Barend Gehrels
4382d85fb4 [dissolve] add testcase which is derived from (d) but has another spike,
or is horizontal instead of vertical
2017-10-20 12:48:54 +02:00
Barend Gehrels
13a8d13cb6 [dissolve] fix cases where turns were missed because 1) they were on adjacent
segments and 2) vertical segments were not sectionalized properly for this purpose.
2017-10-20 12:48:13 +02:00
Adam Wulkiewicz
2e4dc6d305 [test][srs] Test inverse transformation and add case. 2017-10-19 22:01:17 +02:00
Adam Wulkiewicz
019f9e720f [srs] In transformation when preparing the range take into account the src projection. Also get projection and parameters once per geometry v.s. once per range. 2017-10-19 22:00:28 +02:00
Barend Gehrels
aa6778e83c [test] dissolve algorithm cannot use bg::correct, because orientation is
unknown and can be wrong. Orientation should not be reversed. Therefore
correct_closure is split of from correct, and can (should) be used to
close the geometries correctly. Only then some cases of dissolve can be
fixed. bg::dissolve can itself not close the rings by design of the library
(it would require drastic changes)
2017-10-19 16:38:49 +02:00
Barend Gehrels
0f098948b2 [wkt] Avoid any breaking change in wkt by using the old default for rings,
and for boxes take by default always all 5 points
2017-10-19 16:36:09 +02:00
Barend Gehrels
38aa0c24a9 [correct] Split off correct_closure from correct
Including unit test
2017-10-19 15:51:43 +02:00
Barend Gehrels
917b18e66c [wkt] apply the wkt change for all geometries instead of only polygon.
This is necessary for the splitted correct_closure algorithm, which needs
an exact WKT representation of its geometry
2017-10-19 15:27:47 +02:00
Barend Gehrels
8069131100 Merge branch 'develop' into feature/dissolve 2017-10-19 10:57:17 +02:00
Adam Wulkiewicz
bc7c37235c [test][srs] Replace printing of results with checks. 2017-10-19 04:36:23 +02:00
Adam Wulkiewicz
bf37d44ad9 [test][srs] Modify (project/srs) transformer test WRT recent changes. 2017-10-19 00:01:51 +02:00
Adam Wulkiewicz
3dedf97bf5 [strategy][transform] Replace project_transformer with srs_transformer. 2017-10-19 00:00:40 +02:00