Commit Graph

8536 Commits

Author SHA1 Message Date
Menelaos Karavelas
424ba7431c [test][iterators][point iterator][segment iterator] apply coding rules;
add test cases for geometries whose point type is a pointer and for geometries
whose range iterators return copies of elements rather than references
2015-05-28 09:40:45 +03:00
Menelaos Karavelas
cf9a691345 [test][test geometries] add implementation of multipoint and linestring
whose iterators return copies (rather than references) to elements
2015-05-28 09:38:11 +03:00
barendgehrels
099652b03c Merge branch 'develop' of github.com:boostorg/geometry into develop 2015-05-27 23:32:15 +02:00
barendgehrels
7ba86400b5 [projections] avoid possibly unitialized value warning 2015-05-27 23:27:40 +02:00
barendgehrels
ce8e702cb6 [projections] remove unused type 2015-05-27 23:27:18 +02:00
barendgehrels
8e9a93e361 [projections] fix d2r in epsg testcode 2015-05-27 23:27:01 +02:00
barendgehrels
ac529bc710 [projections] cast aperture for power (MSVC ambiguity) 2015-05-27 23:22:06 +02:00
barendgehrels
599b7bafb7 [projections] initialize possibly uninitialized variable 2015-05-27 23:21:27 +02:00
barendgehrels
5db1c0216f [projections] initialize possibly uninitialized variable 2015-05-27 23:01:11 +02:00
barendgehrels
dc9cbf1407 [projections] ignore set but unused variable 2015-05-27 23:00:44 +02:00
barendgehrels
355c677f97 [projection] change in generation - move ignore_unused function calls 2015-05-27 22:39:07 +02:00
Adam Wulkiewicz
8730f3741e [policies] Remove obsolete de9im intersection policy. 2015-05-27 15:12:14 +02:00
Adam Wulkiewicz
70acee4e33 [test][strategies] Remove unneeded includes - obsolete de9im intersection policy. 2015-05-27 15:11:28 +02:00
Adam Wulkiewicz
abdf2a2255 [test][iterators] Add missing include (for make_zero). 2015-05-27 14:56:22 +02:00
Adam Wulkiewicz
62f43a5c03 [relate][strategies] Pass StaticMask as function parameter. 2015-05-27 14:04:46 +02:00
barendgehrels
6d9875dda8 [test] fix __gcc__ because that does not exist 2015-05-27 13:11:21 +02:00
barendgehrels
49b37bf4ad [warning] Avoid warning for gcc in svg generation 2015-05-27 13:07:03 +02:00
Menelaos Karavelas
6953933c9b Merge branch 'develop' of https://github.com/boostorg/geometry into fix/ticket_11346 2015-05-27 12:01:12 +03:00
barendgehrels
d506f1645d [buffer] add missing assert 2015-05-27 10:57:07 +02:00
barendgehrels
cdf014e35d [buffer] propagate error information from strategy to buffer inserter 2015-05-27 10:56:56 +02:00
Menelaos Karavelas
585b3bca50 [iterators][segment iterator] fix for boost trac ticket #11346
Problem: segment iterator does not work with point iterators that return
a value instead of a reference when dereferenced.
Fix: check the if the reference type of the point iterator is indeed a
reference or not and use a pointing_segment or a segment as the value type
of the segment iterator, respectively.
2015-05-27 09:19:08 +03:00
Adam Wulkiewicz
ac70187c37 Merge pull request #288 from awulkiew/feature/relate
Feature: New algorithms relate() and relation()
2015-05-26 17:27:52 +02:00
Adam Wulkiewicz
593521980a Merge branch 'develop' into feature/relate
Conflicts:
	doc/release_notes.qbk
2015-05-26 17:26:38 +02:00
Adam Wulkiewicz
3893f2085b Merge branch 'feature/relate' of github.com:awulkiew/geometry into feature/relate 2015-05-26 17:19:58 +02:00
Adam Wulkiewicz
7c7653a980 [doc] Update 1.59 release notes (relate added). 2015-05-26 17:19:45 +02:00
Adam Wulkiewicz
79561464bf [relate] Change the order of template parameters (Mask at the end) and remove the mask default parameter. 2015-05-26 17:15:03 +02:00
Adam Wulkiewicz
1df894c44a [centroid][test] Update copyrights. 2015-05-26 00:44:56 +02:00
Adam Wulkiewicz
9f5608d5e9 [test][centroid] Add test for very long Linestring for which the centroid cannot be calculated. 2015-05-25 15:25:30 +02:00
Adam Wulkiewicz
a7d8da4249 [centroid][strategies] Avoid filling centroid with NaN coordinates.
Check the intermediate results using math::isfinite().

