Commit graph

547 commits

Author SHA1 Message Date
Dane Springmeyer
6d1cd0aad9 as a followup to fa7efc9390, remove unneeded operator-= from box2d 2011-10-19 21:39:48 -07:00
Artem Pavlenko
9088d7bbc8 + various win32 fixes, mainly adding extra namespace qualifiers
for vc++10, MAPNIK_DECL ...
2011-10-19 15:29:24 +01:00
Matt Amos
517fc59f77 Added Python test for multi-tile raster policy. 2011-10-18 14:34:58 +01:00
Matt Amos
a2b4f9db59 Use make_shared as suggested by coding guidelines. 2011-10-13 19:34:28 +01:00
Dane Springmeyer
7432e1e55a removing my name from copyright as the intention/convention is for copyright to be help by project founder artem: contributions do not necessitate copyright - TODO: document this on community wiki 2011-10-11 17:52:15 -07:00
Matt Amos
1717104654 Changed copyright notice in line with project convention. 2011-10-12 01:37:44 +01:00
Matt Amos
b05a51c783 Ooops, added missing file from patch. 2011-10-12 01:25:10 +01:00
Matt Amos
b5c4bb77de Exposed the label collision detector outside the agg_render object
and via Python, allowing detectors to be re-used across renderings.
2011-10-12 01:05:35 +01:00
Dane Springmeyer
b785d5ae7f fix perms on the python paths.py file 2011-10-10 17:56:56 -07:00
Artem Pavlenko
7387afd96f + remove the unnecessary empty palette from tostring2
(jonburgess777)
2011-10-03 08:47:25 +00:00
Alberto Valverde
e41abb0e12 add a label attribute to colorizer_stop 2011-09-16 13:32:16 +00:00
Alberto Valverde
97431c8de4 made mesh_size configurable 2011-09-16 12:21:21 +00:00
Dane Springmeyer
8e7950c318 +reflect native c++ core register_fonts function - that works recursively 2011-09-15 20:13:15 +00:00
Dane Springmeyer
da5f283c9e support mixed case file extentions when loading fonts via python wrapper function 2011-09-15 20:11:30 +00:00
Dane Springmeyer
547db300a0 match nodejs bindings for kwarg args when encoding grids 2011-09-15 20:09:28 +00:00
Dane Springmeyer
256937bd4e expose the painted boolean on images and grids to allow api users to know if any features were processed and likely rendered 2011-09-14 19:31:57 +00:00
Artem Pavlenko
d5e57afac0 + move compositing into core lib 2011-09-13 15:31:07 +00:00
Artem Pavlenko
703240cf40 + update to reflect interface changes 2011-09-13 13:23:30 +00:00
Artem Pavlenko
12b6aceeee + add __len__ method 2011-09-13 13:23:23 +00:00
Artem Pavlenko
810b494b60 + reflect valid() method 2011-09-13 13:23:15 +00:00
Artem Pavlenko
1fa78f32e0 + add unified interface to mapnik2.Feature:
add_geometries_from_wkt
    add_geometries_from_wkb
 and mapnik2.Path :
     from_wkt
     from_wkb
TODO: integrate mapnik2.Path with mapnik2.Feature (mapnik 2.1)
2011-09-13 11:54:12 +00:00
Alberto Valverde
9579409940 resurrect add_geometry_from_wkb functionallity in Feature's python binding 2011-09-12 14:43:45 +00:00
Dane Springmeyer
04900c4664 fix tests around line symbolizer 2011-09-12 05:33:13 +00:00
Dane Springmeyer
67d7a3a6f0 add alternative line rasterizer that can be enabled to draw faster lines at the expense of dropping short geometries - for thin lines has nicer look but should not be used with think lines - refs #873 2011-09-09 23:45:49 +00:00
Artem Pavlenko
a59c961c1f + add missing save_to_file overloads
+ remove dummy rgba_palette args
2011-09-09 12:40:30 +00:00
Artem Pavlenko
6575e34973 + add initial support for new WKT path/geometry parser concept 2011-09-08 11:52:59 +00:00
Artem Pavlenko
02c143895d + refactor palette stuff a bit
TODO: We need to change save_to_file|string interface
  to avoid passing dummy rgba_palette objects.
