gis.admin.GeoModelAdmin.default_zoom

default_zoom The default zoom level to use. Defaults to 18.

gis.admin.GeoModelAdmin.default_lon

default_lon The default center longitude.

gis.admin.GeoModelAdmin.default_lat

default_lat The default center latitude.

gis.admin.GeoModelAdmin

class GeoModelAdmin default_lon The default center longitude. default_lat The default center latitude. default_zoom The default zoom level to use. Defaults to 18. extra_js Sequence of URLs to any extra JavaScript to include. map_template Override the template used to generate the JavaScript slippy map. Default is 'gis/admin/openlayers.html'. map_width Width of the map, in pixels. Defaults to 600. map_height Height of the map, in pixels. Defaults to 400. op

Getting started

New to Django? Or to Web development in general? Well, you came to the right place: read this material to quickly get up and running. Django at a glance Quick install guide Writing your first Django app, part 1 Writing your first Django app, part 2 Writing your first Django app, part 3 Writing your first Django app, part 4 Writing your first Django app, part 5 Writing your first Django app, part 6 Writing your first Django app, part 7 Advanced tutorial: How to write reusable apps What to read n

GeoJSON Serializer

GeoDjango provides a specific serializer for the GeoJSON format. See Serializing Django objects for more information on serialization. The GDAL library is required if any of the serialized geometries need coordinate transformations (that is if the geometry’s spatial reference system differs from the srid serializer option). Changed in Django 1.9: The GeoJSON serializer no longer needs GDAL if all geometries are in the same coordinate system as the srid serializer option. The geojson serialize

Geographic Sitemaps

KML is an XML language focused on geographic visualization [1]. KMLSitemap and its compressed counterpart KMZSitemap allow you to present geolocated data in a machine-readable format. Example Reference KMLSitemap KMZSitemap Footnotes [1] http://www.opengeospatial.org/standards/kml

GeoDjango Utilities

The django.contrib.gis.utils module contains various utilities that are useful in creating geospatial Web applications. LayerMapping data import utilityExample LayerMapping API Troubleshooting OGR Inspectionogrinspect mapping GeoJSON Serializer

GeoDjango Tutorial

Introduction GeoDjango is an included contrib module for Django that turns it into a world-class geographic Web framework. GeoDjango strives to make it as simple as possible to create geographic Web applications, like location-based services. Its features include: Django model fields for OGC geometries and raster data. Extensions to Django’s ORM for querying and manipulating spatial data. Loosely-coupled, high-level Python interfaces for GIS geometry and raster operations and data manipulation

GeoDjango Management Commands

inspectdb django-admin inspectdb When django.contrib.gis is in your INSTALLED_APPS, the inspectdb management command is overridden with one from GeoDjango. The overridden command is spatially-aware, and places geometry fields in the auto-generated model definition, where appropriate. ogrinspect django-admin ogrinspect data_source model_name The ogrinspect management command will inspect the given OGR-compatible DataSource (e.g., a shapefile) and will output a GeoDjango model with the