Calculate the output directly using the distance_type/calculation_type
and casting at the end, without converting intermediate results to
coordinate_type.
2015-05-25 15:19:42 +02:00
Adam Wulkiewicz
9aa2e642ee [test][math] Add tests for math::equals(). 2015-05-24 14:27:22 +02:00
Adam Wulkiewicz
1bff0ad9e9 [math] Fix equals() for INF and -INF. 2015-05-24 14:26:53 +02:00
Adam Wulkiewicz
b9ee6f0d51 [math] Include missing header and add missing namespace. 2015-05-24 13:48:22 +02:00
barendgehrels
ad088fcf02 [buffer] stop in case of numeric errors in side strategy 2015-05-24 11:22:45 +02:00
barendgehrels
62fa2ccc59 [buffer][test] fix commented section (distance_left) 2015-05-23 23:46:14 +02:00
barendgehrels
1eacb2c096 [buffer][test] fix alternate box setting 2015-05-23 23:45:48 +02:00
barendgehrels
5370e2494d [buffer][math] check for inf when checking on equals
This fixes an error in buffer for geometries with extreme coordinate differences
(though the generated buffer is not correct then)
2015-05-23 23:45:24 +02:00
barendgehrels
2227c30bb4 [buffer] check return value of iterate to avoid using uninitialized points
if iterate fails (this can happen by extreme differences in coordinates)
2015-05-23 22:40:48 +02:00
Menelaos Karavelas
b0290dd8e7 [geometries][helper geometry] add comment about the specialization of default_units
for the Cartesian coordinate system
2015-05-23 00:28:44 +03:00
Menelaos Karavelas
e58f535918 [views][indexed_point_view] fix namespace issue appearing in assign unit test:
Problem: the compiler sees detail::indexed_point_view used inside the traits namespace
and looks it up in traits::detail namespace;
Fix: qualify detail::indexed_point_view with geometry namespace
2015-05-22 10:08:48 +03:00
Menelaos Karavelas
2deae95273 Merge branch 'develop' of https://github.com/boostorg/geometry into feature/envelope_and_expand_for_spherical_cs 2015-05-22 10:06:35 +03:00
Menelaos Karavelas
144fca31b8 [algorithms][envelope][expand] replace use of convert_units<> by bg::transform() 2015-05-22 09:52:24 +03:00
Menelaos Karavelas
24c394454f [test][algorithms][expand] rearrange and cleanup code; allow for two possible MBRs as output 2015-05-22 09:48:29 +03:00
Menelaos Karavelas
6c77395443 [test][algorithms][envelope] rearrange and clean up code 2015-05-22 09:48:04 +03:00
Adam Wulkiewicz
3c958e4200 [buffer][strategies] Replace metafunction pow and divisions with bitwise shifts. 2015-05-20 19:27:10 +02:00
Adam Wulkiewicz
a9f1e7fc3d [buffer][strategies] Fix multiplicable_integral::operator<. 2015-05-20 17:58:53 +02:00
Adam Wulkiewicz
7ffd9d32b2 Merge pull request #297 from awulkiew/fix/buffer
Buffer fixes.
2015-05-20 17:19:23 +02:00
barendgehrels
8f46b81dfa [projections] Ignore unused static functions 2015-05-20 16:57:03 +02:00
Adam Wulkiewicz
c5dd2fd613 [buffer][strategies] Improve style and add comments to multiplicable_integral used in side_of_intersection. 2015-05-20 16:52:59 +02:00
barendgehrels
9ed1ad8445 [buffer][fix] Fix creating ring_properties which are unassigned 2015-05-20 16:28:27 +02:00
barendgehrels
106f7258f6 [Projections] Change in generation (whitespace, comments) 2015-05-20 14:31:52 +02:00