GeoDjango and shapefiles

266 views
Skip to first unread message

Coulson Thabo Kgathi

unread,
Sep 20, 2012, 10:36:09 AM9/20/12
to django...@googlegroups.com
Hi guys i want to use geodjango for an application that gives map locations but offline using shapefiles and geodjango, any information that i can be refered to would be appreciated. I dont want to use google maps because its wil be used offline

thank you

George Silva

unread,
Sep 20, 2012, 10:51:03 AM9/20/12
to django...@googlegroups.com
Hi Coulson,

GeoDjango is just Django. You can write an application that checks upon initialization which type of environment it's located and then you can set the DATABASES property on settings.py.

Using the technique I've told you above, you can store GIS data in two databases (for web application you can use PostgreSQL with PostGIS) and for offline use SQLite.

Natively, Django does not speaks "shapefile", so you will need to create a routine to export your data to shapefile. 

Anyways, you can always export your data to SQLite databases and use GeoDjango to render those data to OpenLayers in GeoJSON. Should work on any modern smartphone.

On Thu, Sep 20, 2012 at 11:36 AM, Coulson Thabo Kgathi <zeec...@gmail.com> wrote:
Hi guys i want to use geodjango for an application that gives map locations but offline using shapefiles and geodjango, any information that i can be refered to would be appreciated. I dont want to use google maps because its wil be used offline

thank you

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/u2kiG0kJd0UJ.
To post to this group, send email to django...@googlegroups.com.
To unsubscribe from this group, send email to django-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.



--
George R. C. Silva

Desenvolvimento em GIS
http://geoprocessamento.net
http://blog.geoprocessamento.net

Jani Tiainen

unread,
Sep 21, 2012, 1:30:31 AM9/21/12
to django...@googlegroups.com
> --
> You received this message because you are subscribed to the Google
> Groups "Django users" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/django-users/-/u2kiG0kJd0UJ.
> To post to this group, send email to django...@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.

There is actually more than one way to do this. And without further
knowledge what you're trying to show and where it's hard to give more
details.

For example generating maps with shapefiles there is far better
solutions than GeoDjango (GeoDjango is great for querying spatially and
modifying data) like Mapnik or Mapserver on serverside. On client side
there is practically only one really working solution - Openlayers.


--
Jani Tiainen

- Well planned is half done and a half done has been sufficient before...

Coulson Thabo Kgathi

unread,
Sep 25, 2012, 4:53:08 AM9/25/12
to django...@googlegroups.com
can geoDjango produce maps offline though, because i am trying to have an app that shows locations of places using markers on the map. OFFLINE WITHOUT INTERNET

Jani Tiainen

unread,
Sep 25, 2012, 4:57:32 AM9/25/12
to django...@googlegroups.com
> --
> You received this message because you are subscribed to the Google
> Groups "Django users" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/django-users/-/OswCiPt2fyIJ.
> To post to this group, send email to django...@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.

You don't need internet to show maps using different map servers and
browser. You can still share everything from localhost (as you do while
developing apps). It's still easiest way to do things.

I think gdal/ogr packages can create shapefiles from database if needed.
Don't know how symbology works there.

Coulson Thabo Kgathi

unread,
Sep 25, 2012, 5:06:34 AM9/25/12
to django...@googlegroups.com
I think the problem is how do i do this whr do i get infor on how to do it, thsi server....
Reply all
Reply to author
Forward
Message has been deleted
0 new messages