Commit Graph

3032 Commits

Author SHA1 Message Date
Adam Wulkiewicz
ed7dc5f1df [arithmetic] Improve style according to guidelines.
- names
- lines length
2015-04-25 16:36:59 +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
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
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
7bd759dd0b [algorithms][disjoint] replace detail::disjoint::disjoint_point_segment
by detail::disjoint::reverse_covered_by
2015-04-23 10:04:50 +03:00
Menelaos Karavelas
be910c04e2 Merge branch 'develop' of https://github.com/boostorg/geometry into feature/disjoint
Conflicts:
	doc/release_notes.qbk
2015-04-23 09:47:46 +03:00
Mats Taraldsvik
fb057e0832 [extensions][wkb] Support writing geometries to WKB format
Adds support for writing geometries to WKB format. This adds support for
writing point, linestring and polygon.
2015-04-23 08:11:28 +02:00
Mats Taraldsvik
ea22fa9540 [extensions][wkb] Change handling of wkb geometry_type to be more generic
The geometry type is changed to be more flexible
and able to handle multiple formats and different
dimensions in the future.
2015-04-23 08:11:15 +02:00
Barend Gehrels
52a27831f7 Merge branch 'develop' of github.com:boostorg/geometry into develop 2015-04-22 16:36:23 +02:00
Barend Gehrels
cb7521056f [projections] use proj4 4.8, changes in projection Robin 2015-04-22 16:36:08 +02:00
Barend Gehrels
8a66ade71a [projections] commit changes for new generation (minor code changes) 2015-04-22 15:54:04 +02:00
Barend Gehrels
aa1ec1c832 [projections] commit changes for new generation (comments only) 2015-04-22 15:53:29 +02:00
Barend Gehrels
3b79baadba [projections] commit changes for new generation (whitespace only) 2015-04-22 15:53:07 +02:00
Adam Wulkiewicz
34bdc44b10 [geometries] Rename magic names into more meaningful ones. 2015-04-22 15:19:28 +02:00
Adam Wulkiewicz
86df91ed56 [geometries] Implement detection of access to uninitialized or destroyed point/box. 2015-04-21 21:26:48 +02:00
Adam Wulkiewicz
34dba9be85 [geometries][doc] Add examples to descriptions of all geometries models. 2015-04-09 23:39:58 +02:00
Adam Wulkiewicz
c8d97f0528 [doc][geometries] Add example for model::box. 2015-04-09 21:48:06 +02:00
Adam Wulkiewicz
80fe541815 [geometries] Make the default ctor of non-complex geometries default function if possible. 2015-04-09 17:02:29 +02:00
Adam Wulkiewicz
bbb69c92f7 [geometries] Small compile-time check consistency improvement.
Add Point concept check to segment.
Move DimensionCount check from constructor to the body of a point class
and use MPL_ASSERT_MSG instead of STATIC_ASSERT.
2015-04-09 16:48:17 +02:00
Adam Wulkiewicz
aa58f4a022 [geometries][doc] Improve the description of constructors of non-complex geometries.
Add missing descriptions.
Unify the non-initializing default constructors descriptions.
2015-04-09 16:25:59 +02:00
Adam Wulkiewicz
e29125aff2 [geometries] Enable the support for std::initializer_list. 2015-04-09 16:15:23 +02:00
Adam Wulkiewicz
dcce545efb Merge pull request #277 from awulkiew/fix/sunos
Workarounds for SunOS
2015-04-08 17:23:53 +02:00
Adam Wulkiewicz
fccb4543a3 [iterators] Remove unneeded else branch in flatten_iterator. 2015-04-08 14:20:20 +02:00
Adam Wulkiewicz
65fa7653ba [algorithms][distance][is_valid] Explicitly get const iterators. 2015-04-08 14:18:40 +02:00
Adam Wulkiewicz
3507106295 Merge pull request #244 from mkaravel/fix/make_partition_work_for_forward_ranges
Fix: make partition work for forward ranges
2015-04-06 14:12:43 +02:00
Adam Wulkiewicz
2b11233f00 Merge pull request #264 from mkaravel/fix/remove_deprecated_include_paths
Fix: remove deprecated include paths
2015-04-06 01:32:39 +02:00
Adam Wulkiewicz
6da360ee70 Merge pull request #278 from awulkiew/fix/cs
Rename occurrences of CS in extensions.
2015-04-05 02:26:27 +02:00
Adam Wulkiewicz
5a611caee2 Merge pull request #269 from mkaravel/feature/support_for_fmod
Feature : support for fmod free function from within the math namespace
2015-04-05 01:46:19 +02:00
Adam Wulkiewicz
5d714f94e2 [index][doc] Improve the description of iterator and query related functions.
Add info about the iterator category.
Add more examples.
Add missing doxygen groups for free functions.
2015-04-04 19:53:34 +02:00
Adam Wulkiewicz
34066a4796 [index] Add begin() and end() functions returning const_iterator to the rtree.
Adapt the rtree to the Boost.Range concept.
Tweek the description of functions.
2015-04-04 18:21:52 +02:00
Adam Wulkiewicz
7277f1f38b [index] Upgrade the category of query iterators to ForwardIterator. 2015-04-04 18:21:12 +02:00
Adam Wulkiewicz
5a3b023fc8 [extensions][projections] Rename CS constants to CS_ (and CN to CN_ for consistency). 2015-04-02 03:24:00 +02:00
Adam Wulkiewicz
9c7659c955 [extensions][gis][strategies] Rename CS template parameter to CoordinateSystem. 2015-04-02 03:23:11 +02:00
Adam Wulkiewicz
1113955b88 [algorithms][buffer] Explicitly get const random iterators. Use Range consistently. 2015-04-01 23:54:28 +02:00
Adam Wulkiewicz
2808beed3d [algorithm][iterator] Avoid preincrementation of temporaries. 2015-04-01 23:52:01 +02:00
Menelaos Karavelas
7658231aa4 Merge branch 'develop' of https://github.com/boostorg/geometry into fix/remove_deprecated_include_paths
Conflicts:
	test/algorithms/set_operations/difference/difference.cpp
