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