Artem Pavlenko
2a8086fbcc
Merge pull request #2788 from mapycz/fix-labeling-on-polygons
...
fix labeling on polygons
2015-05-14 14:10:02 +01:00
artemp
881dba4fc9
fix camel case
2015-05-14 12:53:21 +01:00
artemp
ee414c4796
partially revive numeric_cast<>
2015-05-14 12:40:00 +01:00
Jiri Drbalek
527cbe7897
fix labeling on polygons
2015-05-14 11:26:01 +00:00
artemp
5b865d1f2e
more constness
2015-05-14 12:07:34 +01:00
artemp
3b3ca55042
remove numeric_cast + more constness correctness
2015-05-14 11:17:53 +01:00
artemp
e20ae67110
apply constness
2015-05-14 10:47:06 +01:00
artemp
78c56968c1
add clamp(v, min, max) function + clamp opacity
in ctor
2015-05-14 10:43:25 +01:00
Blake Thompson
1dddfd17ef
Removed try catch around set_alpha, and just checked bounds. Added unit tests for image_view
2015-05-12 12:24:14 -05:00
Dane Springmeyer
493e1d8362
fix #2743 [skip ci]
2015-05-11 16:59:00 -07:00
Blake Thompson
74eea94a4e
Merge branch 'master' of github.com:mapnik/mapnik
2015-05-11 13:14:20 -05:00
Blake Thompson
f54164da75
Changed the way that set alpha worked, renaming old method to multiply_alpha, added new set_alpha, that simply sets the alpha. Added protection for overflows and underflows. Added unit tests to cover all code
2015-05-11 13:12:13 -05:00
artemp
614d2688de
make non-state mutating operator()s const
2015-05-11 16:09:01 +02:00
Blake Thompson
bbe88a9352
Added fix for null image views and added test coverage for is_solid
2015-05-10 14:27:44 -05:00
Dane Springmeyer
4c76edaef7
algorithm is a somewhat large stl header, move it to cpp
2015-05-06 06:37:06 -07:00
Dane Springmeyer
126c777c8d
shuffle around boost/geometry usage in headers to reduce compile time
2015-05-05 22:04:49 -07:00
artemp
47c272b874
c++ constness, formatting
2015-05-05 14:12:29 +02:00
Blake Thompson
0eecbd3e0f
Modified marker cache to store shared_ptrs in order to prevent threading issues and to close #2713
2015-05-04 14:11:41 -05:00
artemp
6d4a4139b3
is_switchable to control switchabilty of vertex_converters -- revive stroke_tag
...
fix vertex_converter in cairo/agg
2015-05-04 14:49:17 +02:00
artemp
470da20d53
fix remanining cAmEl case names
2015-05-04 12:49:11 +02:00
artemp
081cf02dcf
fix method signitures to use std::size_t
...
rename getSize() -> size(), getRowSize() -> row_size
2015-05-04 10:57:57 +02:00
Jiri Drbalek
78d7ea007a
fix labeling
2015-04-30 07:20:10 +00:00
Dane Springmeyer
4ade976ee1
fix SVG rendering
2015-04-29 15:41:18 -07:00
Artem Pavlenko
051944a22f
Merge pull request #2783 from mapycz/fix-infinite-loop
...
fix infinite loop
2015-04-29 11:41:52 +02:00
artemp
fd1bcbbeba
remove unused includes
2015-04-29 11:35:44 +02:00
Jiri Drbalek
2a79d1500b
fix infinite loop
2015-04-29 08:58:19 +00:00
artemp
c64dc3672a
vertex_converter - refactor to pass Processor
to apply function (while it allows to instantiate vertex_converter object only using converter tags, it doesn't reduce object code)
...
make offset_converter 'non-switchable' relying on be able to shortcut in `vertex(*x, *y)` when offset is 0.0 -> results in reduced binary size
2015-04-28 14:18:33 +02:00
Dane Springmeyer
930eb184d8
pedantic proj api usage
2015-04-26 23:24:19 +02:00
Dane Springmeyer
0685c43802
followup after #2773 : remove python from install doc,static datasources, utils
2015-04-25 08:21:59 +02:00
Dane Springmeyer
124362d2d4
stop correcting geometries at decode time
...
- the original motivation for this was to avoid needing to
mutate a copy later on (for operations needing correct winding order)
- but mutating a copy is looking feasible, so removing this now.
2015-04-22 14:27:43 +02:00
Dane Springmeyer
ef3364695b
avoid potential access of uninitialized text_placements_ptr - closes #2766
2015-04-22 14:27:07 +02:00
artemp
06d77865db
update to templated geometry
2015-04-22 12:23:51 +02:00
artemp
2768aa6a4a
Merge branch 'mapnik-geometry' into mapnik-geometry-template
2015-04-22 12:13:29 +02:00
Blake Thompson
d7f7bc18c1
A large set of changes that help allow WKT for int64_t type geometeries, modified some strategies, made it so that the clipper would use mapnik geometries.
2015-04-21 09:34:52 -05:00
Dane Springmeyer
3fb41e865a
fix outline drawing in debugsymbolizer ring mode
2015-04-14 15:33:05 +02:00
Dane Springmeyer
cdb9a2ead4
add debug symbolizer mode for visualizing exterior and interior rings and their winding order
2015-04-14 02:44:14 +02:00
Blake Thompson
f98fd0da7c
Added tests for non standard projections, forcing use of proj4.
2015-04-10 14:05:58 -05:00
Blake Thompson
2392c7eb12
Added geometry_reprojection_impl
2015-04-10 10:55:30 -05:00
Blake Thompson
87fb41907a
Added template to geometries
2015-04-09 15:22:51 -05:00
artemp
2bc2e6b85e
use geometry_to_path to convert geometry
2015-04-08 18:48:41 +02:00
artemp
310865a0c3
help compiler to apply RVO ( return the same object by value)
2015-04-08 13:10:22 +02:00
Blake Thompson
431c581759
Added a lot of additional tests for geometry_reprojection
2015-04-07 18:37:30 -05:00
Blake Thompson
c5d5a1f22e
Added several unit tests around reprojection.
2015-04-07 17:20:29 -05:00
Blake Thompson
0fec41a87e
Updated reprojection code
2015-04-07 11:55:45 -05:00
artemp
54d8746aa8
svg_renderer - add generate_path vertex processor (work-in-progress)
2015-04-07 15:46:06 +02:00
Blake Thompson
6be658f5b5
Moved geometry envelope to an impl
2015-04-06 11:00:03 -05:00
artemp
3be0074c20
bug fix - add missing break statement
2015-04-02 14:58:05 +02:00
Blake Thompson
5ca850a17e
Added proper use of auto in several for loops
2015-04-01 17:55:36 -05:00
Blake Thompson
78835c9d87
Initial commit for new method to provide geometry reprojection
2015-04-01 16:18:05 -05:00
artemp
390fff5bb4
ensure we're returning the same object from multiple return paths
...
from_wkb now returns geometry::geometry_empty instead of throwing
update cpp_tests
2015-04-01 15:04:05 +02:00