The Python Oracle

Wondering About GeoDjango and Mapping Services

--------------------------------------------------
Rise to the top 3% as a developer or hire one of them at Toptal: https://topt.al/25cXVn
--------------------------------------------------

Music by Eric Matyas
https://www.soundimage.org
Track title: A Thousand Exotic Places Looping v001

--

Chapters
00:00 Wondering About Geodjango And Mapping Services
00:50 Accepted Answer Score 10
02:15 Thank you

--

Full question
https://stackoverflow.com/questions/8276...

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#python #database #django #googlemaps #geodjango

#avk47



ACCEPTED ANSWER

Score 10


As said in documentation:

GeoDjango is an add-on 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. Some features include:

  • Django model fields for OGC geometries.
  • Extensions to Django’s ORM for the querying and manipulation of spatial data.
  • Loosely-coupled, high-level Python interfaces for GIS geometry operations and data formats.
  • Editing of geometry fields inside the admin.

You can easily process GeoDjango information to Google Maps via Google Maps Javascript API. Advantages of GeoDjango are special tools for dealing with geometry types of informations. For example such kinds of fields:

  • GeometryField
  • PointField
  • LineStringField
  • PolygonField
  • MultiPointField
  • MultiLineStringField
  • MultiPolygonField
  • GeometryCollectionField

And base-level integration with spacial databases and geospacial libraries:

  • GEOS
  • PROJ.4
  • GDAL
  • GeoIP
  • PostGIS
  • SpatiaLite

If you want to keep ability to change map provider in future it's recommended to use frontend(map) - backend(GeoDjango) architecture. In this case you can change frontend or switch between different maps easily.

I recommend also migrate to postgres because it has a various tools, such GEOS, PROJ.4, PostGIS libraries that may be useful for dealing with spacial data. MySQL has limited functionality as said in documentation.