| Home | Trees | Indices | Help |
|---|
|
|
django.contrib.gis.db.models.Model --+
|
MapConfig
Model used for representing a map (ie a collection of styled map layers)
====================== ==============================================
Attribute Description
====================== ==============================================
``mapname`` Name of the map. Will be refered to by URL so
use http friendly names (no spaces, slashes, etc)
``mapfile`` Mapnik xml configuration file that defines data
sources and styles. All paths within xml must be
relative to media/staticmap/
``default_x1`` LL X coordinate
``default_y1`` LL Y coordinate
``default_x2`` UR X coordinate
``default_y2`` UR Y coordinate
``default_width`` Default image width (pixels)
``default_height`` Default image height (pixels)
====================== ==============================================
|
|||
|
|||
|
|||
mapname = models.CharField(max_length= 50, unique= True)
|
|||
mapfile = models.FileField(upload_to= 'staticmap/', help_text=
|
|||
default_x1 = models.FloatField(help_text= "Lower-left X coordi
|
|||
default_y1 = models.FloatField(help_text= "Lower-left Y coordi
|
|||
default_x2 = models.FloatField(help_text= "Upper-right X coord
|
|||
default_y2 = models.FloatField(help_text= "Upper-right Y coord
|
|||
default_width = models.IntegerField(help_text= "Default map im
|
|||
default_height = models.IntegerField(help_text= "Default map i
|
|||
default_srid = models.IntegerField(help_text= "Spatial Referen
|
|||
|
|||
mapfile
|
default_x1
|
default_y1
|
default_x2
|
default_y2
|
default_width
|
default_height
|
default_srid
|
| Home | Trees | Indices | Help |
|---|
| Generated by Epydoc 3.0.1 on Tue Oct 30 11:31:03 2012 | http://epydoc.sourceforge.net |