Adam Wulkiewicz
ca55981928
[strategies] Enable within/covered_by default_strategy for MultiPoints.
2017-04-24 19:43:01 +02:00
Adam Wulkiewicz
577080d0c9
[test][projections] Add project_transformer test.
2017-04-23 03:53:38 +02:00
Adam Wulkiewicz
312476bfbc
[projections][strategies] Update/improve project_transformer strategy.
...
- Implement 3 transformers:
* project_transformer automatically choosing forward/inverse projection.
* project_forward_transformer
* project_inverse_transformer
- Use new projection<> interface and support the same parameters.
- Move all transform strategies into one file and put them in
bg::strategy::transform namespace.
2017-04-23 03:48:05 +02:00
Adam Wulkiewicz
d9fe6d7cd3
[projections] Copy higher dimensions in projection<> forward/inverse.
2017-04-23 03:47:45 +02:00
Adam Wulkiewicz
fc88955d94
[projections] Revert comments to original format, broken by autoformatting.
2017-04-23 00:06:42 +02:00
Adam Wulkiewicz
e3922dd781
[test][projections] Update namespaces.
2017-04-22 23:38:34 +02:00
Adam Wulkiewicz
ddce41f2c5
[projections] Move back the internal projections representations into bg::projections namespace from bg::projections::detail namespace.
2017-04-22 23:37:47 +02:00
Adam Wulkiewicz
46b3b33618
[test][projections] Update tests WRT recent changes in the interface (namespaces).
2017-04-22 03:48:53 +02:00
Adam Wulkiewicz
29853b4b91
[projections] Change the interface (namespaces) and relocate parts of the code.
...
The interface:
- boost::geometry::projection<>
- boost::geometry::proj_exception
- boost::geometry::srs::dynamic
- boost::geometry::srs::proj4
- boost::geometry::srs::epsg
- boost::geometry::srs::static_proj4<>
- boost::geometry::srs::static_epsg<>
- boost::geoemtry::srs::proj::*
- boost::geometry::srs::ellps::*
2017-04-22 03:42:31 +02:00
Adam Wulkiewicz
207549e474
[test][strategies] Add test cases for distance::geographic and side::geographic strategies.
2017-04-22 02:21:42 +02:00
Adam Wulkiewicz
73beed3ee9
[test][formulas] Update includes after moving srs from core.
2017-04-22 02:20:46 +02:00
Adam Wulkiewicz
26fcc420c4
[core][srs][geometry] Move srs::spheroid and srs::sphere from core/ to srs/ directory.
2017-04-22 02:19:27 +02:00
Adam Wulkiewicz
87f9e715cd
[doc] Update 1.64 release notes (ticket).
2017-04-20 19:03:08 +02:00
Adam Wulkiewicz
e59931473a
[test][correct] Add missing copyright notes.
2017-04-20 19:02:45 +02:00
Adam Wulkiewicz
dce086ae72
[test][correct] Add test for spherical and geographic polygons and rings.
2017-04-20 18:59:52 +02:00
Adam Wulkiewicz
2ee61129a2
[test][projections] Update tests WRT recent changes of the interface.
2017-04-20 17:08:01 +02:00
Adam Wulkiewicz
c6663973fd
[projections] Replace point types tparams LL and XY with one CalculationType tparam.
...
- CalculationType is double by default.
- Integral fundamental types and float are promoted to double.
- Pass Parameters type into the internals properly - remove default tparam
projections::parameters.
2017-04-20 17:03:34 +02:00
Barend Gehrels
7d17bd1e8a
Merge branch 'develop' into feature/intvalid
2017-04-20 15:35:34 +02:00
Barend Gehrels
feae471d71
[overlay] Add missing include
2017-04-20 13:17:09 +02:00
Barend Gehrels
dfbb2604bd
[sort_by_side] pass OverlayType (TODO item necessary to correctly
...
handle self-turns)
2017-04-20 12:50:16 +02:00
Barend Gehrels
a3b66db830
[test] Commit pending work, add optional SVG for sort by side tests
2017-04-20 12:30:53 +02:00
Barend Gehrels
f40793ab03
[test] Fix include/copyright
2017-04-20 12:00:32 +02:00
Barend Gehrels
081860e8dd
[sort_by_side] fix (rare) cases where two froms arrive at a turn,
...
but only one leaves the next turn. This simplifies state to just a boolean.
This fixes cases like case_recursive_boxes_46 for union
2017-04-19 16:32:40 +02:00
Barend Gehrels
d1fafacb10
[test] minor, remove spurious comma
2017-04-19 16:15:19 +02:00
Barend Gehrels
2e22bb16e0
[test] Add a basic unit test for sort_by_side (the other version
...
applies more or less a trick
2017-04-19 16:14:39 +02:00
Adam Wulkiewicz
608bb6a9c9
[test][projections] Update tests WRT recent changes.
2017-04-18 23:11:37 +02:00
Adam Wulkiewicz
4323322472
[projections] Remove explicit keyword from projection<> ctors to allow simpler initialization.
2017-04-18 23:07:46 +02:00
Adam Wulkiewicz
be9f31c6b8
[projections] Improve consistency of dynamic and static projections.
...
- Initialize default parameters of 3 projections in both static and
dynamic versions. In static version use projection tags in conditions.
- Add missing lagrng proj. default and WGS84 ellipsoid default to make it
consistent with the original Proj4.
- In static version initialize ellipsoid Proj4 params directly from passed
object instead of string parameters.
- Move proj4, epsg, static_proj4 and static_epsg to parameters.hpp
- Remove projections::init() functions.
2017-04-18 23:04:12 +02:00
Adam Wulkiewicz
3089f4d1a4
[projections] In projection<> improve creation of dynamic projection and use detail::pj_init_plus() internally.
2017-04-18 18:21:05 +02:00
Adam Wulkiewicz
5ee0aed7f6
[projections] Derive proj_exception from geometry::exception and override what() function.
2017-04-18 18:19:49 +02:00
Adam Wulkiewicz
2254d869a2
[projections] Throw exception in projection<> ctor if dynamic projection is not created correctly.
2017-04-18 17:54:47 +02:00
Adam Wulkiewicz
66d62330d9
[test][projections] Update tests WRT recent changes in the interface.
2017-04-18 17:46:23 +02:00
Adam Wulkiewicz
29e059ae5d
[projections] Add static ellps definitions and fix error in static proj4 projection<>.
2017-04-18 17:45:37 +02:00
Adam Wulkiewicz
02cf69fdfb
[core] In radius_access change assertion to Dim < 3 for both sphere and spheroid.
2017-04-18 17:44:21 +02:00
Adam Wulkiewicz
6d478e1489
[projections] Specialize epsg_traits for all already implemented run-time EPSG codes.
...
- Add specializations into epsg_traits.hpp file.
- Remove specializations from proj/*.hpp files
- Add macro simplifying the specialization
- Remove Point types and Params template parameters from epsg_traits, take
only EPSG.
- in epsg_traits define proj4 projection tag and SRS sphere/spheroid tag
- in projection<> use these to get the static projection
2017-04-18 03:50:15 +02:00
Adam Wulkiewicz
8af802f3ff
[extensions][projections] Add static tags for all projections.
2017-04-18 02:45:17 +02:00
Adam Wulkiewicz
452bc359d9
[extensions][test][projections] Add test of new interface.
2017-04-17 16:16:34 +02:00
Adam Wulkiewicz
eab7a82880
[extensions][projections] Implement new projection interface.
...
- Use projections::projection<> as a general projection representation
both compile-time and run-time.
- Add proj4, epsg, static_proj4, static_epsg parameters passable into
projection<> either as ctor parameter or template parameter and
defining type of projection and parameters.
- Don't require creation of factory or proj4 parameters explicitly in the
code.
- In the implementation of tmerc projection add specializations of newly
added traits for getting compile-time projection implementation from
projection tag and SRS model.
- Derive dynamic projections from base_v<> type instead of projection<>.
2017-04-17 16:08:50 +02:00
Adam Wulkiewicz
095b4f33c9
[extensions][test][dissolve] Add failing cases.
2017-04-14 15:30:17 +02:00
Adam Wulkiewicz
2a3cb7b951
[test][intersection][union] Add cases where all points of g1 are the same as some points of g2.
2017-04-14 14:40:52 +02:00
Adam Wulkiewicz
2780c9dc28
[overlay] In select_rings/update_ring_selection use within instead of covered_by. This fixes dissolve.
2017-04-14 14:40:03 +02:00
Adam Wulkiewicz
f428b9cc8f
[extensions][dissolve] Pass strategies into the overlay internals and envelope.
2017-04-14 03:59:45 +02:00
Adam Wulkiewicz
87a1a941f2
Merge branch 'develop' into feature/geographic
2017-04-14 01:39:05 +02:00
Adam Wulkiewicz
dc8ff59096
[extensions][dissolve] Add support for intersection strategy.
2017-04-14 01:07:30 +02:00
Adam Wulkiewicz
6586f6e7b7
[overlay][buffer][test] Use within/covered_by and envelope strategies.
...
- Pass intersection strategy into range_in_geometry and internally get
point_in_geometry strategy.
- Add required intersection strategy passing into overlay and buffer
internals.
- Use envelope strategy in assign_parents.
2017-04-11 00:24:21 +02:00
Adam Wulkiewicz
354ce9a376
[overlay][follow] Check covered_by with strategy.
2017-04-11 00:23:33 +02:00
Adam Wulkiewicz
02f149f012
[is_valid] Check point in polygon exterior ring with strategy.
2017-04-11 00:19:57 +02:00
Adam Wulkiewicz
94cc0c6eab
Merge branch 'cherries'
...
Fix for ticket 11899 boost::geometry::equals doesn't handle open polygons.
2017-04-10 11:40:30 +02:00
Adam Wulkiewicz
4f27e24bbb
[doc] Update 1.64 release notes (ticket).
2017-04-09 16:20:53 +02:00
Adam Wulkiewicz
60c83aca31
[equals][test] Make collect_vectors Ring-order-invariant with normalized_view.
2017-04-09 16:20:42 +02:00