Commit graph

330 commits

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