Commit Graph

4980 Commits

Author SHA1 Message Date
Adam Wulkiewicz
855d5d9c2f [test][relate] Rename test file relate_pointlike_xxx.cpp to relate_pointlike_geometry.cpp 2015-05-13 17:53:58 +02:00
Adam Wulkiewicz
605031528d [relate] Fix style according to guidelines and remove unused code/comment. 2015-05-13 17:52:42 +02:00
Adam Wulkiewicz
2c3ad250e0 [doc] Small changes - indentation in Doxyfile and copyright in example. 2015-05-13 17:51:17 +02:00
Adam Wulkiewicz
e5a6e90280 [relate][strategies] Improve the consistency of implementation and style.
Rename relate_base to relate_impl.
Rename base_t to base_type.
Implement all predefined static masks as metafunction taking two
Geometries (consistency).
Add comments about reasons of commenting out some parts of the code.
2015-05-12 13:53:19 +02:00
Adam Wulkiewicz
8ad46080d5 Merge branch 'feature/relate' of github.com:awulkiew/geometry into feature/relate
Conflicts:
	doc/reference/algorithms/relate.qbk
	doc/reference/algorithms/relation.qbk
2015-05-01 17:45:08 +02:00
Adam Wulkiewicz
c3e9727247 [test][relate] Add the tests for run-time mask. 2015-05-01 17:28:28 +02:00
Adam Wulkiewicz
cb494c9a16 [relate] Fix run-time mask ctor taking a string and add another one.
The fix - prevent overflow.
New ctor taking zero-terminated string.
Furthermore add doxygen documentation for the matrix member functions.
2015-05-01 17:23:58 +02:00
Adam Wulkiewicz
45dc5fd0e4 [doc] Add documentation and examples for relate() and relation() algorithms.
Add also documentation for DE-9IM classes.
2015-05-01 16:49:11 +02:00
Adam Wulkiewicz
282839501d [doc] Add documentation and examples for relate() and relation() functions. 2015-05-01 03:05:48 +02:00
Adam Wulkiewicz
85bcc0c51a [relate] Add relate() and relation() to geometry.hpp
Also adjust doxygen groups.
2015-05-01 02:55:25 +02:00
Adam Wulkiewicz
b05ccb660b [test][relate] Add tests for variants. 2015-05-01 02:22:14 +02:00
Adam Wulkiewicz
a461336ca2 [relate] Add variant support for relate() and relation(). 2015-05-01 02:20:30 +02:00
Adam Wulkiewicz
de60ed8ac3 [test][relate] Update the tests to reflect the changes in the code. 2015-05-01 01:33:39 +02:00
Adam Wulkiewicz
18cb2fe330 [relate] Divide relate() and relation() code into interface and implementation.
Separate the optional code, place it in the details.
2015-05-01 01:30:46 +02:00
Adam Wulkiewicz
7eab5672fa [relate] Move DE9IM-related code into separate file (de9im.hpp).
Move predefined static masks to namespace detail::de9im.
2015-04-30 18:50:12 +02:00
Adam Wulkiewicz
35099ca82f [test][relate] Adjust the test according to the changes in relate().
Moved/renamed function, added namespaces.
2015-04-30 16:49:03 +02:00
Adam Wulkiewicz
a7fee32a7e [relate] Move relate() code from details and refactor the code.
- Move relate() to geometry namespace and change its purpose slightly - always require a mask and check a relation.
- Implement relation() function returning a matrix (previously relate() did it).
- Move/rename matrix9, mask9 and static_mask to de9im::matrix, de9im::mask and de9im::static_mask respectively.
- Implement logical ORing of static masks with operator||
- Remove or comment-out unneeded code (e.g. comment out the unused de9im struct defined in overlay)
2015-04-30 16:39:37 +02:00
Adam Wulkiewicz
c46eef0659 Merge pull request #284 from mkaravel/feature/add_two_pi_and_half_pi_constants
Add two-pi and half-pi constants
2015-04-28 14:00:26 +02:00
Adam Wulkiewicz
0c59d13c75 Merge pull request #285 from mkaravel/fix/use_disjoint_point_point_in_wkt_write
Reduce dependency on geometry::disjoint algorithm
2015-04-27 16:55:43 +02:00
Adam Wulkiewicz
6594032e96 Merge pull request #286 from mkaravel/fix/update_reference_url
[strategies][spherical][area][huiller] update the URL for one of the references
2015-04-27 16:54:15 +02:00
Menelaos Karavelas
70cc7fdb47 [strategies][spherical][area][huiller] update the URL for one of the references 2015-04-27 17:47:29 +03:00
Menelaos Karavelas
914c2e5f80 [io][wkt] reduce dependency on geometry::disjoint algorithm by calling
detail::disjoint::disjoint_point_point
2015-04-27 15:07:33 +03:00
Menelaos Karavelas
7031e84c95 [extensions][ttmath] fix wrong definition of pi and half-pi for ttmath::Big<> 2015-04-27 13:44:15 +03:00
Menelaos Karavelas
3800cb4830 [strategies][spherical][area] use math::two_pi<>() and math::half_pi<>()
instead of computing them from math::pi<>()
2015-04-27 12:48:47 +03:00
Menelaos Karavelas
d895a12b96 [strategies][cartesian][buffer] use math::two_pi<>() instead of computing it from math::pi<>() 2015-04-27 12:48:02 +03:00
Menelaos Karavelas
1c3fba8b54 [extensions][ttmath] add specializations for define_two_pi and define_half_pi 2015-04-27 12:43:05 +03:00
Menelaos Karavelas
5c13b26592 [util][math] add free functions for recovering 2*pi and pi/2 2015-04-27 12:41:51 +03:00
Adam Wulkiewicz
bc894a7971 [doc] Update 1.59 release notes (ticket). 2015-04-26 01:17:10 +02:00
Adam Wulkiewicz
07c8b24b89 [extensions][test] Enable the testing of IOs. 2015-04-26 01:05:26 +02:00
Adam Wulkiewicz
105886e991 Merge pull request #283 from awulkiew/fix/arithmetic
Fix point arithmetic functions and centroid
2015-04-26 00:55:12 +02:00
Adam Wulkiewicz
a48df2a153 [extensions][wkb] Improve the coding style according to guidelines.
- use full names
- improve the indentation of template parameters lists
- comment-out the unused parameters names
2015-04-26 00:46:10 +02:00
Adam Wulkiewicz
ed7dc5f1df [arithmetic] Improve style according to guidelines.
- names
- lines length
2015-04-25 16:36:59 +02:00
Barend Gehrels
e4d49f1302 [projections] update to 4.9.1 (rest, no changes)
and removed some trailing spaces
2015-04-25 16:06:58 +02:00
Barend Gehrels
0e3ea68f54 [projections] add qsc from proj 4.9.1 2015-04-25 15:40:45 +02:00
Barend Gehrels
8c6b79b97e [projections] Upgrade to proj 4.9.1 for aeqd, geos, omerc
This does not need changes in unit tests.
2015-04-25 13:26:57 +02:00
Barend Gehrels
5c5ac136a7 [projections][aitoff] go to proj 4.9.1 which adds an invert projection for aitoff
includes unit test
2015-04-25 13:19:48 +02:00
Barend Gehrels
6877796160 Merge branch 'develop' of github.com:boostorg/geometry into develop 2015-04-25 13:16:39 +02:00
Adam Wulkiewicz
51037d1246 [test][centroid] Add tests for Geom using INT coords and centroid using FP. 2015-04-24 17:22:54 +02:00
Adam Wulkiewicz
42d56f6116 [util][arithmetic] Fix a bug in point arithmetic operations.
Use more precise type for the calculation of the result.
Previously the type of the second operand was always used.
2015-04-24 17:20:15 +02:00
Adam Wulkiewicz
65fbdfff51 Merge pull request #282 from awulkiew/fix/wkb
[extensions][wkb] Fix GCC compilation errors and warnings.
2015-04-24 15:12:57 +02:00
Adam Wulkiewicz
904ac9fc6c [extensions][test] Comment out unused local types. 2015-04-24 13:28:38 +02:00
Adam Wulkiewicz
0f62bdc57e [extensions][wkb] Fix access to polygon rings + style changes.
Use return type (a reference) instead of copying rings.

