Package mapnik :: Module _mapnik :: Class Grid

Class Grid

 object --+    
          |    
??.instance --+
              |
             Grid

This class represents a feature hitgrid.

Instance Methods
 
__init__(...)
__init__( (object)arg1, (int)width, (int)height [, (str)key='__id__' [, (int)resolution=1]]) -> None : Create a mapnik.Grid object
 
__reduce__(...)
helper for pickle
 
encode(...)
encode( (Grid)arg1 [, (str)encoding='utf' [, (bool)features=True [, (int)resolution=4]]]) -> dict : Encode the grid as as optimized json
 
get_pixel(...)
get_pixel( (Grid)arg1, (int)arg2, (int)arg3) -> int :
 
height(...)
height( (Grid)arg1) -> int :
 
painted(...)
painted( (Grid)arg1) -> bool :
 
view(...)
view( (Grid)arg1, (int)arg2, (int)arg3, (int)arg4, (int)arg5) -> GridView :
 
width(...)
width( (Grid)arg1) -> int :

Inherited from unreachable.instance: __new__

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables
  __instance_size__ = 32
Properties
  key
Get/Set key to be used as unique indentifier for features The value should either be __id__ to refer to the feature.id() or some globally unique integer or string attribute field

Inherited from object: __class__

Method Details

__init__(...)
(Constructor)

 

__init__( (object)arg1, (int)width, (int)height [, (str)key='__id__' [, (int)resolution=1]]) -> None :
    Create a mapnik.Grid object
    

    C++ signature :
        void __init__(_object*,int,int [,std::string='__id__' [,unsigned int=1]])

Overrides: object.__init__

__reduce__(...)

 

helper for pickle

Overrides: object.__reduce__
(inherited documentation)

encode(...)

 

encode( (Grid)arg1 [, (str)encoding='utf' [, (bool)features=True [, (int)resolution=4]]]) -> dict :
    Encode the grid as as optimized json
    

    C++ signature :
        boost::python::dict encode(mapnik::hit_grid<int> [,std::string='utf' [,bool=True [,unsigned int=4]]])

get_pixel(...)

 

get_pixel( (Grid)arg1, (int)arg2, (int)arg3) -> int :

    C++ signature :
        int get_pixel(mapnik::hit_grid<int>,int,int)

height(...)

 

height( (Grid)arg1) -> int :

    C++ signature :
        unsigned int height(mapnik::hit_grid<int> {lvalue})

painted(...)

 

painted( (Grid)arg1) -> bool :

    C++ signature :
        bool painted(mapnik::hit_grid<int>)

view(...)

 

view( (Grid)arg1, (int)arg2, (int)arg3, (int)arg4, (int)arg5) -> GridView :

    C++ signature :
        mapnik::hit_grid_view<mapnik::ImageData<int> > view(mapnik::hit_grid<int> {lvalue},unsigned int,unsigned int,unsigned int,unsigned int)

width(...)

 

width( (Grid)arg1) -> int :

    C++ signature :
        unsigned int width(mapnik::hit_grid<int> {lvalue})


Property Details

key

Get/Set key to be used as unique indentifier for features The value should either be __id__ to refer to the feature.id() or some globally unique integer or string attribute field

Get Method:
unreachable(...)
Set Method:
unreachable(...)