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

Class PolygonFeature

source code

django.contrib.gis.db.models.Model --+        
                                     |        
                               Feature --+    
                                         |    
                            SpatialFeature --+
                                             |
                                            PolygonFeature


Model used for representing user-generated polygon features. Inherits from SpatialFeature.

    ======================  ==============================================
    Attribute               Description
    ======================  ==============================================
    ``user``                Creator

    ``name``                Name of the object

    ``date_created``        When it was created

    ``date_modified``       When it was last updated.

    ``manipulators``        List of manipulators to be applied when geom
                            is saved.

    ``geometry_original``   Original geometry as input by the user.

    ``geometry_final``      Geometry after manipulators are applied.
    ======================  ==============================================

Nested Classes [hide private]
  Meta
Instance Methods [hide private]
 
centroid_kml(self)
KML geometry representation of the centroid of the polygon
source code

Inherited from SpatialFeature: active_manipulators, apply_manipulators, geom_kml, kml, kml_style, save

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

Class Methods [hide private]
 
mapnik_style(self)
Mapnik style object containing rules for symbolizing features in staticmap
source code

Inherited from Feature: css, get_options, model_uid

Class Variables [hide private]
  geometry_orig = models.PolygonField(srid= settings.GEOMETRY_DB...
  geometry_final = models.PolygonField(srid= settings.GEOMETRY_D...

Inherited from SpatialFeature: manipulators

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

Method Details [hide private]

centroid_kml(self)

source code 

KML geometry representation of the centroid of the polygon

Decorators:
  • @property

mapnik_style(self)
Class Method

source code 

Mapnik style object containing rules for symbolizing features in staticmap

Overrides: SpatialFeature.mapnik_style
(inherited documentation)

Class Variable Details [hide private]

geometry_orig

Value:
models.PolygonField(srid= settings.GEOMETRY_DB_SRID, null= True, blank\
= True, verbose_name= "Original Polygon Geometry")

geometry_final

Value:
models.PolygonField(srid= settings.GEOMETRY_DB_SRID, null= True, blank\
= True, verbose_name= "Final Polygon Geometry")