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
 
clear(...)
clear( (Grid)arg1) -> None :
 
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) -> long :
 
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)

clear(...)

 

clear( (Grid)arg1) -> None :

    C++ signature :
        void clear(mapnik::hit_grid<long long> {lvalue})

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<long long> [,std::string='utf' [,bool=True [,unsigned int=4]]])

get_pixel(...)

 

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

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

height(...)

 

height( (Grid)arg1) -> int :

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

painted(...)

 

painted( (Grid)arg1) -> bool :

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

view(...)

 

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

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

width(...)

 

width( (Grid)arg1) -> int :

    C++ signature :
        unsigned int width(mapnik::hit_grid<long long> {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(...)