Package mapnik :: Module _mapnik

Module _mapnik

Classes
  Color
  DatasourceCache
  Feature
  Featureset
  FontEngine
  Geometry2d
  Image
This class represents a 32 bit RGBA image.
  ImageView
A view into an image.
  Layer
A Mapnik map layer.
  Layers
  LinePatternSymbolizer
  LineSymbolizer
  Map
The map object.
  Names
  Parameter
  Parameters
  PointDatasource
  PointSymbolizer
  PolygonPatternSymbolizer
  PolygonSymbolizer
  ProjTransform
  Properties
  Query
a spatial query data object
  RasterSymbolizer
  Rule
  Rules
  ShieldSymbolizer
  Singleton
  Stroke
  Style
  Symbolizer
  Symbolizers
  TextSymbolizer
  ViewTransform
  aspect_fix_mode
  label_placement
  line_cap
  line_join
  vertical_alignment
Functions
 
CreateDatasource(...)
CreateDatasource( (dict)arg1) -> Datasource :
 
Describe(...)
Describe( (Datasource)arg1) -> str :
 
Filter(...)
Filter( (str)arg1) -> Filter :
 
forward_(...)
forward_( (Coord)arg1, (Projection)arg2) -> Coord :
 
inverse_(...)
inverse_( (Coord)arg1, (Projection)arg2) -> Coord :
 
load_map(...)
load_map( (Map)arg1, (str)arg2 [, (bool)arg3]) -> None :
 
load_map_from_string(...)
load_map_from_string( (Map)arg1, (str)arg2 [, (bool)arg3]) -> None :
int :
mapnik_version()
Get the Mapnik version number
 
render(...)
render( (Map)arg1, (Image)arg2, (int)arg3, (int)arg4) -> None :
 
render_tile_to_file(...)
render_tile_to_file( (Map)arg1, (int)arg2, (int)arg3, (int)arg4, (int)arg5, (str)arg6, (str)arg7) -> None :
 
render_to_file(...)
render_to_file( (Map)arg1, (str)arg2, (str)arg3) -> None :
 
save_map(...)
save_map( (Map)arg1, (str)arg2) -> None :
 
scale_denominator(...)
scale_denominator( (Map)arg1, (bool)arg2) -> float :
Function Details

CreateDatasource(...)

 

CreateDatasource( (dict)arg1) -> Datasource :

    C++ signature :
        boost::shared_ptr<mapnik::datasource> CreateDatasource(boost::python::dict)

Describe(...)

 

Describe( (Datasource)arg1) -> str :

    C++ signature :
        std::string Describe(boost::shared_ptr<mapnik::datasource>)

Filter(...)

 

Filter( (str)arg1) -> Filter :

    C++ signature :
        boost::shared_ptr<mapnik::filter<mapnik::feature<mapnik::geometry<mapnik::vertex<double, 2> >, boost::shared_ptr<mapnik::raster> > > > Filter(std::string)

forward_(...)

 

forward_( (Coord)arg1, (Projection)arg2) -> Coord :

    C++ signature :
        mapnik::coord<double, 2> forward_(mapnik::coord<double, 2>,mapnik::projection)

forward_( (Envelope)arg1, (Projection)arg2) -> Envelope :

    C++ signature :
        mapnik::Envelope<double> forward_(mapnik::Envelope<double>,mapnik::projection)

inverse_(...)

 

inverse_( (Coord)arg1, (Projection)arg2) -> Coord :

    C++ signature :
        mapnik::coord<double, 2> inverse_(mapnik::coord<double, 2>,mapnik::projection)

inverse_( (Envelope)arg1, (Projection)arg2) -> Envelope :

    C++ signature :
        mapnik::Envelope<double> inverse_(mapnik::Envelope<double>,mapnik::projection)

load_map(...)

 

load_map( (Map)arg1, (str)arg2 [, (bool)arg3]) -> None :

    C++ signature :
        void load_map(mapnik::Map {lvalue},std::string [,bool])

load_map_from_string(...)

 

load_map_from_string( (Map)arg1, (str)arg2 [, (bool)arg3]) -> None :

    C++ signature :
        void load_map_from_string(mapnik::Map {lvalue},std::string [,bool])

mapnik_version()

 
    Get the Mapnik version number

    C++ signature :
        unsigned int mapnik_version()

Returns: int :

render(...)

 

render( (Map)arg1, (Image)arg2, (int)arg3, (int)arg4) -> None :
    
    Render Map to an AGG Image32 using offsets
    
    Usage:
    >>> from mapnik import Map, Image, render, load_map
    >>> m = Map(256,256)
    >>> load_map(m,'mapfile.xml')
    >>> im = Image(m.width,m.height)
    >>> render(m,im,1,1)
    
    

    C++ signature :
        void render(mapnik::Map,mapnik::Image32 {lvalue},unsigned int,unsigned int)

render( (Map)arg1, (Image)arg2) -> None :
    
    Render Map to an AGG Image32
    
    Usage:
    >>> from mapnik import Map, Image, render, load_map
    >>> m = Map(256,256)
    >>> load_map(m,'mapfile.xml')
    >>> im = Image(m.width,m.height)
    >>> render(m,im)
    
    

    C++ signature :
        void render(mapnik::Map,mapnik::Image32 {lvalue})

render_tile_to_file(...)

 

render_tile_to_file( (Map)arg1, (int)arg2, (int)arg3, (int)arg4, (int)arg5, (str)arg6, (str)arg7) -> None :
    
    TODO
    
    

    C++ signature :
        void render_tile_to_file(mapnik::Map,unsigned int,unsigned int,unsigned int,unsigned int,std::string,std::string)

render_to_file(...)

 

render_to_file( (Map)arg1, (str)arg2, (str)arg3) -> None :
    
    Render Map to file using explicit image type
    
    Usage:
    >>> from mapnik import Map, render_to_file, load_map
    >>> m = Map(256,256)
    >>> load_map(m,'mapfile.xml')
    >>> render_to_file(m,'image8bit.png','png256')
    >>> render_to_file(m,'image32bit.png','png')
    
    

    C++ signature :
        void render_to_file(mapnik::Map,std::string,std::string)

render_to_file( (Map)arg1, (str)arg2) -> None :
    
    Render Map to file (type taken from file extension)
    
    Usage:
    >>> from mapnik import Map, render_to_file, load_map
    >>> m = Map(256,256)
    >>> render_to_file(m,'image.jpeg')
    
    

    C++ signature :
        void render_to_file(mapnik::Map,std::string)

save_map(...)

 

save_map( (Map)arg1, (str)arg2) -> None :
    
    Save Map object to XML file
    
    Usage:
    >>> from mapnik import Map, load_map, save_map
    >>> m = Map(256,256)
    >>> load_map(m,'mapfile_wgs84.xml')
    >>> m.srs
    '+proj=latlong +datum=WGS84'
    >>> m.srs = '+init=espg:3395'
    >>> save_map(m,'mapfile_mercator.xml')
    
    

    C++ signature :
        void save_map(mapnik::Map,std::string)

scale_denominator(...)

 

scale_denominator( (Map)arg1, (bool)arg2) -> float :
    
    Return the Map Scale Denominator.
    Also available as Map.scale_denominator()
    
    Usage:
    
    >>> from mapnik import Map, Projection, scale_denominator, load_map
    >>> m = Map(256,256)
    >>> load_map(m,'mapfile.xml')
    >>> scale_denominator(m,Projection(m.srs).geographic)
    
    

    C++ signature :
        double scale_denominator(mapnik::Map,bool)