Dane Springmeyer
4cc1bb0e04
python: allow box2d to be returned as optional (None) to support map.maximum_extent
2011-12-20 10:42:38 -08:00
Artem Pavlenko
47b9da643c
add __deepcopy__ impl
2011-12-20 16:44:48 +00:00
Artem Pavlenko
0f76900d83
add __deepcopy__ impl
2011-12-20 16:44:48 +00:00
Artem Pavlenko
46d71b90db
add __deepcopy__ method using native c++ copy semantics
2011-12-20 16:17:20 +00:00
Artem Pavlenko
1bc92fccd7
add __deepcopy__ method using native c++ copy semantics
2011-12-20 16:17:20 +00:00
Dane Springmeyer
bc7da29e6b
scons: python 2.5 compatibility
2011-12-16 10:57:05 -08:00
Dane Springmeyer
224f75ff56
scons: python 2.5 compatibility
2011-12-16 10:57:05 -08:00
Dane Springmeyer
90b5cf69cc
update tests as per #992
2011-12-16 07:22:52 -08:00
Dane Springmeyer
6aefbd0d99
update tests as per #992
2011-12-16 07:22:52 -08:00
Artem Pavlenko
855a2bd49b
Merge branch 'master' into geometry_cleanup
2011-12-16 09:15:02 +00:00
Artem Pavlenko
9fe444ba29
Merge branch 'master' into geometry_cleanup
2011-12-16 09:15:02 +00:00
Dane Springmeyer
56cd9c4d6a
python bindings: limit uncessary linking on linux and on osx if '-undefined dynamic_lookup' is used (which is now default)
2011-12-14 11:18:31 -08:00
Dane Springmeyer
c51b7ae878
python bindings: limit uncessary linking on linux and on osx if '-undefined dynamic_lookup' is used (which is now default)
2011-12-14 11:18:31 -08:00
Artem Pavlenko
726cea7ba4
Merge branch 'master' into geometry_cleanup
2011-12-14 14:04:30 +00:00
Artem Pavlenko
ed7abc5c51
Merge branch 'master' into geometry_cleanup
2011-12-14 14:04:30 +00:00
Dane Springmeyer
acb726ce63
serialize relative path to fonts/plugins in python paths.py and re-assemble absolute path dynamically at load time to provide greatest portability
2011-12-13 17:53:31 -08:00
Dane Springmeyer
b45c0322b6
serialize relative path to fonts/plugins in python paths.py and re-assemble absolute path dynamically at load time to provide greatest portability
2011-12-13 17:53:31 -08:00
Dane Springmeyer
5a2da87aa8
removed unused file remaining from old automake system
2011-12-13 17:51:40 -08:00
Dane Springmeyer
61453b3842
removed unused file remaining from old automake system
2011-12-13 17:51:40 -08:00
Dane Springmeyer
382a04f33f
python: also include uninstall target for deprecated module name
2011-12-13 11:17:44 -08:00
Dane Springmeyer
c8a71cb07c
python: also include uninstall target for deprecated module name
2011-12-13 11:17:44 -08:00
Artem Pavlenko
fad6c614e8
remove title, abstract data members from mapnik::rule
2011-12-13 16:47:45 +00:00
Artem Pavlenko
46fea8e890
remove title, abstract data members from mapnik::rule
2011-12-13 16:47:45 +00:00
Artem Pavlenko
bf9dd32e2c
remove title,abstract members from layer class
2011-12-13 16:34:10 +00:00
Artem Pavlenko
d24e0436ea
remove title,abstract members from layer class
2011-12-13 16:34:10 +00:00
Artem Pavlenko
7e8e600790
+ WKT generator for mapnik::geometry_container
2011-12-12 18:19:52 +00:00
Artem Pavlenko
4f1438db01
+ WKT generator for mapnik::geometry_container
2011-12-12 18:19:52 +00:00
Artem Pavlenko
4a29caf96f
Merge branch 'master' into geometry_cleanup
2011-12-09 09:29:07 +00:00
Artem Pavlenko
47de1123f0
Merge branch 'master' into geometry_cleanup
2011-12-09 09:29:07 +00:00
Dane Springmeyer
3ed2133e39
maintain boost 1.42 compatibility (fixes nighly debian builds on lucid,maverick,and natty
2011-12-08 17:13:41 -08:00
Dane Springmeyer
262badd209
maintain boost 1.42 compatibility (fixes nighly debian builds on lucid,maverick,and natty
2011-12-08 17:13:41 -08:00
Artem Pavlenko
108d1559c1
Merge branch 'master' into geometry_cleanup
2011-12-08 16:51:21 +00:00
Artem Pavlenko
3a20edbfbd
Merge branch 'master' into geometry_cleanup
2011-12-08 16:51:21 +00:00
Artem Pavlenko
cb4152c280
add to_wkt method
2011-12-08 16:08:15 +00:00
Artem Pavlenko
11451a5b90
add to_wkt method
2011-12-08 16:08:15 +00:00
Artem Pavlenko
00ed6ffd5e
Merge branch 'master' into geometry_cleanup
2011-12-07 09:29:41 +00:00
Artem Pavlenko
39507d30f0
Merge branch 'master' into geometry_cleanup
2011-12-07 09:29:41 +00:00
Dane Springmeyer
1700ffe9cf
remove svn revision reporting as it is not longer relevant to git versioned mapnik
2011-12-06 16:52:50 -08:00
Dane Springmeyer
1190f3003d
remove svn revision reporting as it is not longer relevant to git versioned mapnik
2011-12-06 16:52:50 -08:00
Artem Pavlenko
7209988fb0
Simplify geometry model to support: Point/LineString/Polygon
...
Multi geometries are collections of single geometries
Remove multiple_geometries parameter
2011-12-06 12:53:16 +00:00
Artem Pavlenko
cc60b74921
Simplify geometry model to support: Point/LineString/Polygon
...
Multi geometries are collections of single geometries
Remove multiple_geometries parameter
2011-12-06 12:53:16 +00:00
Dane Springmeyer
9203639640
fully spell out parameters on the map object - refs #977
2011-12-05 18:05:35 -08:00
Dane Springmeyer
f0241c0170
fully spell out parameters on the map object - refs #977
2011-12-05 18:05:35 -08:00
Dane Springmeyer
742fb891e6
python: fixup mapnik.Path interface ( closes #901 ), add to_wkb method ( closes #831 ), and add tests for both
2011-12-02 19:22:04 -08:00
Dane Springmeyer
8168cf0f96
python: fixup mapnik.Path interface ( closes #901 ), add to_wkb method ( closes #831 ), and add tests for both
2011-12-02 19:22:04 -08:00
Dane Springmeyer
1d408aa485
fixup tests around parameters usage
2011-12-02 18:00:20 -08:00
Dane Springmeyer
e991f3c94e
fixup tests around parameters usage
2011-12-02 18:00:20 -08:00
Dane Springmeyer
bc002c1b8e
python: refactor interface to mapnik::parameters using poor man's indexingapproach - long term todo is merge mapnik::value_holder and mapnik::value to make this cleaner - refs #976
2011-12-02 17:59:57 -08:00
Dane Springmeyer
ad41bca19a
python: refactor interface to mapnik::parameters using poor man's indexingapproach - long term todo is merge mapnik::value_holder and mapnik::value to make this cleaner - refs #976
2011-12-02 17:59:57 -08:00
Dane Springmeyer
4c1d5ef5b6
do not need to point to reference
2011-12-02 17:02:20 -08:00
Dane Springmeyer
dcae156e92
do not need to point to reference
2011-12-02 17:02:20 -08:00
Dane Springmeyer
00707d02ff
python: make feature attribute access more pythonic
2011-12-02 15:08:56 -08:00
Dane Springmeyer
86459388c1
python: make feature attribute access more pythonic
2011-12-02 15:08:56 -08:00
Dane Springmeyer
7abee1fd47
python: remove unneeded header for mapnik_feature.cpp
2011-12-02 13:38:10 -08:00
Dane Springmeyer
8a4ba70c48
python: remove unneeded header for mapnik_feature.cpp
2011-12-02 13:38:10 -08:00
Dane Springmeyer
982d8fb321
python: use value_convertor to handle mapnik::parameter value_holder variant
2011-12-02 13:37:26 -08:00
Dane Springmeyer
aaa5d30c64
python: use value_convertor to handle mapnik::parameter value_holder variant
2011-12-02 13:37:26 -08:00
Dane Springmeyer
7b6696ff06
remove last traces of ogcserver
2011-11-23 20:30:53 -08:00
Dane Springmeyer
a1eb094e41
remove last traces of ogcserver
2011-11-23 20:30:53 -08:00
Dane Springmeyer
d7ac269a6c
OGCServer now lives at https://github.com/mapnik/OGCServer , remove from python bindings
2011-11-23 20:27:54 -08:00
Dane Springmeyer
ccca5afa89
OGCServer now lives at https://github.com/mapnik/OGCServer , remove from python bindings
2011-11-23 20:27:54 -08:00
Artem Pavlenko
14700dba16
switch back from mapnik2 to mapnik
...
add mapnik2 module which redirects to mapnik and issues DeprecationWarning
2011-11-23 11:33:58 +00:00
Artem Pavlenko
b689670ffd
switch back from mapnik2 to mapnik
...
add mapnik2 module which redirects to mapnik and issues DeprecationWarning
2011-11-23 11:33:58 +00:00
Dane Springmeyer
39d199aa49
code formatting
2011-11-13 19:54:32 -08:00
Dane Springmeyer
4654312d00
code formatting
2011-11-13 19:54:32 -08:00
Robert Coup
a5e8e70a39
Merge remote branch 'origin/master'
2011-10-31 10:53:35 +13:00
Robert Coup
1dcea7e310
Merge remote branch 'origin/master'
2011-10-31 10:53:35 +13:00
Robert Coup
31f1c6ac8c
[ fixes #904 ] Python2.5 compatibility.
2011-10-31 10:53:17 +13:00
Robert Coup
0e390eacfe
[ fixes #904 ] Python2.5 compatibility.
2011-10-31 10:53:17 +13:00
kunitoki
c314041a5a
- implemented sql query in OGR plugin ( closes #472 )
2011-10-24 11:53:33 +02:00
kunitoki
088561bd5e
- implemented sql query in OGR plugin ( closes #472 )
2011-10-24 11:53:33 +02:00
Robert Coup
d70e648a9c
Merge branch 'master' of github.com:mapnik/mapnik
2011-10-21 23:51:27 -07:00
Robert Coup
eb81e72522
Merge branch 'master' of github.com:mapnik/mapnik
2011-10-21 23:51:27 -07:00
Robert Coup
deb4e6b6c3
Do a proper check for BOOST_PYTHON_LIB in scons, and change it to be only the library name. re: mapnik-packaging:#3
2011-10-21 16:39:35 -07:00
Robert Coup
6639501132
Do a proper check for BOOST_PYTHON_LIB in scons, and change it to be only the library name. re: mapnik-packaging:#3
2011-10-21 16:39:35 -07:00
Dane Springmeyer
e0e47f50dd
remove area as it is unused (not needed by anything yet) - closes #846
2011-10-21 15:55:58 -07:00
Dane Springmeyer
d1c8818029
remove area as it is unused (not needed by anything yet) - closes #846
2011-10-21 15:55:58 -07:00
Artem Pavlenko
664d3c4ca6
Merge pull request #910 from MapQuest/multi-tile-policy
...
Added a 'multi' tiled raster plugin reader for virtual images
2011-10-21 12:26:44 -07:00
Artem Pavlenko
4e22542bce
Merge pull request #910 from MapQuest/multi-tile-policy
...
Added a 'multi' tiled raster plugin reader for virtual images
2011-10-21 12:26:44 -07:00
Artem Pavlenko
986edc3c6e
Merge pull request #909 from MapQuest/expose-label-collision-detector
...
Exposed the label collision detector
2011-10-21 12:20:21 -07:00
Artem Pavlenko
c7e1174d6b
Merge pull request #909 from MapQuest/expose-label-collision-detector
...
Exposed the label collision detector
2011-10-21 12:20:21 -07:00
Dane Springmeyer
bba87fa6df
as a followup to fa7efc9390
, remove unneeded operator-= from box2d
2011-10-19 21:39:48 -07:00
Dane Springmeyer
6d1cd0aad9
as a followup to fa7efc9390
, remove unneeded operator-= from box2d
2011-10-19 21:39:48 -07:00
Artem Pavlenko
911981aefd
+ various win32 fixes, mainly adding extra namespace qualifiers
...
for vc++10, MAPNIK_DECL ...
2011-10-19 15:29:24 +01: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
20ca69c3ea
Added Python test for multi-tile raster policy.
2011-10-18 14:34:58 +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
Dane Springmeyer
c4da7b1b38
fallback to DLFCN module if ctypes does not have RTLD_NOW (mips and solaris)
2010-12-11 02:09:16 +00:00
Dane Springmeyer
ed22d073c3
fix serialization of missing shield symbolizer properties
2010-12-11 02:07:47 +00:00
Dane Springmeyer
75893b13a7
throw in the python bindings if we cannot parse the svg transform string
2010-12-10 23:19:50 +00:00
Robert Coup
408de0c223
Add bbox parameter to GDAL Datasource to allow overriding envelope, with Python bindings. Fixes #680
2010-12-09 21:41:25 +00:00
Dane Springmeyer
3fcd62f719
scons: solaris expects 64 bit python modules to be in a subdirectory called '64' that appears to not need an __init__.py
2010-12-01 02:01:12 +00:00
Robert Coup
91a0719778
#664 enable svg-style transforms to be set via python bindings. eg sym.transform = 'scale(0.4, 1.0) rotate(0.3)'
2010-11-29 20:58:30 +00:00
Dane Springmeyer
b24dd5df91
scons: make sure to only create install targets if actually installing - needed to prevent installing during uninstall action if not previously installed
2010-11-29 20:21:02 +00:00
Dane Springmeyer
c9feedf5ad
ogcserver devel has moved to github, issue deprecation warning
2010-11-22 16:17:58 +00:00
Dane Springmeyer
73270bd76b
translate a C++ mapnik::value_error into a python ValueError
2010-11-15 03:30:23 +00:00
Dane Springmeyer
58c72fc1c9
reflect new box2d<double>from_bbox() function in python, and add a new value_error class to represent parsing errors (TODO: translate in python to ValueError and throw from other parsers like expression and color)
2010-11-15 03:21:43 +00:00
Dane Springmeyer
18d77f0f6c
add a function in python to check for the existance of metawriters on the map
2010-11-10 18:40:23 +00:00
Lucio Asnaghi
0066407774
- added extent support for geos plugin
...
- fixed python binding for geos plugin
2010-11-10 11:35:19 +00:00
Lucio Asnaghi
b05fe1aa5a
- added Geos python binding
2010-11-10 11:15:13 +00:00
Dane Springmeyer
34b462f15f
fix import namespace
2010-11-08 23:18:08 +00:00
Artem Pavlenko
7bb37ebee0
+ use Geometry2d to be compatible
2010-11-04 22:42:16 +00:00
Artem Pavlenko
ab101401cd
+ simplify geometry implementation
...
+ removed multiple geometry typedefs
+ use geometry_type
+ revert to storing vertices in vector_vertex
(previous implementation using std::vector was
fragmenting heap causing performance issues with large geometries)
+ FIXME: hit_test is broken!
2010-11-03 13:19:15 +00:00
Artem Pavlenko
0823b83900
+ apply Nino Walker's patch text_minimum_padding.diff #547
...
TODO: consider simplifying text symbolizer options
2010-11-03 13:18:56 +00:00
Robert Coup
1dce437120
#622 add optional late-binding of datasources
2010-10-24 06:34:18 +00:00
Dane Springmeyer
3011f53205
add support to PointSymbolizer for 'ignore_placement' - #564
2010-10-15 02:15:40 +00:00
Dane Springmeyer
ca5d44032e
explicitly set the runpath to libmapnik for the python bindings - in combination with ability to set 'CUSTOM_LDFLAGS' this closes #354
2010-10-12 04:40:00 +00:00
Dane Springmeyer
688b1f2299
add an 'extra_attributes' property to the map to store mapnik::parameters that don't make sense as full attributes but need to be carried through from load_map() to save_map() for applications that use mapnik to serialize to xml such as Cascadenik and Quantumnik (currently useful storage for 'minimum_version' and 'font_directory')
2010-10-07 19:34:36 +00:00
Dane Springmeyer
2f46db5aba
python: add back mapnik.Filter and mapnik.Box2d as deprecated + formatting
2010-10-07 01:03:16 +00:00
Dane Springmeyer
aa77ec70a1
stub in docstrings for expressions
2010-10-07 01:01:49 +00:00
Dane Springmeyer
2337c79c87
expose methods and properties on the ShieldSymbolizer - addresses #612
2010-10-06 19:10:51 +00:00
Alberto Valverde
60ac5d8f84
improved RasterColorizer's docstrings as requested in #619
2010-09-30 12:50:57 +00:00
Dane Springmeyer
154450fb8b
fix test failure when calling ds.all_features() by allowing a simple Box2d Query contructor - sidestepping issue of converting a python tuple to a boost tuple atm
2010-09-26 23:39:04 +00:00
Dane Springmeyer
03250d0efe
fix up metaclass injector to work with both python 2 and python 3 because the 2to3 script cannot handle this tricky bit
2010-09-26 23:28:29 +00:00
Dane Springmeyer
9492d309e6
better checking for whether our target python is python 3
2010-09-26 22:49:14 +00:00
Dane Springmeyer
18dd9ff40e
python3 support - patch thanks to Haoyu Bai - closes #334
2010-09-26 12:15:16 +00:00
Dane Springmeyer
baf04537ee
619_raster_colorizer_documentation.patch from tmcw - closes #619
2010-09-25 13:55:51 +00:00
Dane Springmeyer
3c8926a395
apply python docs patch from tmcw - closes #618
2010-09-24 17:41:08 +00:00
Dane Springmeyer
b3810a5f6a
stub in new alpha manipulation functions for mapnik image - #609
2010-09-24 15:37:19 +00:00
Dane Springmeyer
d73d72d509
scons: no direct linking to python on platforms other than darwin
2010-09-19 18:10:41 +00:00
Dane Springmeyer
c35310445a
rename text_convert to text_transform to match css naming convention (also matching enums to css)
2010-09-18 19:10:18 +00:00
Dane Springmeyer
523b09701e
Add the ability to pass custom CXXFLAGS and LDFLAGS that will be prioritized above other compiler and linker flags
2010-09-18 18:02:15 +00:00
Dane Springmeyer
e22c187e95
expose an indexing operator on box2d to allow for easy pythonic access to bounds parts
2010-09-16 14:41:29 +00:00
Artem Pavlenko
7ddb329179
support more compositing modes
2010-09-02 20:20:34 +00:00
Dane Springmeyer
12dd97a772
touch up docstrings in mapnik.Map and throw IndexError if negative value is passed to query_map_point or query_point from python as we don't currently support finding layers by negative index
2010-08-27 16:16:16 +00:00
Dane Springmeyer
22fc14ef05
+ ability to pass coord2d to box2d::re_center in core and python
2010-08-19 21:35:27 +00:00
Hermann Kraus
3d4fbf03d2
Add docstrings.
2010-08-12 01:42:33 +00:00
Dane Springmeyer
6cce96dd06
upgrade default projection of epsg:4326 to match exactly what proj4 stores in /usr/local/share/epsg for 4326 (aka WGS84)
2010-08-10 18:18:31 +00:00
Dane Springmeyer
5297d9bba0
allow for maintaining default ctor for projection class, reverting part of r2105 and part of r2102 (would have caused compile problems in mod_tile) - see also #333 , which this sets us up for
2010-08-10 17:42:17 +00:00
Dane Springmeyer
3446a62265
add mapnik_version_from_string helper function
2010-08-10 17:13:14 +00:00
Dane Springmeyer
586e044b61
allow python bindings to compile after r2102, see also #333
2010-08-07 17:40:04 +00:00
Hermann Kraus
3c01120c53
Add python bindings for metawriter properties.
2010-07-25 21:14:19 +00:00
Dane Springmeyer
267b48de49
add ability to uninstall all tracked scons targets using an 'uninstall' argument like 'scons uninstall' - closes #311
2010-07-18 20:39:05 +00:00
Dane Springmeyer
7918184d13
add helper functions for recursively registering fonts, and ensure they match one of the known freetype2 supported fonts (by ext) - closes #559
2010-07-15 23:04:51 +00:00
Dane Springmeyer
fc4f5f2a0e
scons: ensure pycairo headers are added
2010-07-15 02:17:13 +00:00
Dane Springmeyer
d463883f6f
scons: making sure things exist - prepping for out of source build
2010-07-15 00:40:52 +00:00
Dane Springmeyer
08e96be4a1
scons: better handling of PYTHON_INCLUDES and HAVE_LIBXML2
2010-07-15 00:20:50 +00:00
Dane Springmeyer
d549cfe30a
scons: only apply HAS_CAIRO & HAS_PYCAIRO flags to cairo related files
2010-07-14 22:47:34 +00:00
Dane Springmeyer
4d477a47cd
scons: conditionally add CXXFLAGS for headers needing Cairo support
2010-07-14 04:40:33 +00:00
Dane Springmeyer
284669b322
scons: make sure to build a .os file instead of .o
2010-07-14 01:26:30 +00:00
Dane Springmeyer
146c13ba09
scons: specialize CFLAGS for the only python cpp file that needs SVN_REVISION passed to it
2010-07-14 00:48:06 +00:00
Dane Springmeyer
13cfffd603
place built python lib inside module directory to make local import easier
2010-07-13 23:53:30 +00:00
Artem Pavlenko
efa6010517
+ impl composite method (TODO:add missing modes)
2010-07-03 20:08:49 +00:00
Dane Springmeyer
15896b8ba9
add ability to pass the scale_factor to render_to_file
2010-06-29 21:35:49 +00:00
Artem Pavlenko
9b3809443c
+ fix naming style in mapnik::Map
2010-06-25 15:23:35 +00:00
Dane Springmeyer
0959f8ef16
+ add support to polygon_patter_symbolizer for global pattern alignment in addition to local/feature (default) alignment - closes #203
2010-06-20 22:36:49 +00:00
Dane Springmeyer
7e2a2aab5a
+ability to choose ogr layer by index number
2010-06-19 15:13:47 +00:00
Dane Springmeyer
0706b4fbaa
+ ensure passing of default scale_factor to each render function
2010-06-19 14:26:04 +00:00
Artem Pavlenko
cf26db081a
+ refactor path expressions parser
2010-06-18 15:39:32 +00:00
Artem Pavlenko
dc85719853
+ update python bindings to reflect opacity/text-opacoity
...
changes
2010-06-15 12:28:22 +00:00
Artem Pavlenko
e634c06c17
+ use BOOST_PYTHON_FUNCTION_OVERLOADS to reflect
...
render(...) overloads
2010-06-10 14:12:35 +00:00
Artem Pavlenko
53848ce68f
+ reflect markers_symbolizer in python
2010-06-06 12:10:28 +00:00
Dane Springmeyer
9804e7e90d
scons: make libjpeg dependency optional (still required by default)
2010-06-03 19:50:27 +00:00
Artem Pavlenko
246731874b
+ apply 'mapnik-format' to *.cpp *.hpp
2010-06-02 11:03:30 +00:00
Dane Springmeyer
8767c404c3
apply patch from Herm to update doc scripts to mapnik2, and fix imports for local ogcserver code
2010-05-08 17:07:03 +00:00
Alberto Valverde
38e1570b8b
added a max_value attribute to color_band to handle the case of the last band more gracefully
2010-05-06 07:21:11 +00:00
Dane Springmeyer
58b0a3e5ff
scons: add 'PYTHON_DYNAMIC_LOOKUP' boolean to allow for dynamically loading python symbols rather than direct linking on OSX (default behavior still the same) - addresses #453
2010-04-28 05:39:27 +00:00
Artem Pavlenko
f92e2ba9d8
+ reflect dash_offset as property in python
2010-04-09 18:46:48 +00:00
Artem Pavlenko
07488ff436
+ more tidy
2010-04-09 18:45:53 +00:00
Artem Pavlenko
f6852e2401
+ tidy
2010-04-09 18:45:45 +00:00
Dane Springmeyer
0cd1a5fbc6
maintain python24 compatibility
2010-04-07 18:44:52 +00:00
Alberto Valverde
f35b9bc7d0
Implemented a python wrapper for Symbolizers.__getitem__ so the explicit symbolizer subclass is returned (via Symbolizer.symbol). Added a symbol() method to every symbolizer. This fixes an introspection test (only 3 Todos, 5 errors and 1 failure to go) and Updated the mapnik2.__all__ list
2010-03-22 11:22:07 +00:00
Alberto Valverde
c79865586b
added an angle_mode attribute to GlyphSymbolizer to define the way the angle expression should be interpreted: as an azimuth or as a trigonometric angle
2010-03-22 11:21:17 +00:00
Alberto Valverde
18b811d19d
implemented a mechanism in mapnik2._injector to be able to override c++ methods (at the python layer only). Used it to implement a friendlier constructor for Feature and a add_geometry() method that accepts shapely.geometry.Geometrys, and wkb/wkt strings
2010-03-19 18:14:46 +00:00
Alberto Valverde
a613dc6397
Created python binding to memory_datasource which can be added Features built programaticcaly. See tests for sample use until docs are done. #528 is almost closed.
2010-03-19 16:16:15 +00:00
Alberto Valverde
17b61d16c4
More progress on #528 : Made setting Feature properties with values of type unicode or str possible. I've modified the UnicodeString_from_python_str from_python_converter so it can also convert python unicode objects (not just encocded strs). It was originally commented out so but it seems to work fine on my tests. Is there anything I0ve overlooked? (Artem?)
2010-03-19 13:42:58 +00:00
Alberto Valverde
a4d742283b
Implementead Feature instantiation from Python and an add_geometry method which accepst a wkb string
2010-03-19 13:42:25 +00:00
Alberto Valverde
31c3d20e43
modified the old arrow_symbolizer interface on glyph_symbolizer and documented it
2010-03-18 20:04:51 +00:00
Alberto Valverde
fc3a1beeef
initial skeleton of glyph_symbolizer (coarsely ported from arrow_symbolizer). Mapnik compiles but symbolizer does nothing useful yet and is going to be heavily modified to make use of expressions to be general enough to be usable for purposes other than rendering arrows representing vector direction/intensity
2010-03-18 20:04:35 +00:00
Artem Pavlenko
dbf89845e6
+ add using mapnik::color
2010-03-17 21:03:18 +00:00
Artem Pavlenko
e7bfba10fe
+ enanble installation of mapnik2 side by side with mapnik
2010-03-17 21:03:02 +00:00
Artem Pavlenko
83b20c3036
Revert "re factor expression grammar/parser stuff"
...
This reverts commit c58b8c4f71813a2490cf135573009c92be1a90c4.
2010-03-15 21:08:56 +00:00
Artem Pavlenko
0f8deb5e73
re factor expression grammar/parser stuff
2010-03-15 21:08:46 +00:00
Alberto Valverde
2f1d60b666
pre-eliminary raster coloring support
2010-03-12 13:34:13 +00:00
Alberto Valverde
e8a4929a5a
added a proxy to the deprecated Feature.properties interface in the python bindings
2010-03-11 19:59:40 +00:00
Artem Pavlenko
bbfdc4fab8
+ use mapnik2 for python module name
...
+ update rundemo.py
2010-03-08 11:54:44 +00:00
Dane Springmeyer
67a8f33da9
fix minor issues caught in debian packaging relating to executable status and spelling
2010-02-21 17:28:01 +00:00
Dane Springmeyer
c3ea59c3c8
don't pass expression_ptr as const
2010-02-03 18:36:01 +00:00
Artem Pavlenko
f4e7a7931f
+ implement x/y resolution
2010-02-03 16:56:42 +00:00
Dane Springmeyer
c950e38a46
reenamble python access to TextSymbolizer 'name' expression
2010-01-30 03:08:03 +00:00
Dane Springmeyer
c7947b37c3
comment out new unicode stuff in mapnik_feature due to #505
2010-01-30 00:53:29 +00:00
Artem Pavlenko
0aa7c5ff57
+ corrected win32 dll name
2010-01-20 10:04:32 +00:00
Dane Springmeyer
da72bfbecd
fix typos in __init__.__doc__ of lib names on windows
2010-01-19 19:56:09 +00:00
Dane Springmeyer
6115a1590d
add 'gamma' attribute to PolygonSymbolizer, along with tests against simplified world borders shapefile - setting gamma to .5-.7 can remove gaps in processed_p.shp depending on background color - closes #428
2010-01-13 00:31:45 +00:00
Dane Springmeyer
a80f352d58
sync trunk with r1537, adding new TextSymbolizer options in python - TODO - add reflect ShieldSymbolizer options
2010-01-11 18:59:14 +00:00
Dane Springmeyer
067fdb884d
sync trunk with new cairo support added previously to 0.7 branch in r1531
2010-01-11 18:55:30 +00:00
Dane Springmeyer
644843230d
add missing PostGIS options in python docstrings
2010-01-11 00:22:56 +00:00
Artem Pavlenko
1a4b9f6b0a
+ use ctypes instead of dl (deprecated in python3) module
2009-12-21 13:44:30 +00:00
Artem Pavlenko
47dc1e197b
+ merge mapnik2 to trunk
2009-12-16 20:02:06 +00:00
Dane Springmeyer
f60fa76242
merge 0.7. branch changes back into trunk
2009-12-15 19:25:35 +00:00
Dane Springmeyer
fe3ffe6c2d
rename map.save_map_string to map.save_map_to_string
2009-12-06 22:33:47 +00:00
Dane Springmeyer
561d937f2a
translate a C++ config error into a python RuntimeError - fixes #442
2009-12-06 22:22:56 +00:00
Dane Springmeyer
d0b4db9ba3
add support for relative paths for entities when using libxml2 and loading xml from string - thanks dodobas for the initial patch
2009-12-06 22:18:45 +00:00
Dane Springmeyer
a247dd2922
avoid clobbering the prefix variable
2009-12-05 03:51:29 +00:00
Dane Springmeyer
3c9655b721
improve reliability of default python linking on os x - closes #380
2009-12-05 03:07:58 +00:00
Dane Springmeyer
51569ce9fc
document shared opening option in docstrings - closes #375
2009-12-04 23:32:25 +00:00
Dane Springmeyer
c570f1c424
add missing options (srid, persist_connection) to PostGIS docstring
2009-11-28 23:26:57 +00:00
Dane Springmeyer
b104253d9c
Add ability to link to custom icu lib name, and remove the unneeded linking to icudata on osx, while offering compiler flags required for compiling against libicucore provided by Apple
2009-11-24 20:32:41 +00:00
Dane Springmeyer
782e0449e8
update python api docs and toch up formatting of __init__.py
2009-11-08 17:02:17 +00:00
Artem Pavlenko
a78e51ec56
+ avoid duplicate code
2009-10-19 15:16:16 +00:00
Artem Pavlenko
fb30c36143
+ patch from Dane Springmeyer improves pickling support
...
for mapnik.Map object ( needs some more work!!)
2009-10-19 14:22:11 +00:00
Dane Springmeyer
fdf7ca3a66
add docstrings to enum's in mapnik_stroke - patch from podolsir
2009-09-27 17:10:26 +00:00
Dane Springmeyer
ad47ad321d
avoid namespace pollution by defining __all__ in __init__.py - nice patch from podolsir
2009-09-27 17:07:41 +00:00
Dane Springmeyer
8fd907f8fc
remove self argument in python docstring for boost <1.35 compatibility allowing the removal of boost version checking - addresses #29
2009-09-27 01:31:30 +00:00
Dane Springmeyer
10dff4b8cf
mapnik_coord_env_projection.patch from podolsir which adds docstrings to mapnik_envelope.cpp, mapnik_coord.cpp, and mapnik_projection.cpp as well as the __init__.py - addresses #29
2009-09-26 17:15:22 +00:00
Dane Springmeyer
d9d15bb081
avoid segfault when pickling a TextSymbolizer using wrap_character by removing const declaration
2009-09-25 20:29:03 +00:00
Dane Springmeyer
a414832338
fix boost version available with docs support
2009-09-25 17:59:57 +00:00
Dane Springmeyer
ef1e210269
improve boost::python docstrings for map, color, and stroke, adding currently unused patch against enumeration from podolsir
2009-09-25 17:50:37 +00:00
Dane Springmeyer
23ab337f5c
use the 'arg' class instead of the deprecated 'args' for boost::python docs http://www.boost.org/doc/libs/1_40_0/libs/python/doc/v2/args.html
2009-09-25 17:38:38 +00:00
Dane Springmeyer
016659f22a
add missing boost version include to enable new docstrings
2009-09-25 17:16:54 +00:00
Dane Springmeyer
a50bfa3811
fix typos in docstrings
2009-09-25 04:21:14 +00:00
Dane Springmeyer
ca32939e35
formatting
2009-09-25 03:31:28 +00:00
Dane Springmeyer
6abc56ef08
Add docstrings to mapnik_color.cpp - modified patch from podolsir - thanks - addresses #29
2009-09-25 03:27:29 +00:00
Dane Springmeyer
72debc046c
remove fontset from pickling for now, and properly set wrap_char from string
2009-08-27 23:39:18 +00:00
Dane Springmeyer
5b9ddbaecd
add pickling support for point_symbolizer and expose the filename property (patch from mishok13 - thanks) - closes #114 , addresses #345
2009-08-27 21:11:17 +00:00
Dane Springmeyer
e897b832a4
+reflect new text symbolizer options added in r1254 - closes #391
2009-08-17 22:54:50 +00:00
Dane Springmeyer
16f4efc07b
python: add better handling of cairo/pycairo support, refactor rundemo.py, add basic tests for cairo surfaces ( closes #392 )
2009-07-28 06:27:10 +00:00
Dane Springmeyer
e7dd9094a5
revert unintended file changes from r1275
2009-07-26 01:15:44 +00:00
Dane Springmeyer
45266074c8
scons: fix typo, and ensure all temp output is writeable
2009-07-26 01:08:51 +00:00
Dane Springmeyer
123182d0af
scons: make sure to link to cairo if present but even if pycairo is not
2009-07-24 07:20:27 +00:00
Dane Springmeyer
7e6ff2a651
reflect save_map_string method in python ( #396 )
2009-07-24 06:25:09 +00:00
Dane Springmeyer
8db8c27446
apply patch from mishok13 improving handling of conversion of boost python type definitions to python types definitions (closes ##397)
2009-07-23 18:20:10 +00:00
Dane Springmeyer
476838d259
apply patch from mishok13 to improve font and plugin registration code from #398 , but does not close #398 because auto-registration is maintained for now
2009-07-23 17:54:33 +00:00
Dane Springmeyer
9ce6792eda
add a function to query for the svn revision of the mapnik python bindings
2009-07-17 20:51:39 +00:00
Artem Pavlenko
c83000eb60
+ use UnicodeString->utf8->PyUnicode conversion
2009-07-13 22:20:25 +00:00
Artem Pavlenko
9872a3be7c
+ fixed UnicodeString to Py_Unicode conversion (needs testing)
2009-07-13 21:39:39 +00:00
Dane Springmeyer
32b77c2e88
typo fix
2009-07-07 23:42:29 +00:00
Artem Pavlenko
7ebe50d9de
+ Cleaner builds - don't import everything from ENV!
...
+ Add FRAMEWORK_SEARCH_PATH option for Max OS X
2009-06-29 14:04:44 +00:00
Dane Springmeyer
e10b471a90
+reflect 'plugin_names()' method in python
2009-06-22 07:04:07 +00:00
Dane Springmeyer
e7457a139a
+add pickle support to text_symbolizer, improve support for stroke, and add tests for stroke and text pickling via python - see: #345
2009-05-26 01:50:58 +00:00
Dane Springmeyer
dadd64519b
+add pickle support for proj_transform and view/coord_transform - see #345
2009-05-24 06:31:32 +00:00
Dane Springmeyer
92ca0a8ac9
+expose parameters as python list and dict, and add pickle support by taking advantage of boost visitation - needs further review - see #345
2009-05-24 06:12:32 +00:00
Dane Springmeyer
5aa1fda60e
+add partial pickle support for strokes - see #345
2009-05-24 06:08:21 +00:00
Dane Springmeyer
e7e0dd9045
+add pickle support to line_symbolizer - see #345
2009-05-24 06:03:23 +00:00
Dane Springmeyer
def1c709ce
+add pickle support to projection class - see #345
2009-05-24 06:02:33 +00:00
Dane Springmeyer
8b854a1bb2
+add pickle support for shield_symbolizer - see #345
2009-05-24 05:55:35 +00:00
Dane Springmeyer
1218b4c034
+add pickle support for polygon_symbolizer - see #345
2009-05-24 05:52:54 +00:00
Dane Springmeyer
91876c9863
+add support for pickling a mapnik query - see #345
2009-05-24 05:49:03 +00:00
Dane Springmeyer
bd1407b7c5
+add pickle support for pattern symbolizers - see #345
2009-05-24 05:45:07 +00:00
Dane Springmeyer
ff36980723
+add pickle support for raster_symbolizer - see #345
2009-05-24 05:34:18 +00:00
Dane Springmeyer
7fcc462a8f
apply patch from mishok13 to allow proper checking for pycairo support compiled into mapnik - closes #284
2009-05-24 04:25:51 +00:00
Dane Springmeyer
b2570bd866
apply patch from mishok13 from #wherecamp to expose dash array list in python along with a small test case - closes #317
2009-05-24 04:14:35 +00:00
Dane Springmeyer
80a5bdf6e3
revert pickling support on datsources since they can't be created directly from python - we now dump and load in the layer object via params as of r1149 - see #345
2009-05-20 00:26:44 +00:00
Dane Springmeyer
6825541057
fix pickling for styles since they have state and no initial args
2009-05-20 00:21:29 +00:00
Dane Springmeyer
424980d92b
via a layer object pickle datasource params rather than the datasource object itself - see #345
2009-05-20 00:18:46 +00:00
Dane Springmeyer
9a2894dc3c
+copy/pickle support for Coord objects - see #345
2009-05-20 00:08:18 +00:00
Dane Springmeyer
9b02e6ced4
+ reflect raster symbolizer options in python (may need to eventually switch to ENUMS)
2009-05-13 20:28:51 +00:00
Dane Springmeyer
904f1d6899
add python wrapper and docstring for kismet plugin - closes #293
2009-05-04 21:40:48 +00:00
Dane Springmeyer
4e1e6c6c1d
ogcserver: upgrade GetFeatureInfo based on changes in r1121
2009-05-01 02:27:56 +00:00
Dane Springmeyer
196b01c16c
+ make interface to datasource attributes, featuresets, and features more pythonicby adding feature.envelope() method returning combined extent of geometries, ds.fields() method returning list of names, and featureset.features() which returns list of all features in featurset - now accessible via datasource.all_features()- closes #283 , #280 , #171
2009-05-01 01:21:29 +00:00
Lucio Asnaghi
eaa49ca028
+ applying patch proposed by dane that add explicit_defaults selection when saving maps ( closes #327 )
2009-04-28 21:44:34 +00:00
Dane Springmeyer
57f995b0cc
ogcserver: apply fix for dynamic script name in mod_server (from tmcw, closes #277 )
2009-04-20 15:32:22 +00:00
Dane Springmeyer
4429958816
minor formatting to render_to_file docstring
2009-04-12 21:36:45 +00:00
Dane Springmeyer
48dea30184
slight formatting fixes to docstrings in layer class
2009-04-12 20:57:08 +00:00
Artem Pavlenko
8d963e4270
+ use separate x/y scales - important for raster
2009-04-10 12:00:51 +00:00
Dane Springmeyer
82c6e87578
Support xml lib fallback and GetFeatureInfo on all layers - closes #303 and #304
2009-04-09 18:40:39 +00:00
Dane Springmeyer
c9a9fcf287
named docstring arguments only supported in boost python >= 1.35
2009-04-08 22:25:38 +00:00
Dane Springmeyer
000dcab3c9
Maintain support for boost version before 1.34 when writing argument signatures and add docstring for buffered_envelope
2009-04-08 20:11:45 +00:00
Dane Springmeyer
512029bfa4
update docstrings based on jpeg quality controls ( #198 )
2009-04-08 00:27:36 +00:00
Dane Springmeyer
72c2f903ca
We should actually use 'self' as the term for first argument/instance
2009-04-07 23:26:33 +00:00
Dane Springmeyer
47822d578e
Add argument aliases to __init__ method for easier/more understandable introspection - addresses #29
2009-04-07 23:17:57 +00:00
Andreas Volz
39bdab7762
forget to escape path
2009-04-05 21:02:12 +00:00
Andreas Volz
d134de3008
new added file
2009-04-04 12:24:45 +00:00
Dane Springmeyer
3b26f6b01a
add docstring and factory method for osm plugin - closes #275
2009-04-01 00:43:08 +00:00
Artem Pavlenko
6268f4fb80
+ oops, fixed
2009-04-01 00:11:14 +00:00
Artem Pavlenko
ce45f8dec3
+ fix UChar to wchar_t conversion
2009-03-31 22:59:34 +00:00
Dane Springmeyer
c8340e7161
ogcserver: use PATH_INFO to contruct the request 'onlineresource' since SCRIPT_NAME will be emtpy in a WSGI app - fixes #243 for the WSGI wrapper
2009-03-31 17:18:41 +00:00
Dane Springmeyer
a7d8e7b240
fix axis ordering for epsg codes >=4000 and <5000 - based on patch from crschmidt (thanks) - closes #241
2009-03-31 17:09:36 +00:00
Lucio Asnaghi
8c775a6da3
+ added "encoding" datasource parameter to occi plugin
...
+ added factory methods with docstrings for occi plugin (closes #274 )
2009-03-31 07:53:29 +00:00
Artem Pavlenko
10f55a678b
+ add support for vertical_alignment (text_symbolizer)
...
valid values are : top, middle, bottom
default to middle which can now center multi-line text
2009-03-30 20:47:26 +00:00
Dane Springmeyer
db7b0edd58
revise handling of featureset returned from GetFeatureInfo 'query_map_point' - closes #271 : Todo GetFeatureInfo support still depends on addressing #272
2009-03-30 14:59:42 +00:00
Dane Springmeyer
aaf6fca823
add docstring for Datasource wrapper
2009-03-30 05:10:00 +00:00
Dane Springmeyer
7540ef409a
add docstrings to top of file and factory methods in __init__.py and harmonize indentation to 4 spaces
2009-03-30 04:37:28 +00:00
Dane Springmeyer
c9b4d71b1a
add docstrings to main boost python functions
2009-03-30 04:32:23 +00:00
Dane Springmeyer
a87acb13d5
ogcserver: add module level docstrings for remaining ogcserver files
2009-03-30 04:25:01 +00:00
Dane Springmeyer
a40bcc2571
ogcserver: in relation to load_XML() rename and break apart methods for copying layer and style objects and avoid attempting to register a style > 1 time if found in aggregate styles of a layer
2009-03-30 04:24:01 +00:00
Dane Springmeyer
358f087057
fix scale_denominator to be a method (not property) and shuffle alphabetically
2009-03-30 04:17:03 +00:00
Dane Springmeyer
2f04dc753c
scons: normalize paths written to 'paths.py' to avoid double '//'
2009-03-30 04:15:11 +00:00
Dane Springmeyer
df7a5b8429
scons: add module docstring to 'paths.py'
2009-03-29 19:05:42 +00:00
Artem Pavlenko
2c878b52cf
+ reflect CoordTransform in Python (TODO: rename to ViewTransform in core lib)
2009-03-29 10:26:44 +00:00
Andreas Volz
e04a9cddda
- added paths.py.in -> a template to generate paths.py with automake
...
- added ax_boost_program_options.m4 to detect boost library needed to utils
- print out at configure script end the build configuration
2009-03-27 00:17:52 +00:00
Andreas Volz
887518fc57
- install plugins in lib/mapnik/input
...
- Fix: no sqlite3 for kismet
- python files compile and install
2009-03-25 23:11:49 +00:00
Andreas Volz
7bb3354f61
- compile python binding c++ code
...
- check for python
2009-03-25 20:16:48 +00:00
Artem Pavlenko
570fe611f4
+ qualify 'value' to avoid names clashing
...
+ use _enumeration helper wrapper
2009-03-21 12:39:06 +00:00
Artem Pavlenko
24174d68e9
+ reflect aspect_fix_mode in Python
2009-03-21 11:22:10 +00:00
Artem Pavlenko
9970766461
formatting
2009-03-15 23:33:46 +00:00
Dane Springmeyer
40ef82f225
ogcserver: Fix syntax errors accidentally introduced in r986 - patch from rcoup ( closes #256 )
2009-03-09 00:15:03 +00:00
Dane Springmeyer
4fb1eb6c0e
Add missing include
2009-03-05 04:44:34 +00:00
Dane Springmeyer
37837db4c1
move the boost::python namespace back to original location
2009-03-05 03:47:15 +00:00
Dane Springmeyer
ea2e39b81b
ogcserver: Add content-length to cgi, wsgi, and mod-python handlers and max_age to wsgi and mod_python - thanks tmcw, closes #251
2009-03-03 17:08:19 +00:00
Dane Springmeyer
44aa40a610
ogcserver: remove unused import
2009-03-03 17:04:58 +00:00
Dane Springmeyer
9f40e90def
scons: move all configure options to 'scons configure' stage, using pickling to maintain configure options across builds
2009-02-26 23:35:09 +00:00
Dane Springmeyer
46df10d7d0
scons: add boolean option to avoid linking to Framework Python on darwin ( closes #248 )
2009-02-25 01:02:43 +00:00
Dane Springmeyer
90f3703505
scons: add option called 'LIB_DIR_NAME' to control the relative directory where input plugins are installed and where python looks to register them
2009-02-23 00:47:01 +00:00
Dane Springmeyer
918db0bfb8
+ add string representation for Projection object in python
2009-02-22 18:22:31 +00:00
Dane Springmeyer
42be8116e1
scons: add a SYSTEM_FONTS variable to avoid installation of bundled dejavu fonts and instead point Python bindings at given value - also print SCONS_LOCAL_CONFIG values for user during configure
2009-02-20 19:31:08 +00:00
Dane Springmeyer
a8b6b0022b
ogcserver: use the ordered layering from r938 and a layer named __all__ to signal a request all layers (addresses #226 )
2009-02-19 18:20:14 +00:00
Dane Springmeyer
06e073c7ba
ogcserver: apply patch from crschmidt to support correct layer ordering in GetCaps response ( closes #226 )
2009-02-19 18:02:17 +00:00
Dane Springmeyer
292056da77
remove unneeded include added in r921
2009-02-17 05:45:59 +00:00
Dane Springmeyer
98ada350ea
+ add pickling support for styles and rules - TODO expose symbolizer object in general( #190 ) and for pickling
2009-02-17 05:23:10 +00:00
Dane Springmeyer
3e51c02513
+ add pickling interface to layers and datasources ( closes #205 ) - TODO support parameters
2009-02-16 01:53:34 +00:00
Dane Springmeyer
dbdbfa4333
ogcserver: r909 added the wrong modserer.py file, reverting to correct one.
2009-02-15 23:13:17 +00:00
Dane Springmeyer
f85c0c8b68
+ add modified mod_python ogcserver wrapper patch for 'modserver.py' from tmcw ( closes #101 )
2009-02-15 23:02:45 +00:00
Dane Springmeyer
7bc810b6b8
ogcserver: Add html exception to allowedexceptions
2009-02-15 22:51:00 +00:00
Dane Springmeyer
65bb344440
ogcserver: don't set the background color unless the get param exists
2009-02-15 22:43:03 +00:00
Dane Springmeyer
771e76f637
+ add style pickling support to mapnik::Map, fix tabs, and only un-pickle background color if exists (closes 233)
2009-02-15 19:53:48 +00:00
Artem Pavlenko
98267e2959
+ MAPNIK_VERSION (defined in mapnik/version.hpp)
...
+ expose version in Python :
mapnik.mapnik_version()
mapnik.mapnik_version_string()
+ add SQLite plug-in in Python bindings
2009-02-12 16:44:04 +00:00
Dane Springmeyer
be2c27ff86
OGCServer: add support for load_map() within WMSFactory (thanks xcacou,theosys,and tmcw for early patches) ( closes #129 )
2009-02-12 02:12:26 +00:00
Dane Springmeyer
577ee5ee22
+ implement a layer copy method, provide a 'default' layername that will return a map with all layers rendered, and clean up PIL imports
2009-02-12 01:45:33 +00:00
Dane Springmeyer
e24b6f3654
Improve usability of ogcserver debug mode by printing to new html response when in debug mode or when the QUERY_STRING is empty, signaling testing
2009-02-12 01:28:57 +00:00
Dane Springmeyer
da9640c39d
convert to unix line endings
2009-02-12 01:17:30 +00:00
Dane Springmeyer
75d5e1c9e1
Convert to unix line endings
2009-02-12 01:11:18 +00:00
Tom Hughes
220bb3e99a
Revert the patch to add a show_page flag to the cairo renderer and
...
replace it with support for rendering to a cairo context rather than
a cairo surface.
When rendering to a surface a show_page is done, when rendering to a
context it is not so that multiple renders can be done, possibly with
modified scaling and/or translation.
2009-02-06 00:46:29 +00:00
Dane Springmeyer
51293f64ba
+ apply show_page.patch (thanks Berteun) ( closes #201 )
2009-02-05 18:09:14 +00:00
Artem Pavlenko
a45e93b79a
+ more property goodness on the TextSymbolizer from Python (springmeyer)
2009-02-05 11:54:07 +00:00
Artem Pavlenko
c3ff9c842d
+ scons_python_usability_improvements2 (springmeyer)
2009-02-03 23:00:03 +00:00
Artem Pavlenko
ffef15e22e
+ reflect buffered_envelope method
...
+ fix view_transform to return ctrans (TODO)
2009-02-02 23:39:20 +00:00
Dane Springmeyer
f5127d6ee4
Remove reference to CAIRO_HAS_IMAGE_SURFACE macro since this is not supported until cairo 1.8 release
2009-01-28 21:11:10 +00:00
Dane Springmeyer
f414843c4f
+ First implementation of OGR(vector) input plugin. Patch from kunitoki. Thanks! Closes #170
2009-01-28 20:16:31 +00:00
Artem Pavlenko
e7014c2b7e
+ SCons_usabilty_improvements2.patch (springmeyer)
...
(see #186 ticket for details)
2009-01-26 22:58:55 +00:00
Dane Springmeyer
2d47f24a7e
+ added ability to transform Envelopes in addition to Coords in new python ProjTransform, closes #117
2009-01-25 19:02:07 +00:00
Artem Pavlenko
8b298729bf
+ mapnik-centralise-image-tostring-functions.patch (jonb)
...
(moves Image.tostring() to core c++ code)
2009-01-19 22:51:55 +00:00
Artem Pavlenko
7d6a21dfeb
+ mapnik-fix-threaded-python-exceptions.patch from jonb
2009-01-17 20:45:53 +00:00
Artem Pavlenko
391ae4c4be
+ mapnik-image-from-cairo-in-python.patch from jonb
...
adds a method to the python bindings to create an Image from a
Cairo.ImageSurface().
2009-01-17 20:34:58 +00:00
Artem Pavlenko
cad0a839b6
+ mapnik-load-map-from-string.patch (jonb)
2009-01-15 23:51:07 +00:00
Artem Pavlenko
a07767ef3d
+ (c++) renamed mapnik::Color to mapnik::color
...
+ (c++) added mapnik::color ctor from named colours (TODO: consider not to export color_factory)
+ (Python) fixed pickling
+ (Python) added to_hex_string method
2009-01-14 12:10:24 +00:00
Dane Springmeyer
689b1eb018
Made Scale Denominator available as a property of the Map
2009-01-14 06:12:55 +00:00
Dane Springmeyer
f0d58a99f3
+ expose map resize and remove_all methods as well as view_transform property in python
2009-01-14 04:52:04 +00:00
Artem Pavlenko
fd194e2ba6
+ reflect mapnik::proj_transform in Python ( #117 )
2009-01-13 15:49:26 +00:00
Artem Pavlenko
9a75034a88
+ applied python_point_datasource.patch from lwu
2009-01-13 00:56:09 +00:00
Artem Pavlenko
14fa35fb18
+ enable multiple python threads with Cairo rennderer patch from jonb
2009-01-10 23:30:33 +00:00
Artem Pavlenko
bb284d0cfc
+ enable multiple python threads patch from jonb
2009-01-10 17:57:59 +00:00
Artem Pavlenko
d8226945d4
+ improved pkg-config logic
2009-01-10 12:08:55 +00:00
Dane Springmeyer
a3e81dd344
+ more complete docstrings for the boost::python Layer class
2008-12-04 23:33:18 +00:00
Artem Pavlenko
48a13f8cbc
appled boost_append_osx_patch_v3 from jbronn
2008-12-04 23:20:44 +00:00
Artem Pavlenko
190f8e5cb9
+ return boost::optional in find_style (c++)
...
+ return feature_type_style by value, raise KeyError otherwise (Python)
2008-11-18 21:15:46 +00:00
Dane Springmeyer
2c83877108
Added python docstrings to mapnik Map class
2008-11-17 23:44:50 +00:00
Dane Springmeyer
86dcb79808
Minor spelling change to use more common spatial term
2008-11-17 01:32:45 +00:00
Artem Pavlenko
bf1ea518c0
+ Exposed the proj forward and inverse as methods on the actual geometry (springmeyer)
2008-11-16 22:36:21 +00:00
Artem Pavlenko
d4032c217e
Exposed the proj forward and inverse as methods on the actual geometry (springmeyer)
2008-11-16 22:30:44 +00:00
Artem Pavlenko
df8cfcab03
+ fixed building with boost-1_36
...
+ corrected order of BOOST_TOOLKIT
(create symlinks on OSX + boost-1_35)
2008-10-08 06:30:38 +00:00
Artem Pavlenko
20f3a9460d
+ expose buffer_size parameter (default 0)
...
influences envelope used by placement detector
( i.e. 'avoid_edges' parameter)
2008-09-21 10:14:38 +00:00
Artem Pavlenko
565da55742
+ point symbolizer opacity patch from Brian (openstreetmap@brian.quinion.co.uk)
2008-09-19 08:27:32 +00:00
Artem Pavlenko
1947a1293e
removed multiple bases for now
2008-09-17 20:10:04 +00:00
Artem Pavlenko
beec0d6a03
use text_symbolizer,symbolizer_with_image as bases
2008-09-15 08:46:18 +00:00
Tom Hughes
72e21fa080
Make the python bindings for image views actually only return data
...
from the view and not the whole image.
2008-07-30 12:47:37 +00:00
Tom Hughes
e8935c4cf8
Fix brain fade - python cairo bindings should work again now.
2008-07-30 07:37:48 +00:00
Tom Hughes
018852148c
Don't try and include cairo support in the python bindings if we
...
haven't built mapnik itself with cairo support.
2008-07-29 08:01:57 +00:00
Dave
b228feaa49
Fix the OGCServer (would always throw invalid image format errors)
2008-07-25 01:06:09 +00:00
Artem Pavlenko
fe31150a7b
corrected boost libs names logic
2008-06-29 11:40:35 +00:00
Artem Pavlenko
3f9127b5d0
reverting back to 700
2008-06-29 10:58:29 +00:00
Artem Pavlenko
3275cf9ce6
applied font fallbacj patch from Beau Gunderson
2008-06-29 10:40:08 +00:00
Tom Hughes
4483d59797
Revert previous fix for #89 and add a new improved fix that enhances the
...
value class to have a proper null type and do comparisions SQL style so
that null is neither equal nor not equal to other things.
2008-04-12 15:22:27 +00:00