Package mapnik :: Module _mapnik :: Class MemoryDatasource

Class MemoryDatasource

 object --+        
          |        
??.instance --+    
              |    
     Datasource --+
                  |
                 MemoryDatasource

Instance Methods
 
__init__(...)
__init__( (object)arg1) -> None :
 
add_feature(...)
add_feature( (MemoryDatasource)arg1, (Feature)arg2) -> None : Adds a Feature: >>> ms = MemoryDatasource() >>> feature = Feature(1) >>> ms.add_feature(Feature(1))
 
num_features(...)
num_features( (MemoryDatasource)arg1) -> int :

Inherited from Datasource: __reduce__, all_features, describe, envelope, features, features_at_point, featureset, field_types, fields, geometry_type, params, type

Inherited from unreachable.instance: __new__

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

Class Variables
  __instance_size__ = 232

Inherited from Datasource: _c___module__

Properties

Inherited from object: __class__

Method Details

__init__(...)
(Constructor)

 

__init__( (object)arg1) -> None :

    C++ signature :
        void __init__(_object*)

Overrides: object.__init__

add_feature(...)

 

add_feature( (MemoryDatasource)arg1, (Feature)arg2) -> None :
    Adds a Feature:
    >>> ms = MemoryDatasource()
    >>> feature = Feature(1)
    >>> ms.add_feature(Feature(1))
    

    C++ signature :
        void add_feature(mapnik::memory_datasource {lvalue},boost::shared_ptr<mapnik::feature_impl>)

num_features(...)

 

num_features( (MemoryDatasource)arg1) -> int :

    C++ signature :
        unsigned long num_features(mapnik::memory_datasource {lvalue})