Commit Graph

8536 Commits

Author SHA1 Message Date
Barend Gehrels
713679f0d0 [overlay] add comment 2017-05-20 17:30:52 +02:00
Barend Gehrels
d4ce96df48 [test] Add testcase 131 (fixed) and 132 (still unclear) 2017-05-20 17:30:25 +02:00
Barend Gehrels
0de898a004 [union] Fix select_source for self_turn, it should use multi_index 2017-05-20 15:54:57 +02:00
Adam Wulkiewicz
b75c22b567 [test][srs] Add projection<> interface test including geometries other than point. 2017-05-19 15:15:56 +02:00
Adam Wulkiewicz
3c1fa1e316 [srs] Support all geometries in projection<>, add concepts and dimension check. 2017-05-19 15:14:50 +02:00
Adam Wulkiewicz
d755045f45 [test][srs] Catch projection_exception instead of proj_exception. 2017-05-17 21:44:18 +02:00
Adam Wulkiewicz
048d3fe53b [srs] Rename proj_exception to projection_exception and use BOOST_THROW_EXCEPTION.
- Rename exception
- Replace throw keyword with BOOST_THROW_EXCEPTION.
- Rethrow with BOOST_RETHROW
2017-05-17 21:39:33 +02:00
Adam Wulkiewicz
4b46351890 [srs] Add missing proj_exception codes in projections.
In some places reformat code around to match Proj4 code.
2017-05-17 20:35:23 +02:00
Adam Wulkiewicz
6002b55607 [srs] Add return statement in base_t_f::inverse to suppress warning. 2017-05-17 20:33:05 +02:00
Barend Gehrels
2ebf8b7fe1 [test] add test for union needing self-turns. It is still failing. 2017-05-17 20:32:17 +02:00
Adam Wulkiewicz
5a7650b3b5 [test][srs] Add error handling cases to projection_interface test. 2017-05-17 17:43:46 +02:00
Adam Wulkiewicz
d9cd15e94f [srs] Improve compile- and run-time error handling.
- Show static mpl assert message if static projection is not invertible.
- Throw exception in dynamic not implemented inverse projection.
- Add 3 new exception types and throw them if:
  - projection id is not specified
  - unkown projection id is passed
  - projection is not invertable
