Mickey Rose
63128fdba1
can't store noncopyable list in std::vector
...
std::list can have a throwing move constructor.
std::vector of such lists makes copies when growing its storage array,
it doesn't move them.
render_thunk_list is noncopyable (because render_thunk is noncopyable),
and so can't be stored in std::vector in some STL implementations.
2017-01-03 22:53:39 +01:00
Mickey Rose
0a5495e442
change render_thunk_list to std::list<render_thunk>
...
Wrapping render_thunk in std::unique_ptr is one extra allocation per
element, with no purpose. The somewhat costly xyz_render_thunk move
constructor is only called once upon insertion, regardless of whether
we're emplacing render_thunk or unique_ptr.
2017-01-03 22:53:39 +01:00
Jiri Drbalek
b5c04cc132
find max element instead of std::sort
2017-01-02 03:53:53 +01:00
Jiri Drbalek
cdefee3524
remove redundant code
2017-01-02 03:53:53 +01:00
Dane Springmeyer
47443526a0
Merge pull request #3580 from mapnik/v3.0.x-cherry
...
Cherry pick stable commits from master into v3.0.x branch
2016-12-21 11:44:34 -08:00
Dane Springmeyer
a3b4e1f575
remove duplicate sudo:false from travis
2016-12-15 13:33:29 -08:00
Dane Springmeyer
283481b347
backport warnings fix from master for enumeration
2016-12-15 11:33:23 -08:00
Mickey Rose
fdd542a3c4
make mapnik_value_type_t C++11-friendly
2016-12-15 12:13:42 +01:00
Mickey Rose
06201e3842
bring C++14 type traits aliases for C++11 support
2016-12-15 12:12:12 +01:00
Dane Springmeyer
96ce2d8b3b
update to latest variant
2016-12-14 18:25:41 -08:00
Mickey Rose
f00470dc02
simplify mapnik::value conversion rules
...
- fixes #3570
- avoids recursive exception-specification on value constructor
by only constructing a temporary for arithmetic types (everything
else passes a reference to the base variant constructor)
- also removes `is_same<decay_t<T>, value>` SFINAE check -- because
we're only passing a reference down, explicitly forcing the compiler
to use the implicitly-defined copy/move instead is pointless
2016-12-14 18:24:32 -08:00
artemp
dd5c134f01
update test to use std::unordered_map<mapnik::value, mapnik::value>
2016-12-14 18:24:29 -08:00
artemp
7c41b835ca
use latest mapbox::variant
2016-12-14 18:24:26 -08:00
artemp
641cd6555e
expand std::hash<mapnik::value> and operator== test for all types in mapnik::value
2016-12-14 18:24:22 -08:00
artemp
fa2d63c601
remove hash_combine
(unused)
2016-12-14 18:24:19 -08:00
artemp
204d30e58d
simplify hash calculation (we don't need combine with which(), using hash<T> is sufficient)
2016-12-14 18:24:15 -08:00
artemp
8dee1a9088
use mapbox namespace to fix name resolution
2016-12-14 18:23:02 -08:00
Mickey Rose
2b3fdf1bc9
fix #3526 GroupSymbolizer PairLayout with 3+ items
2016-12-14 18:21:52 -08:00
Jiri Drbalek
701a459427
duplicate code elimination
2016-12-14 18:21:30 -08:00
Dane Springmeyer
335c3e4265
allow visual test failures with g++ https://github.com/mapnik/mapnik/issues/3567
2016-12-14 18:21:18 -08:00
Dane Springmeyer
4cd55330dd
avoid -Wshadow and 'unrecognized command line option' with gcc
2016-12-14 18:21:03 -08:00
Dane Springmeyer
b2f7bea7b5
try g++6 on precise
2016-12-14 18:20:52 -08:00
Dane Springmeyer
d5a9322a11
use clang 3.9, g++-6
2016-12-14 18:20:43 -08:00
Dane Springmeyer
d378ddbf66
mason packages are currently built with -D_GLIBCXX_USE_CXX11_ABI=0
2016-12-14 18:20:10 -08:00
Jiri Drbalek
27a0f3562d
remove methods that are not referenced anywhere
2016-12-14 18:19:54 -08:00
artemp
4d4ea3a576
Fix clang >= 3.9.0 compilation by using mapbox::util::variant
as alias (via deps/mapbox/variant => "types" branch)
2016-12-14 18:18:50 -08:00
Artem Pavlenko
765922e42f
Merge pull request #3556 from mapnik/minor-cleanup
...
remove superfluous declaration
2016-11-25 20:39:23 +01:00
talaj
994a327c7f
remove superfluous declaration
2016-11-25 13:31:55 +01:00
artemp
e5c08800eb
update deps/mapbox/variant
2016-11-21 10:48:10 +01:00
Artem Pavlenko
a9af4e6b1c
Merge pull request #3551 from tomhughes/pgraster
...
Use 2D box for pgraster bounding box
2016-11-17 17:34:00 +01:00
Tom Hughes
a3106a6a6e
Use 2D box for pgraster bounding box
...
Using a 3D box causes errors with postgis 2.3 when clipping is
enabled as ST_Clip throws an error clipping a raster to a 3D box.
2016-11-17 16:30:18 +00:00
Dane Springmeyer
8adc190117
new publish vars
2016-11-14 15:47:20 -08:00
Dane Springmeyer
5a6d16d4fe
default scale_factor for filter_visitor (unbreaks node-mapnik compile)
2016-11-14 15:31:18 -08:00
Artem Pavlenko
bc9cb5d90c
Remove Circle
badge it appears to be broken
2016-11-09 10:20:00 +01:00
artemp
eea427b19f
cleanup include directives
2016-10-19 13:15:59 +02:00
artemp
e74af890fb
Silence -Wundefined-var-template
warnings in enumeration.hpp
2016-10-17 16:58:22 +02:00
artemp
f18737f974
update deps
2016-10-17 16:35:20 +02:00
Artem Pavlenko
be2f1a147b
Merge pull request #3537 from mapycz/fix-blur-scale-factor
...
Fix blur with scale_factor
2016-10-17 16:33:04 +02:00
Jiri Drbalek
9248fba0f0
update visual test data
2016-10-17 12:37:53 +00:00
Jiri Drbalek
0221cd36df
take scale_factor into account when inflating buffer
2016-10-17 11:59:21 +00:00
Jiri Drbalek
b830469d2d
multiply blur radius by scale_factor
2016-10-17 11:59:21 +00:00
Artem Pavlenko
e3041f07c7
Merge pull request #3535 from sebastic/dependencies-typo
...
Fix 'depedencies' typo, replace with 'dependencies'.
2016-10-17 09:42:52 +02:00
Bas Couwenberg
01699fe81e
Fix 'depedencies' typo, replace with 'dependencies'.
2016-10-15 20:07:52 +02:00
Artem Pavlenko
d6a3be87a4
Merge pull request #3511 from mapnik/unbundle-unifont
...
Unbundle unifont
2016-10-11 17:57:06 +02:00
Artem Pavlenko
605ad3b2a8
Merge pull request #3525 from mapycz/fix-extent-intersect
...
fix intersecting extents in different projections
2016-10-11 17:56:45 +02:00
Mickey Rose
d18e65dbdf
travis: also search unknown submodule commit in branches
2016-10-05 20:03:45 +02:00
Jiri Drbalek
0f3eecbe5e
fix intersecting extents in different projections
2016-09-27 20:36:34 +00:00
artemp
a0a5085917
add GeoJSON num_features_to_query unit test (ref #3515 )
2016-09-23 11:56:43 +02:00
artemp
dad0ca2071
clamp num_features_to_query
to 1...max
range (at least one feature will queried) + use std::size_t
for feature count (ref #3515 )
2016-09-23 11:56:32 +02:00
artemp
8a8427daed
GeoJSON feature/geometry grammars - split (a | b | ...) % lit(',')
rule to avoid creating bogus temp synthesised attribute e.g boost::variant<a,b,..>
which causes clang compiler >= 3.9 to segfault. (ref #3507 )
...
NOTE: In general many Boost.Spirit gotchas can be fixed by simplifying rules (better control what gets synthesied under the bonet)
2016-09-22 12:18:34 +02:00