Commit graph

191 commits

Author SHA1 Message Date
Artem Pavlenko
703240cf40 + update to reflect interface changes 2011-09-13 13:23:30 +00:00
Artem Pavlenko
6575e34973 + add initial support for new WKT path/geometry parser concept 2011-09-08 11:52:59 +00:00
Dane Springmeyer
90acfb3e1c +reflect mapnik.Palette in python 2011-08-31 02:28:38 +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
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
d403cbf4bc python: make mapnik2.Grid and mapnik2.GridView available with from mapnik import * 2011-06-24 00:00:40 +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
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
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
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
9548492036 add python binding to grid_renderer allowing conversion of grid buffer into json 2011-04-26 23:51:29 +00:00
Dane Springmeyer
39a2f9ef6a update all future versions referenced to be >= 2.0.0 2011-04-19 00:20:50 +00:00
Artem Pavlenko
e54eb342e2 + from_wkt factory method
+ expose mapnik::eGeomType enum
2011-02-28 12:40:59 +00:00
Dane Springmeyer
c5833a6db8 remove unmaintained autotools scripts 2011-02-04 22:22:16 +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
75649b8863 add 'interior' point placement option to point_symbolizer - closes #709 2011-02-01 08:16:32 +00:00
Dane Springmeyer
eb60010a05 use 'import sys' syntax for consistency 2011-01-03 22:33:57 +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
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
c9feedf5ad ogcserver devel has moved to github, issue deprecation warning 2010-11-22 16:17:58 +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
Dane Springmeyer
2f46db5aba python: add back mapnik.Filter and mapnik.Box2d as deprecated + formatting 2010-10-07 01:03:16 +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
18dd9ff40e python3 support - patch thanks to Haoyu Bai - closes #334 2010-09-26 12:15:16 +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
3446a62265 add mapnik_version_from_string helper function 2010-08-10 17:13:14 +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
Artem Pavlenko
efa6010517 + impl composite method (TODO:add missing modes) 2010-07-03 20:08:49 +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
Artem Pavlenko
53848ce68f + reflect markers_symbolizer in python 2010-06-06 12:10:28 +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
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
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
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
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
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
fe3ffe6c2d rename map.save_map_string to map.save_map_to_string 2009-12-06 22:33:47 +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
782e0449e8 update python api docs and toch up formatting of __init__.py 2009-11-08 17:02:17 +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
ad47ad321d avoid namespace pollution by defining __all__ in __init__.py - nice patch from podolsir 2009-09-27 17:07:41 +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
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
32b77c2e88 typo fix 2009-07-07 23:42:29 +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
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
82c6e87578 Support xml lib fallback and GetFeatureInfo on all layers - closes #303 and #304 2009-04-09 18:40:39 +00:00
Andreas Volz
39bdab7762 forget to escape path 2009-04-05 21:02:12 +00:00
Dane Springmeyer
3b26f6b01a add docstring and factory method for osm plugin - closes #275 2009-04-01 00:43:08 +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
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
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
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
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
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
918db0bfb8 + add string representation for Projection object in python 2009-02-22 18:22:31 +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
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
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
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
bf1ea518c0 + Exposed the proj forward and inverse as methods on the actual geometry (springmeyer) 2008-11-16 22:36:21 +00:00
Dave
b228feaa49 Fix the OGCServer (would always throw invalid image format errors) 2008-07-25 01:06:09 +00:00
Artem Pavlenko
308e315432 added Unicode support based on ICU 2008-02-18 21:40:34 +00:00
David
b2df387a9d - merged strict-xml-branch r530:532 to trunk:
- libxml2 support
    - strict error handling while parsing XML map files
    - implemented save_map()
    - removed some duplicate defaults
    - all symbolizers with icons share a common base class now
2007-09-25 18:47:12 +00:00
Artem Pavlenko
8e071f84c7 1. Changed internal geometry representation (explicit support for multi geometries)
(FIXME : label_spacing is still, too slow!!) 
2. Re-use some agg objects.
3. placement_finder cleanups! 
4. Added support for 'building_symbolizer' - extruded polygons
2007-09-16 11:23:51 +00:00
Artem Pavlenko
cc3b5bece1 applied patch from jonb - glob for all *.ttf 2007-06-20 20:20:16 +00:00
Artem Pavlenko
8010d5433f 1. Removed srid from geometry class
2. Pass resolution to bbox query
3. Use variant<int,double,string> as parameter value e.g in Python:
	ds = Raster(file="/path/to/file",lox = 12312.4,.....)
   Added extractor facility to work with mapnik::parameter (C++):
	
	mapnik::parameters params;
	params["parameter0"] = 123.456;
	params["parameter1"] = "123.456"; // initialize with string extract double later
	
	boost::optional<double> val0 = params.get<double>("parameter0");
	if (val0) 
	{
	   std::cout << *val0;
        }
	
	
	// with default value. NOTE: there is no 'parameter2' in params
	boost::optional<double> val2 = params.get<double>("parameter2",654.321);
	std::cout << * val2;
        
	// 
4. Added Gdal factory method in __init__.py

        ds =  Gdal(file="/tmp/file.tiff")
2007-06-12 08:59:54 +00:00