Home | Trees | Indices | Help |
|
---|
|
Mapnik classes to assist in creating printable maps
basic usage is along the lines of
import mapnik
page = mapnik.printing.PDFPrinter() m = mapnik.Map(100,100) mapnik.load_map(m, "my_xml_map_description", True) m.zoom_all() page.render_map(m,"my_output_file.pdf")
see the documentation of mapnik.printing.PDFPrinter() for options
Classes | |
centering Style of centering to use with the map, the default is constrained |
|
resolutions some predefined resolutions in DPI |
|
PDFPrinter Main class for creating PDF print outs, basically contruct an instance with appropriate options and then call render_map with your mapnik map |
Functions | |||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
Variables | |
HAS_PYCAIRO_MODULE = False
|
|
HAS_PANGOCAIRO_MODULE = False
|
|
HAS_PYPDF = False
|
|
pagesizes =
size of a pt in meters |
|
pt_size = 0.000352777777778
|
|
__package__ =
|
Function Details |
opens the given multipage PDF and converts each page to be a layer in a single page PDF layer_names should be a sequence of the user visible names of the layers, if not given or if shorter than num pages generic names will be given to the unnamed layers if output_name is not provided a temporary file will be used for the conversion which will then be copied back over the source file. requires pyPdf >= 1.13 to be available |
Variables Details |
pagesizessize of a pt in meters
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Mon Jun 3 18:45:01 2013 | http://epydoc.sourceforge.net |