Artem Pavlenko
bdf7876652
const-ness
2018-07-19 15:36:00 +01:00
Artem Pavlenko
67dbb96580
use uint8_t to parse hex2 values to avoid overflowing (boost >= 1.67)
2018-07-19 15:34:40 +01:00
Mickey Rose
f1d07d6718
proj_transform test: also check that transform succeeded
2018-07-18 19:31:12 +02:00
Artem Pavlenko
a98d1b8071
use std::uint8_t as an attribute for hex2 parser
2018-07-18 10:40:41 +01:00
Artem Pavlenko
4c31bd16d2
Merge branch 'master' into boost_1_67
2018-07-18 09:27:56 +01:00
Sandro Santilli
69c317cd1f
Fix some comments and error messages referencing raster parameters
2018-07-16 19:27:12 +02:00
Mickey Rose
68a7f5f63c
proj_transform: fix strided coordinate array transform
2018-07-16 14:18:49 +02:00
Mickey Rose
1e6feecb91
proj_transform: add test for strided coordinate array
2018-07-16 14:18:49 +02:00
Mickey Rose
f84191204e
eradicate M_PI
2018-07-16 14:18:49 +02:00
Mickey Rose
32e7202223
well_known_srs: move implementation to .cpp
...
- add lonlat2merc, merc2lonlat overloads for single point
- add stride argument to overloads for coordinate arrays
- make all functions exported
- change static string constants to exported
- change static numeric constants to constexpr
- remove superfluous numeric constants
2018-07-16 14:18:32 +02:00
Mickey Rose
e11f3a660a
offset_converter: minor refactoring
...
DRY: extract method for `joint_angle` calculation.
2018-07-14 12:46:53 +02:00
Mickey Rose
a0a2c78950
util/math: clamp, degrees, radians
...
Use common functions for degrees <-> radians conversions, except when
dealing with agg, where it makes sense to use available deg2rad/rad2deg
functions instead of including another header.
2018-07-13 12:34:25 +02:00
lightmare
187c1df332
Merge pull request #3337 from lightmare/normalize-angle
...
speed up util::normalize_angle for large values
2018-07-12 19:30:37 +02:00
Mickey Rose
0a6e82e555
move src/math.cpp under src/util/
2018-07-11 23:55:21 +02:00
Mickey Rose
7c4ccf0209
make util::normalize_angle reasonably fast on large values
...
Because it simply calculates the remainder after division by full turn,
it shouldn't take time proportional to the magnitude of its operand.
2018-07-11 23:14:23 +02:00
Mickey Rose
354be41811
benchmarks: clarify output
...
Make it clear in benchmark output which mode it ran in:
- "main thread" only
- "1 worker" thread
- "N workers"
2018-07-11 23:14:04 +02:00
Mickey Rose
65f3bb75dd
Revert "benchmark - slightly better stderr"
...
This partially reverts commit 5ab6db2607
.
The change of argument --threads N doesn't just change output, it
changes the mode of operation.
With --threads 0, the benchmark runs wholly in the main thread.
With --threads 1, it starts 1 worker thread, which does the work, and
the main thread measures how long it takes to complete.
2018-07-11 23:14:03 +02:00
Mickey Rose
d70c2d978c
add benchmark for mapnik::util::normalize_angle
2018-07-11 23:13:59 +02:00
Mickey Rose
5091a4ba9d
benchmarks: move sources under benchmarks/src/
2018-07-11 15:57:04 +02:00
Mickey Rose
fa55e3dfa9
benchmarks: move headers under benchmarks/include/
2018-07-11 13:32:32 +02:00
Mickey Rose
25f0ef09a5
use MAPNIK_VERSION_AT_LEAST for minimum-version check
2018-07-11 10:43:06 +02:00
Mickey Rose
c2c00570b3
define MAPNIK_MAKE_VERSION, MAPNIK_VERSION_AT_LEAST
2018-07-11 10:38:32 +02:00
Mickey Rose
b20e42ba3f
changelog: more missing unreleased changes [skip ci]
2018-07-10 22:49:50 +02:00
Mickey Rose
fb8e75afec
changelog: copy changes from v3.0.x branch [skip ci]
2018-07-10 22:49:50 +02:00
Mickey Rose
558dcdb7d0
changelog: unindent [skip ci]
2018-07-10 22:49:50 +02:00
Mickey Rose
249c4b6c6c
changelog: minor formatting [skip ci]
2018-07-10 22:49:50 +02:00
talaj
ae3a9404b7
Merge pull request #3935 from lightmare/fix-bbox-reprojection
...
Fix bbox reprojection
2018-07-10 21:45:47 +02:00
Mickey Rose
62912d25af
Revert "allow visual test failures with g++"
...
This reverts commit 05936826b3
.
2018-07-10 18:51:34 +02:00
Mickey Rose
d4f113e302
update changelog [skip ci]
2018-07-10 12:06:32 +02:00
Mickey Rose
947e424f56
proj_transform: fix bbox reprojection
...
- remove buggy calculate_bbox, use boost::geometry::envelope instead
- move helper envelope_points to anonymous namespace and make it always
produce exactly the requested number of points, even if it's not
evenly divisible by 4
2018-07-10 11:31:06 +02:00
Mickey Rose
2a98fe0155
proj_transform test: use reference values from cs2cs tool
2018-07-10 11:31:06 +02:00
Jiri Drbalek
9a30fda852
Backport Python test of bbox reprojection
...
Originaly in Python from https://github.com/mapnik/mapnik/pull/2657
2018-07-10 11:31:06 +02:00
Mickey Rose
abbe44db6d
changelog: add notice about c++14 and spirit x3
...
[skip ci]
2018-07-09 14:32:00 +02:00
Mickey Rose
c389cdc562
changelog: add missing unreleased changes
...
[skip ci]
2018-07-09 14:32:00 +02:00
Mickey Rose
70a511165b
scripts/markdown-hyperlinks: prevent unwanted replacements
...
- don't replace @var in code spans with link to github user
- don't replace 1234567... in links with link to commit
- replace hexadecimal numbers looking like commit hashes only
after replacing raw URIs - this together with the previous point
prevents inadvertent replacement of long numbers in links
[skip ci]
2018-07-09 14:32:00 +02:00
Mickey Rose
e9befd9057
changelog: fix markdown
...
[skip ci]
2018-07-09 13:45:07 +02:00
lightmare
15f953672d
Merge pull request #3924 from lightmare/changelog-autolink
...
Changelog autolinks
2018-07-08 23:11:48 +02:00
Artem Pavlenko
2c2669d655
fixes typo ( #3930 )
2018-07-05 09:37:49 +02:00
Artem Pavlenko
735acb297a
add (uncomment) surrogate pairs test + small typo fix
2018-07-02 21:55:27 +02:00
Artem Pavlenko
df0ba4a777
add more single/double quotes tests
2018-07-02 16:42:35 +02:00
Artem Pavlenko
81183d6fe6
update test data
2018-07-02 15:11:47 +02:00
Artem Pavlenko
2977688a8a
test for single and double quoted escaped strings (regex) (ref 3433397c30 (commitcomment-29512684)
)
2018-07-02 15:10:28 +02:00
Artem Pavlenko
9d44a73ad0
fix - add single quoted string escaped chars support + allow backtracking when escaped characters are not part of /u, /U. /x encodings (ref 3433397c30 (commitcomment-29512684)
)
2018-07-02 15:07:41 +02:00
Artem Pavlenko
7db6b0c9f0
Merge pull request #3925 from lightmare/test-ds-attr-types
...
Also check types of values in datasource tests
2018-07-02 09:53:53 +02:00
Artem Pavlenko
c81a40d9eb
Merge pull request #3923 from lightmare/sconf-fixup-messages
...
scons configure cleanup
2018-07-02 09:53:25 +02:00
Artem Pavlenko
ba0e13c812
Merge pull request #3922 from lightmare/sconf-try-action
...
Sconf TryAction replacement
2018-07-02 09:53:02 +02:00
Artem Pavlenko
51065985df
Merge pull request #3921 from lightmare/unicode-attr-name
...
add test for parsing expression with non-ascii characters in attribute name
2018-07-02 09:51:45 +02:00
Artem Pavlenko
9e3014494c
Merge pull request #3912 from mapycz/fix-overviews
...
GDAL: Fixes of overviews
2018-07-02 09:49:46 +02:00
Mickey Rose
178edb9da6
update CHANGELOG with links to issues, commits, users
...
[skip ci]
2018-07-01 11:58:18 +02:00
Mickey Rose
bdaf7813af
minor CHANGELOG amendments in preparation for generating hyperlinks
...
[skip ci]
2018-07-01 11:55:45 +02:00