2017-05-17 17:38:25 +02:00
Adam Wulkiewicz
7be1af9cbc [test][srs] Update expected coordinates in projections test wrt recent fixes. 2017-05-17 01:43:16 +02:00
Adam Wulkiewicz
51c1c5c4d4 [test][srs] Add cases for projections p* - w* (converted selftests from Proj4).
Add code checking difference between Boost.Geometry and Proj4, guarded by ifdef.
2017-05-17 01:21:24 +02:00
Adam Wulkiewicz
08500cfc18 [srs] Check validity of +n parameter in urm5 projection. 2017-05-17 01:20:10 +02:00
Adam Wulkiewicz
32a8a0a451 [srs] Fix bug with stereographic projection at equator that multiplied equatorial coordinates by 2 (after Proj4). 2017-05-17 01:18:44 +02:00
Adam Wulkiewicz
b4aab6bccd [srs] Add exceptions in robin projection and pass error code to existing ones. 2017-05-17 01:17:10 +02:00
Adam Wulkiewicz
52a6e508a8 [srs] In pj_inv() replace fabs() with bg::math::abs(). 2017-05-17 01:15:04 +02:00
Adam Wulkiewicz
02d57ff52c [srs] Differentiate between proj. not specified and unknown (different exception code/msg). 2017-05-17 01:14:04 +02:00
Adam Wulkiewicz
267da8d557 [test][srs] Add cases for projections m*, n*, o* (converted selftests from Proj4). 2017-05-16 15:13:40 +02:00
Adam Wulkiewicz
bbad83ea5d [srs] Fix scaling bug in ocea projection, as fixed in Proj4. 2017-05-16 15:12:41 +02:00
Adam Wulkiewicz
959d6e7a2e [test][srs] Add cases for projections i*, k*, l* (converted selftests from Proj4). 2017-05-16 02:29:15 +02:00
Adam Wulkiewicz
9e3c314aa7 [test][srs] Add cases for projections f*, g*, h* (converted selftests from Proj4). 2017-05-16 01:36:25 +02:00
Adam Wulkiewicz
59f4800d79 [srs] Add missing inverse to hammer projection. 2017-05-16 01:34:51 +02:00
Adam Wulkiewicz
2f25e5af13 [test][srs] Add projection selftest cases converted from original Proj4 (projections c*, d*, e*). 2017-05-16 00:36:27 +02:00
Adam Wulkiewicz
c2b45bd9ab [test][srs] Add projection selftest cases converted from original Proj4 (currently only for projections a*, b*). 2017-05-15 22:46:01 +02:00
Adam Wulkiewicz
70d3cf13ea [srs] Support various calc. types in projections p*, q*, r*, s*, u*, v*.
Add needed constants.
2017-05-15 01:02:31 +02:00
Adam Wulkiewicz
f20f3a4a51 [srs] Support arbitrary calc. type in projections n*, o*.
Add const keywords to arguments of pj_zpoly1*.
2017-05-14 21:40:31 +02:00
Adam Wulkiewicz
6e4f66e0f4 [srs] Support various calc. types in projections k*, l*.
Add needed constants.
2017-05-14 17:57:21 +02:00
Adam Wulkiewicz
c2141ad367 [srs] Support arbitrary calc. type in projections i*, m*, t*, w*.
Add proj_exception ctor taking message.
Add needed constants.
2017-05-14 17:15:00 +02:00
Barend Gehrels
81977f07e6 [overlay] handle ii turn colocated with ux in the same way as with uu 2017-05-13 18:15:00 +02:00
Barend Gehrels
9705fce852 [test] adapt testcase #case_recursive_boxes_14_invalid 2017-05-13 17:55:18 +02:00
Barend Gehrels
6ddcf4269b [overlay] discard uu selfturns for unions, and ii selfturns for differences 2017-05-13 17:54:24 +02:00
Barend Gehrels
1b20673a1d [intersection] fix cases with self-turns for intersections 2017-05-13 14:51:06 +02:00
Adam Wulkiewicz
086f26650e [srs] Support arbitrary calc. type in projections starting at letters a-h.
Also add/remove common constants.
2017-05-13 04:22:54 +02:00
Adam Wulkiewicz
dcb3e6096f [srs] Add math constants (function templates) used in projections to common file projects.hpp 2017-05-12 18:26:13 +02:00
Adam Wulkiewicz
ba0b7f52d0 [equals] Fix word in comment. 2017-05-12 01:04:07 +02:00
Adam Wulkiewicz
7ac3094416 [srs] Support arbitrary calc. type in all projections/impl functions. 2017-05-11 23:13:11 +02:00
Adam Wulkiewicz
10b3cf81ca [test][srs] Update static projections test WRT recent changes (templated parameters). 2017-05-11 18:15:13 +02:00
Adam Wulkiewicz
12e07074bd [srs] Support any calculation type in projection parameters and several other internals. 2017-05-11 18:14:38 +02:00
Vissarion Fysikopoulos
bc63ad29af [disjoint] fix review comments 2017-05-11 11:42:22 +03:00
Adam Wulkiewicz
1dad53a4b6 [srs] Fix implicit int to bool warning in aeqd projection. 2017-05-10 21:03:20 +02:00
Adam Wulkiewicz
528270a68f [srs] Finish boostifying recently added code (add inline keywords, change macros to functions, etc.). 2017-05-10 21:02:50 +02:00
Adam Wulkiewicz
358e22d4f6 [srs] Add support for Proj4 vunits/vto_meter (vertical scaling) and lon_wrap. 2017-05-10 19:29:24 +02:00
Barend Gehrels
e2292d4881 Merge branch 'develop' into feature/intvalid 2017-05-10 19:20:08 +02:00
Adam Wulkiewicz
bef6c5bb96 Merge branch 'develop' into feature/relops_multi_point
Conflicts:
	include/boost/geometry/algorithms/intersects.hpp
	include/boost/geometry/algorithms/touches.hpp
2017-05-10 15:30:27 +02:00
Barend Gehrels
74025f9c2d Merge branch 'feature/discardii' into develop 2017-05-10 15:05:55 +02:00
Barend Gehrels
2114c3f7b6 [traverse] remove unintended committed code 2017-05-10 15:04:46 +02:00
Barend Gehrels
a940fac08c Merge branch 'feature/discardii' into develop 2017-05-10 15:03:13 +02:00
Barend Gehrels
4b524fc7ac [union] set visited in clusters, like done in intersection. But now
use rank instead of next ip, which was a TODO item.
This causes one unittest case to fail, which has another reason, its turn
in a cluster is not detected because of finalization information. That is
now solved in a different way.
2017-05-10 14:06:45 +02:00