2015-03-31 14:30:04 +03:00
Menelaos Karavelas
494045809e [util][promote integral] guard use of int128 and uint128 by the macro
BOOST_GEOMETRY_ENABLE_INT128
2015-03-30 17:43:08 +03:00
Barend Gehrels
32ccdc79eb [minor] add const 2015-03-28 14:50:58 +01:00
Barend Gehrels
4be353a5e4 [minor] fix typo 2015-03-28 14:50:32 +01:00
Adam Wulkiewicz
d6ca52c90e [util] Avoid conversion of negative number to unsigned (MSVC warning). 2015-03-28 02:46:21 +01:00
Menelaos Karavelas
7b515316e7 [util][promote integral] re-implement detail::promote_integral::bit_size<>
in a more type safe way; split the implementation of promote_integral<>
for (fundamental) integral and other types (non-integral or user-defined)
so that for those types the compilation is simpler/faster;
2015-03-28 03:16:35 +02:00
Menelaos Karavelas
e169f80ad3 [util][promote integral] update inline documentation; polish code;
measure all sizes in bits rather than a mixture of bits and bytes;
2015-03-28 01:30:07 +02:00
Menelaos Karavelas
af1a3da823 [util][promote integral] add support for unsigned long long and uint128 2015-03-27 22:45:49 +02:00
Menelaos Karavelas
88009aa38b [util][promote integral] replace boost::integral_constant<std::size_t, Value>
by boost::mpl::size_t<Value> when possible (2 instances)
2015-03-27 14:18:23 +02:00
Menelaos Karavelas
74556828af [util][promote integral] re-implement the mpl::list loop using MPL list iterators;
add support for unsigned integral numbers (including a template parameter that
indicates whether they should be promoted to signed or unsigned numbers);
be more precise on the (bit) sizes required for the promoted type;
2015-03-27 11:50:38 +02:00
Menelaos Karavelas
90c2c5f288 [policies][relate][intersection points] move calls to get<> out of down-cast
of promoted type to coordinate type
2015-03-27 11:27:27 +02:00
Menelaos Karavelas
2651afa92b [util][promote integral] fix issue with boost::mpl::if_c not allowing
enum values as return types
2015-03-26 16:31:14 +02:00
Menelaos Karavelas
e0a0b8e3b1 [policies][relate][intersection_points] promote values to a larger integral
type in order to avoid overflow when computing the products:
  ratio.numerator() * dx     and     ratio.numerator() * dy
This change fixes ticket #10835
2015-03-26 08:49:18 +02:00