Furthermore improve the code according to guidelines:
- put const keyword after the type
- take care about lines length
- add copyright notes
2015-04-24 13:23:24 +02:00
Adam Wulkiewicz
ed52199def [extensions][wkb] Fix GCC compilation errors and warnings. 2015-04-23 23:28:37 +02:00
Barend Gehrels
623a488abd [projections] ONLY: use boost::ignore_unused now 2015-04-23 19:42:01 +02:00
Barend Gehrels
6b3996da01 [projections] ONLY: updated copyright message 2015-04-23 19:32:17 +02:00
Barend Gehrels
0882d5adfc [projections] ONLY: fixed withspace 2015-04-23 19:27:02 +02:00
Adam Wulkiewicz
9bc8baaa3b [extensions][test] Enable io/wkb testing, replace uses of cout with Test macros. 2015-04-23 17:42:53 +02:00
Adam Wulkiewicz
98aa98eedf Merge pull request #255 from mkaravel/feature/disjoint
Feature/disjoint: implement disjoint for multipoint/[multi]linestring
2015-04-23 17:23:05 +02:00
Adam Wulkiewicz
fbc453bb20 Merge pull request #145 from Norkart/add_wkb
Add support for writing geometries to WKB
2015-04-23 17:21:46 +02:00
Menelaos Karavelas
caf2dc7951 [test][algorithms][disjoint] add a few more test cases for disjoint(point, segment) 2015-04-23 10:06:00 +03:00