Questions tagged [geodjango]

GeoDjango intends to be a world-class geographic Web framework. Its goal is to make it as easy as possible to build GIS Web applications and harness the power of spatially enabled data.

GeoDjango intends to be a world-class geographic Web framework. Its goal is to make it as easy as possible to build GIS Web applications and harness the power of spatially enabled data.

http://geodjango.org/

1020 questions
0
votes
2 answers

Django + Openlayers GeoJSON not displaying

I'm having trouble displaying features from my django server to a vector layer on openlayers, I've already referenced these articles: Rendering spatial data of GeoQuerySet in a custom view on…
iamjoanel
  • 25
  • 5
0
votes
1 answer

How to use GeoDjango with Haystack?

I'm trying to use Django (1.5.1) and Haystack (2.0.1) for searching objects that include geolocation information: from django.contrib.gis.db import models as geomodels class GeoModel(geomodels.Model): geo_point = geomodels.PointField() #…
Cartucho
  • 3,257
  • 2
  • 30
  • 55
0
votes
2 answers

'NoneType' object has no attribute 'encode'

I'm trying to use GeoAdmin in GeoDjango. I have a table planet_osm_point and I would like to see it in the admin interface. I'm a beginner in django. I have this problem : Environment: Request Method: GET Request URL:…
etrimaille
  • 230
  • 1
  • 4
  • 13
0
votes
3 answers

Colon in variable identifier

Is it possible to have a colon in a variable name ? I already tried to backslash it but it doesn't work... I'm using geoDjango so my identifiers in my models have to keep the same name than those in the database. The trouble is that, as I migrated…
Kobz
  • 469
  • 6
  • 17
0
votes
1 answer

Uploading GPS data from a GPS device in django

I have a GPS Device that provides me the flexibility data to a URI i specify. According to the device specs, it would be sending across data in a binary ascii format, what would be the best way to handle this data in a django url
Jerry
  • 23
  • 4
0
votes
0 answers

GEOS for django on Ubuntu 11.10

Been trying to run a Django MySQL Nginx Stack to run for GIS Support but unable to succesfully compile GEOS dependancy. I get a make error 1 It would be great if I could get some concrete steps on the same.
Jerry
  • 23
  • 4
0
votes
3 answers

Django + postgreSQL: find near points

For my app, I need to determine the nearest points to some other point and I am looking for a simple but relatively fast (in terms of performance) solution. I was thinking about using PostGIS and GeoDjango but I think my app is not really that…
clime
  • 8,695
  • 10
  • 61
  • 82
0
votes
1 answer

Error with GDAL python binding in GeoDjango Shell

I would like to use the GDAL python binding in my GeoDjango site. The aim of this is to use ogr2ogr capabilities in a script. I am on windows 7 so I have installed GDAL-1.9.2.win32-py2.7 downloaded here The installation went correctly. I can import…
Below the Radar
  • 7,321
  • 11
  • 63
  • 142
0
votes
1 answer

GeoDJango: retrieve last inserted primary key from LayerMapping

I am building an application with GeoDjango and I have the following problem: I need to read track data from a GPX file and those data should be stored in a model MultiLineStringField field. This should happen in the admin interface, where the user…
danfreak
  • 405
  • 1
  • 8
  • 16
0
votes
1 answer

Furthest distance between any two points with GeoDjango

I have a collection of Point objects. I want to find the furthest distance between any two points. Imagine a circle enclosing all of these points. I want to know the diameter of that circle. How can I do this in GeoDjango? edit: this is what I have…
priestc
  • 33,060
  • 24
  • 83
  • 117
0
votes
2 answers

It is necessary to use GeoDjango to query distances in Django?

In the site i'm building, i have stored events with a Foreign Key to Cities. Like this: class Event(models.Model): name = models.CharField(max_length=255) ... ciudad = models.ForeignKey(City) class City(models.Model): name =…
sanfilippopablo
  • 1,449
  • 2
  • 15
  • 19
0
votes
2 answers

GeoDjango Point object giving different wkt than was initialized with. What am I doing wrong?

Can someone please explain why the wkt (well-known text) of a point object in geodjango would be returning what seems to be different coordinates than the object was initialized with? I've got to imagine it's something I'm doing wrong, and not geos.…
sotangochips
  • 2,700
  • 6
  • 28
  • 38
0
votes
0 answers

GeoDjango -- syncdb or south migration error

Anyone ever seen this error? My migration is failing :( django.db.utils.DatabaseError: function addgeometrycolumn(unknown, unknown, integer, unknown, integer) is not unique LINE 1: SELECT AddGeometryColumn('maps_mapfeature', 'geom', 4326, 'M... …
a.m.
  • 2,108
  • 5
  • 24
  • 29
0
votes
1 answer

search a point from a list of Poligon using geodjango

I am trying to develop a query builder using geodjango. I want to find out whether a point is in a given list of multipolygon. Django database API has "__in" to find data in a list. Is there any similar geodjango query? If no, which is the best…
0
votes
0 answers

How to subclass django.contrib.gis.db.models.fields.PointField?

I have a django.contrib.gis.geos.point.Point subclass: from django.contrib.gis.geos import Point class Location(Point): def __init__(self, *args, **kwargs): lat = kwargs.get('latitude') lng = kwargs.get('longitude') if…
borges
  • 3,627
  • 5
  • 29
  • 44