2011-09-07 15:01:25 +00:00
Artem Pavlenko
8b3bb3ccd0 + remove shared_ptr and avoid de-referencing un-initialised shared_ptr 2011-09-07 15:01:16 +00:00
Dane Springmeyer
aa5cfad4b7 add minimum-path-length to text_symbolizer - closes #865 2011-09-04 17:33:48 +00:00
Dane Springmeyer
e69bab2b04 include what you use 2011-09-01 00:42:48 +00:00
Dane Springmeyer
90acfb3e1c +reflect mapnik.Palette in python 2011-08-31 02:28:38 +00:00
Dane Springmeyer
9e87c9f914 apply patch from Peter Körner adding AlsoFilter functionality - closes #820 2011-08-30 17:38:27 +00:00
Dane Springmeyer
22c39d91ba scons: rename all SConscript files to more friendly name of 'build' with a python extension for quick syntax detection in editors 2011-08-30 05:32:01 +00:00
Dane Springmeyer
2c75feed65 scons: fix bug that propagated libmapnik CXXFLAGS too liberally (in this case to plugins) 2011-08-29 23:01:33 +00:00
Dane Springmeyer
d19cf41d05 scons: ditch brittle handling of cairo flags for python bindings, moving to more dimple reading of paths used for libmapnik 2011-08-29 22:17:13 +00:00
Dane Springmeyer
8172dd4550 scons: fixup python paths 2011-08-12 21:43:43 +00:00
Dane Springmeyer
a506c7ba29 fix typo 2011-08-12 00:14:34 +00:00
Dane Springmeyer
82ac99611e add LINKING option to control whether libmapnik is build static or shared and RUNTIME_LINK options to trigger dependency flags to compile against static libs 2011-08-11 19:14:00 +00:00
Dane Springmeyer
46af5ff222 python: shuffle mapnik::value -> python object convertor, and utilize for conversion to correct type in expression evalution 2011-07-27 02:36:59 +00:00
Artem Pavlenko
8bfd5956bc + add remaining compositing modes
(http://www.w3.org/TR/2009/WD-SVGCompositing-20090430/)
  FIXME: move compositing into core lib
2011-07-13 13:23:18 +00:00
Dane Springmeyer
8ec62942ff expressions should evaluate to proper booleans in python 2011-07-12 00:58:37 +00:00
Dane Springmeyer
a6a8e8348a return string repr of types rather than dodgy type conversion in python 2011-07-12 00:58:02 +00:00
Dane Springmeyer
57827813fb handle boolean conversion to python 2011-07-11 22:27:40 +00:00
Dane Springmeyer
563ae20a6e return python 'None' for null values - otherwise we hit runtime error of 'SystemError: NULL result without error in PyObject_Call' 2011-07-11 19:27:38 +00:00
Dane Springmeyer
e84119aed9 directly link libmapnik in plugins (not just darwin) - patch from Stella L. - closes #790 2011-07-05 23:41:17 +00:00
Dane Springmeyer
f47e350121 use 'alignment' keyword in python to match XML in polygon_pattern_symbolizer, closes #203 2011-06-28 23:22:06 +00:00
Dane Springmeyer
476e04c4c7 add gamma to polygon-pattern-symbolizer, useful for avoiding AA affects at tile edges so that global patterns can have seamless alignment 2011-06-28 22:37:35 +00:00
Dane Springmeyer
d403cbf4bc python: make mapnik2.Grid and mapnik2.GridView available with from mapnik import * 2011-06-24 00:00:40 +00:00
Artem Pavlenko
a27617306b + add __neq__ operator 2011-06-07 19:27:15 +00:00
Artem Pavlenko
e2cafb3327 + change repr method output to be more explicit
(TODO: Is it going to break anything ?)
2011-06-07 16:14:33 +00:00
Artem Pavlenko
6a92e63cc1 + add __neq__ operator : ( self != self ) 2011-06-07 16:14:26 +00:00
Dane Springmeyer
7c2549ff46 rework the grid rendering interface to be object oriented and template based allowing for working both with grids and grid views for metatiling 2011-06-04 00:28:00 +00:00
Dane Springmeyer
9cc93552f2 reflect mapnik.GridView in python 2011-06-04 00:26:29 +00:00
Dane Springmeyer
e7533dd125 reflect mapnik.Grid in python 2011-06-04 00:25:43 +00:00
Dane Springmeyer
ef8e1c84e4 reflect the new forward/backward functions added in r2942 in python 2011-05-31 22:43:48 +00:00
Dane Springmeyer
10a14bbda3 formatting 2011-05-27 04:16:56 +00:00
Dane Springmeyer
7a17c7e597 load_map_from_string has always accepted a base path argument to drive the interpretation of relative paths in the stylesheet when loaded in memory- this really should be a full map property so that it can be known on the map object after parsing and changed if the map is saved to a new location 2011-05-25 23:48:07 +00:00
Dane Springmeyer
ba15947a4f add Projection.expanded() function to ask proj4 what its internal, normalized definition looks like (useful only for debugging) 2011-05-17 19:05:15 +00:00
Artem Pavlenko
734a33b378 + we don't support ColorBand yet 2011-05-09 13:52:22 +00:00
Dane Springmeyer
3add8dfb6d apply Toby Collett's work on a python printing/layout/legend module from https://github.com/thjc/mapnik-svg 2011-05-04 01:30:21 +00:00
Dane Springmeyer
d05b0c539f apply major refactor of RasterColorizer by ben moores from https://github.com/BenMoores/mapnik-trunk/wiki/RasterColorizer - closes #523 2011-05-04 00:20:17 +00:00
Dane Springmeyer
6c0fb17236 re-expose next() iterator, previously removed in r1121 2011-04-29 19:59:00 +00:00
Dane Springmeyer
52f7092df5 better named kwargs for render_grid 2011-04-29 19:31:43 +00:00
Dane Springmeyer
2e4a1611b1 allow markers_symbolizer to be created from python 2011-04-29 17:39:11 +00:00
Dane Springmeyer
dffe53036e grid output - only serialize requested fields (and not fields potentially collected in expressions 2011-04-27 19:53:56 +00:00
Dane Springmeyer
9548492036 add python binding to grid_renderer allowing conversion of grid buffer into json 2011-04-26 23:51:29 +00:00
Dane Springmeyer
6d7ca1ac6f move mapnik::value -> python value conversion to separate header fro reuse 2011-04-26 17:39:21 +00:00
Dane Springmeyer
39a2f9ef6a update all future versions referenced to be >= 2.0.0 2011-04-19 00:20:50 +00:00
Dane Springmeyer
8998296f7b add 'maximum-extent' attribute to map and use this, if set, in place of calculated layer extents in zoom_all() 2011-04-14 02:20:33 +00:00
Dane Springmeyer
6549d090cc throw in python bindings if proj_transform fails 2011-04-14 02:09:24 +00:00
Dane Springmeyer
383d8a3f15 add proj_transform forward/backward box2d implementation 2011-04-13 19:40:44 +00:00
Dane Springmeyer
903d1b49ef add a clip method to mapnik::box2d 2011-04-13 19:19:23 +00:00
Dane Springmeyer
62e62ebe76 avoid unused parameter warnings 2011-04-04 14:45:00 +00:00
Dane Springmeyer
7cc4f345cf avoid deprecated string conversion warning in pycairo by overriding Pycairo_Import macro and casting away const to please the c/c++ borderlands 2011-04-04 04:40:18 +00:00
Dane Springmeyer
a7410da0d8 avoid unused parameter compiler warnings 2011-04-04 04:37:08 +00:00
Dane Springmeyer
2d1e2ef998 add valid() method to box2d, and comment subtraction override as it does not have any function currently 2011-04-04 03:50:09 +00:00
Dane Springmeyer
819a67fd42 catch errors in build time python pkg-config parsing - closes #738 2011-04-02 03:12:58 +00:00
Dane Springmeyer
84ea9e6101 avoid clang++ -pedantic compiler warnings 2011-04-01 06:24:57 +00:00
Dane Springmeyer
3f219a7046 workaround for latest clang trunk (>=127962) which throws on template <> (extraneous 'template<>' in declaration of variable...) 2011-03-20 19:18:03 +00:00
Dane Springmeyer
c2654fd95d add missing file from previous commit 2011-03-17 05:46:55 +00:00
Artem Pavlenko
e580078d26 + apply MetaWriter patch from zerebubuth
( see #735 for details )
2011-03-16 13:32:04 +00:00
Dane Springmeyer
bdd2441a86 fix and re-enable point symbolizer pickling 2011-03-02 14:39:41 +00:00
Dane Springmeyer
4079fd7d08 make feature caching optional, and disabled by default (to avoid std::bad_alloc in low memory environments). Can be set as new layer property 'cache-features' - closes #657 2011-03-01 17:09:29 +00:00
Dane Springmeyer
0a4b5591a1 comment unused function 2011-03-01 16:37:53 +00:00
Hermann Kraus
4af0696b9d Add support for multiple placements.
NOTE: In some places indention is not updated to keep this patch readable. This will be fixed in the next revision.
2011-02-28 13:17:46 +00:00
Artem Pavlenko
8ca85c95c6 + reflect 'area' method 2011-02-28 12:41:07 +00:00
Artem Pavlenko
e54eb342e2 + from_wkt factory method
+ expose mapnik::eGeomType enum
2011-02-28 12:40:59 +00:00
Dane Springmeyer
a317c5d051 add 'capitalize' option to text-transform - closes #715 2011-02-21 20:43:26 +00:00
Dane Springmeyer
c5833a6db8 remove unmaintained autotools scripts 2011-02-04 22:22:16 +00:00
Dane Springmeyer
fd2d9d7ff3 enable aliased lines using stroke-gamma for line_symbolizer - closes #689 2011-02-02 01:46:14 +00:00
Dane Springmeyer
7043c416fa enable if/else type behavior in rules using style level keyword to control whether all rules will be evaluated or just the first that matches - closes #706 - thanks to original patch from kkaefer 2011-02-01 22:55:50 +00:00
Dane Springmeyer
53d72b398e +reflect placement for point_sym in python 2011-02-01 19:28:01 +00:00
Dane Springmeyer
75649b8863 add 'interior' point placement option to point_symbolizer - closes #709 2011-02-01 08:16:32 +00:00
Dane Springmeyer
e803b1c2ec add 'interior' placement option to text_symbolizr - patch from Toby Collet - closes #709 2011-02-01 08:13:08 +00:00
Dane Springmeyer
87222b2014 expose filter_factor on raster_symbolizer - patch from Craig de Stigter 2011-01-27 03:19:27 +00:00
Artem Pavlenko
98b7f62155 + remove template from mapnik::rule
+ rename globaly rule_type -> rule
 ( ticket #552 )
2011-01-13 21:35:01 +00:00
Dane Springmeyer
0d310d5ba3 scons: make sure to handle adding custom flags onto mapnik_python.cpp compile *even* if we do not know the SVN_REVISION 2011-01-13 20:53:18 +00:00
Dane Springmeyer
2de2edc171 make sure to put cairo/cairomm ldflags into the linkflags for the _mapnik.so environment 2011-01-13 20:36:29 +00:00
Dane Springmeyer
eb60010a05 use 'import sys' syntax for consistency 2011-01-03 22:33:57 +00:00
Dane Springmeyer
9775a1ee5b expose filename (path_expression string) as property on all symbolizers_with_image (TODO consider exposing actual PathExpression) - and fixup displacement get/set on various symbolizers, moving to properties for consistency 2010-12-14 00:24:34 +00:00