Commit graph

388 commits

Author SHA1 Message Date
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