Package madrona :: Package features :: Module models :: Class FeatureCollection
[hide private]

Class FeatureCollection

source code

django.contrib.gis.db.models.Model --+    
                                     |    
                               Feature --+
                                         |
                                        FeatureCollection

A Folder/Collection of Features

Nested Classes [hide private]
  Meta
Instance Methods [hide private]
 
add(self, f)
Adds a specified Feature to the Collection
source code
 
remove(self, f)
Removes a specified Feature from the Collection
source code
 
save(self, rerun=True, *args, **kwargs) source code
 
kml(self) source code
 
kml_style(self) source code
 
kml_style_id(self) source code
 
feature_set(self, recurse=False, feature_classes=None)
Returns a list of Features belonging to the Collection Optionally recurse into all child containers or limit/filter for a list of feature classes
source code
 
copy(self, user=None)
Returns a copy of this feature collection, setting the user to the specified owner.
source code
 
delete(self, *args, **kwargs)
Delete all features in the set
source code

Inherited from Feature: __repr__, __unicode__, add_to_collection, get_absolute_url, hash, is_viewable, kml_safe, options, remove_from_collection, share_with, uid

Class Methods [hide private]

Inherited from Feature: css, get_options, model_uid

Class Variables [hide private]

Inherited from Feature: collection, content_type, date_created, date_modified, name, object_id, objects, sharing_groups, user

Method Details [hide private]

save(self, rerun=True, *args, **kwargs)

source code 
Overrides: Feature.save

kml(self)

source code 
Decorators:
  • @property

kml_style(self)

source code 
Decorators:
  • @property

kml_style_id(self)

source code 
Decorators:
  • @property

copy(self, user=None)

source code 

Returns a copy of this feature collection, setting the user to the specified owner. Recursively copies all children.

Overrides: Feature.copy