Package mapnik :: Module _mapnik :: Class Feature

Class Feature

 object --+    
          |    
??.instance --+
              |
             Feature

Instance Methods
 
__getitem__(...)
__getitem__( (Feature)arg1, (str)arg2) -> object :
 
__init__(...)
__init__( (object)arg1, (Context)arg2, (int)arg3) -> None : Default ctor.
 
__len__(...)
__len__( (Feature)arg1) -> int :
 
__reduce__(...)
helper for pickle
 
__setitem__(...)
__setitem__( (Feature)arg1, (str)arg2, (object)arg3) -> None :
 
__str__(...)
__str__( (Feature)arg1) -> str :
 
add_geometries_from_wkb(...)
add_geometries_from_wkb( (Feature)arg1, (str)arg2) -> None :
 
add_geometries_from_wkt(...)
add_geometries_from_wkt( (Feature)arg1, (str)arg2) -> None :
 
add_geometry(...)
add_geometry( (Feature)arg1, (Geometry2d)arg2) -> None :
 
context(...)
context( (Feature)arg1) -> Context :
 
envelope(...)
envelope( (Feature)arg1) -> Box2d :
 
geometries(...)
geometries( (Feature)arg1) -> Path :
 
get_geometry(...)
get_geometry( (Feature)arg1, (int)arg2) -> Geometry2d :
 
has_key(...)
has_key( (Feature)arg1, (str)arg2) -> bool :
 
id(...)
id( (Feature)arg1) -> int :
 
num_geometries(...)
num_geometries( (Feature)arg1) -> int :
 
to_geojson(...)
to_geojson( (Feature)arg1) -> str :

Inherited from unreachable.instance: __new__

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

Class Variables
  __instance_size__ = 32
Properties
  attributes

Inherited from object: __class__

Method Details

__getitem__(...)
(Indexing operator)

 

__getitem__( (Feature)arg1, (str)arg2) -> object :

    C++ signature :
        mapnik::value_adl_barrier::value __getitem__(mapnik::feature_impl,std::string)

__getitem__( (Feature)arg1, (int)arg2) -> object :

    C++ signature :
        mapnik::value_adl_barrier::value __getitem__(mapnik::feature_impl,unsigned long)

__init__(...)
(Constructor)

 

__init__( (object)arg1, (Context)arg2, (int)arg3) -> None :
    Default ctor.

    C++ signature :
        void __init__(_object*,boost::shared_ptr<mapnik::context<std::map<std::string, unsigned long, std::less<std::string>, std::allocator<std::pair<std::string const, unsigned long> > > > >,int)

Overrides: object.__init__

__len__(...)
(Length operator)

 

__len__( (Feature)arg1) -> int :

    C++ signature :
        unsigned long __len__(mapnik::feature_impl {lvalue})

__reduce__(...)

 

helper for pickle

Overrides: object.__reduce__
(inherited documentation)

__setitem__(...)
(Index assignment operator)

 

__setitem__( (Feature)arg1, (str)arg2, (object)arg3) -> None :

    C++ signature :
        void __setitem__(mapnik::feature_impl {lvalue},std::string,mapnik::value_adl_barrier::value)

__str__(...)
(Informal representation operator)

 

__str__( (Feature)arg1) -> str :

    C++ signature :
        std::string __str__(mapnik::feature_impl {lvalue})

Overrides: object.__str__

add_geometries_from_wkb(...)

 

add_geometries_from_wkb( (Feature)arg1, (str)arg2) -> None :

    C++ signature :
        void add_geometries_from_wkb(mapnik::feature_impl {lvalue},std::string)

add_geometries_from_wkt(...)

 

add_geometries_from_wkt( (Feature)arg1, (str)arg2) -> None :

    C++ signature :
        void add_geometries_from_wkt(mapnik::feature_impl {lvalue},std::string)

add_geometry(...)

 

add_geometry( (Feature)arg1, (Geometry2d)arg2) -> None :

    C++ signature :
        void add_geometry(mapnik::feature_impl {lvalue},mapnik::geometry<double, mapnik::vertex_vector>*)

context(...)

 

context( (Feature)arg1) -> Context :

    C++ signature :
        boost::shared_ptr<mapnik::context<std::map<std::string, unsigned long, std::less<std::string>, std::allocator<std::pair<std::string const, unsigned long> > > > > context(mapnik::feature_impl {lvalue})

envelope(...)

 

envelope( (Feature)arg1) -> Box2d :

    C++ signature :
        mapnik::box2d<double> envelope(mapnik::feature_impl {lvalue})

geometries(...)

 

geometries( (Feature)arg1) -> Path :

    C++ signature :
        boost::ptr_vector<mapnik::geometry<double, mapnik::vertex_vector>, boost::heap_clone_allocator, std::allocator<void*> > geometries(mapnik::feature_impl {lvalue})

get_geometry(...)

 

get_geometry( (Feature)arg1, (int)arg2) -> Geometry2d :

    C++ signature :
        mapnik::geometry<double, mapnik::vertex_vector> get_geometry(mapnik::feature_impl {lvalue},unsigned int)

has_key(...)

 

has_key( (Feature)arg1, (str)arg2) -> bool :

    C++ signature :
        bool has_key(mapnik::feature_impl {lvalue},std::string)

id(...)

 

id( (Feature)arg1) -> int :

    C++ signature :
        int id(mapnik::feature_impl {lvalue})

num_geometries(...)

 

num_geometries( (Feature)arg1) -> int :

    C++ signature :
        unsigned int num_geometries(mapnik::feature_impl {lvalue})

to_geojson(...)

 

to_geojson( (Feature)arg1) -> str :

    C++ signature :
        std::string to_geojson(mapnik::feature_impl)


Property Details

attributes

Get Method:
unreachable(...)