Django is a high-level Python Web framework that encourages rapid development and clean, pragmatic design.

learn more… | top users | synonyms

1
vote
0answers
296 views

Get the distance between 2 WGS84 GEOSGeometries

I currently want to check if 2 given GEOSGeometry objects of type Point are within 100m of each other. (length flexible) Looking at previous asked questions on this topic, most of the answers were ...
1
vote
1answer
150 views

GeoDjango / PostGIS - Cut geometry by bounding box

I am looking for a solution to retrieve the geometry(ies) from a polygon/multipolygon within a bounding box in a GeoDjango application. The application I am developing has a requirement to serve out ...
4
votes
2answers
222 views

Shapefile postgis database to be queried by GeoDjango

I would like to create a Postgres database (postgreslq-9.1 and postgis-2.0.2) storing several shapefiles but I am uncertain on how to implement it so I'm searching for some advices. I have already ...
2
votes
1answer
141 views

How to configure and install psycogpg2 - beginner?

I need to install psycogpg2 for working with 'django'. I read the instructions but I dont understand whether to run the commands in command prompt or in python command line. I am lot used to the GUI ...
3
votes
2answers
116 views

Unit testing with postgis 1.5 and django

I'm trying to get some unit tests working in Django/PostGis. When the test database is formed, it doesn't have the postgis and postgis_topology extensions installed. Is there a way to issue commands ...
0
votes
0answers
93 views

Missing tiles when django application is hosted on an apache server

I'm building a GIS application using Django as my web framework and OpenLayers to implement a slippy map interface. I was initially using the django runserver for development and everything was ...
3
votes
2answers
400 views

Checking if a point is in a circle

I'm using shapely to check if a point is in a polygon, but I also need to check if a point is in a circle. Checking the docs, I don't see how do that... Maybe I could create a circle? circle = ...
3
votes
1answer
227 views

GeoDjango admin: how to use a WMS background other than the default OSM or VMAP0

The standard GeoDjango admin has a basic VMAP0 background. OsmGeoAdmin adds an OSM background. How do I replace the background map with another WMS? In the source code of the admin OpenLayers ...
1
vote
2answers
261 views

Polygon intersection with bounding box with polygon's holes intact

I am trying to serve GeoJSON FeatureCollection tiles with each feature's geometries trimmed to the tile boundary. I am working on a Leaflet plugin to re-assemble the geometries. It works by building ...
2
votes
1answer
127 views

Get Lat & Lng from GeoDjango OSMGeoAdmin

Django OSMGeoAdmin with PointField uses OpenLayers and it's hard to use. I want to add 2 new input elements which are lat and lng. Using jQuery, when values of the input elements are change, I want ...
3
votes
2answers
813 views

General GeoDjango Opinion

I'm forced to crawl out of my intranet and create a public GIS site with quite an extensive dataset. All of my data is contained within PostGIS. I started dabbling with Geoserver/Postgis/OpenLayers ...
7
votes
1answer
440 views

How to set up GeoDjango with PostGIS 2.0?

I would like to run GeoDjango (Django 1.4) with Postgis 2.0. Whenever I try to run syncdb I get the following error for geographic fields: Failed to install index for stores.Store model: operator ...
0
votes
1answer
773 views

Django client install postgresql/postgis on Ubuntu 12.04

Does anyone know what apt packages one should install for a postgres(8.4)/postgis(1.5) django (1.4) client on ubuntu 12.04? All recipes seem to assume that I want to install the full ...
2
votes
2answers
121 views

Why are the results different for the same point using GEOS Point.transform and Postgis ST_Transform?

I'm trying to define a default point setting for OSM layers in my application and I want users to be able to define the default latitude and longitude in EPSG:4326. What I'm doing right now is to use ...
4
votes
4answers
324 views

How to compute geodesic area in GeoDjango?

I have some polygons which can be anywhere in the world. I would like to compute their areas. The GeoDjango docs for GEOSGeometry.area don't specify whether it is geometric or geodesic area, but ...
7
votes
2answers
470 views

Usage of GeoDjango

We are creating a website that displays geographic data on map (currently using Google Maps js API). We are currently using postgres + postGIS + php. It has been recommended that I look into usage ...
3
votes
1answer
435 views

GeoDjango Changing My Coordinates

I'm running into a problem when saving a coordinate into one of my models in (Geo)Django. My point field is setup as: location = PointField(blank=True, null = True) So while running some tests in ...
3
votes
2answers
262 views

Invoke PostGIS functions outside of the database? Need to force 3D in GeoDjango

I'm looking to ensure that all geometries saved to the database are three-dimensional. It's easy enough to do with a call to the database, select ST_Force_3D( ST_GeomFromText( blah blah ) ) ...but ...
1
vote
2answers
303 views

Geodjango - using projected coordinates with olwidget

I have a database in GeoDjango containing data based on the Australian MGA54 coordinate system (SRID 28354). I have the srid set in the model definintions and when using the standard GeoModelAdmin ...
1
vote
2answers
465 views

GeoDjango Order by distance for Model that is linked to User who has a location on their user profile

I need to order my query model by distance, however the point field in question is not on the model class but on the user profile and the i am getting an error when attempting the following. g = ...
1
vote
2answers
823 views

DatabaseError: Coordinate values are out of range [-180 -90, 180 90] for GEOGRAHY type

I am using Django 1.3, PostGIS 2.0 , Postgresql 9.0 and GeoDjango. I had a database with a table for places. This table had latitude and longitude for places in the US. I enabled this database with ...
4
votes
1answer
945 views

How to design model in Django using GeoDjango?

I am using Postgresql 9.0 and PostGIS 2.0. I am using Django 1.3 and GeoDjango.I have model with id,latitude,longitude and placename. All the places are in USA. My requirement is following - User ...
0
votes
0answers
21 views

Unable to create spatial database for geodjango [duplicate]

Possible Duplicate: How to verify a PostGIS installation on OS X? I am trying to install PostGIS for MacOS X and uptil now this is what i got PostGIS is now configured for ...
1
vote
0answers
72 views

Install PostGIS from beginning [duplicate]

Possible Duplicate: How to verify a PostGIS installation on OS X? Ok, so i tried installing PostGIS for MacOS X from HomeBrew. Once i started installing, brew install postgis It ...
1
vote
1answer
938 views

How to verify a PostGIS installation on OS X?

I am trying to set up GeoDjango and installing PostGIS on my mac and when I am trying to ./configure I am getting this error checking PostgreSQL version... PostgreSQL 8.4.9 checking libpq-fe.h ...
3
votes
1answer
211 views

geodjango slowness and debugging

I'm using geodjango + postgres to display polygons from tigerline on a map. Pretty simple stuff so far. My issue is that when I use the GPolygon object: django.contrib.gis.maps.google.GPolygon there ...
4
votes
1answer
565 views

Wrap GEOS functionality into python

I've been looking on how to get GEOSExtractLine available in python. I looked into Shapely source to if it was available for it, but it's not. I'm trying to wrap this funcionality into Django, much ...
6
votes
0answers
215 views

How to handle updates to pgRouting network in webmapping environment?

I'm building an application for a client of mine that will need to create routes in a PostgreSQL database. So far so good, but I need to support edits and changes to my network and I need to support ...
2
votes
3answers
337 views

which map projection should I use to calculate distance in Poland

I'm using/learning geodjango + postgis, and I'm trying to calculate distance between 2 cities in Poland. First using WGS84/4326 I define 2 points, and then after transforming this points into ...
3
votes
4answers
2k views

Geodjango- get the distance between 2 points

Sorry to be asking yet another geodjango newbie question. What I want to do is quite simple, I have 2 locations defined by gps coords, lat / long like returned by google maps: ...
7
votes
1answer
316 views

What are some good resources related to Geodjango?

I am trying to learn Geodjango. Has anyone used it in their own project? The documentation on the official site is sparse. Can someone point out the best resources helpful in learning it other than ...
-1
votes
1answer
120 views

GeoPortal Managing Tool [closed]

i know in this site everybody more or less have been setup a geoportal for showing their basemaps and analysis on local or net for their workers or conserned people in the net. it is obvious that in ...
5
votes
2answers
2k views

Using OpenLayers (with OpenStreetMaps) and PostGis for rendering data acquired from GPS tracking device?

I'm researching and planing to acquire data from GPS device and store them in postGIS database, then use geodjango to process/work them out and finally chart them on a map with OpenLayers. Will these ...
1
vote
1answer
182 views

GeoDjango 'NoneType' error when using 'distance' function

I have a site that's working on our staging server but after copying it to the live server I am getting the following error when trying to perform a distance() call (code cut down to minimum) ...
3
votes
2answers
396 views

How to fix this spatial query in GeoDjango?

I am new to Geodjango. and I am following the steps given in https://docs.djangoproject.com/en/dev/ref/contrib/gis/tutorial/# and the steps i followed before ...
1
vote
0answers
224 views

How to Modify Polygons in GeoDjango?

Just getting acquainted with GeoDjango. Have Basic Tutorial app created with sample world data. In trying out the admin, I appreciate seeing the polygon on the map and a couple basic tools for adding ...
4
votes
3answers
272 views

How to import an Access database to GeoDjango?

I'm a I've just inherited a pile of institutional geodata that's stored in an MS Access database. I need to pull that data out into a format that I can work with in GeoDjango--so I'm OK with ...
1
vote
1answer
180 views

Best way to exclude 0,0 from geography results (PostGIS, GeoDjango)

Using PostGis and GeoDjango with a model having a Geography field I'm trying to exclude results where the location is 0,0. I get the error PostGIS geography does not support the "exact" lookup. The ...
4
votes
1answer
666 views

Geodjango distance between two points appears incorrect

I want to show you something. I am using django+postgis and I am experiencing wrong distance values between two points. This is my model: class Location(models.Model): name = ...
2
votes
1answer
1k views

Using a geodjango PointField with geography=True, my distance calculations are wrong

Here's my model: class ExchangeArea(models.Model): """ An Exchange Service Area, calculated from a phone exchange and surrounding census tracts. """ coordinates = ...
4
votes
1answer
2k views

Why is my PostGIS query not using a spatial index?

I am having an issue with a spatial query that is not making use of indexes. My schema is: CREATE TABLE geoplanet_place ( woeid integer NOT NULL, "name" character varying(300) NOT NULL, ...
2
votes
1answer
483 views

How do I query for all polygons within a distance from a point?

Call me stupid, but somehow I couldn't figure out how to do the following. I've got a testing shapefile with 18 features, which I successfully imported into GeoDjango (1.3, running on Spatialite). As ...
6
votes
3answers
1k views

Can Polygons be generalized to MultiPolygons in GeoDjango?

I set up a model with models.PolygonField in geodjango, using postgres as database. I try to import shp into postgres. The problem is, shp (compiled with QGIS) mixes polygon and multipolygon, hence it ...
6
votes
2answers
736 views

Generating GeoJSON tiles from GeoDjango - basic overview?

I'm working with the glorious PolyMaps and I want to build a map similar to the population example. I understand that this needs GeoJSON tiles. I have a GeoDjango database, with a bunch of County ...
3
votes
1answer
212 views

How to mix coordinate systems in GeoDjango?

This is a beginner question about working with different coordinate systems in GeoDjango. I've got a GeoDjango object with a polygon field, stored as OSGB coordinates: class Region(models.Model): ...
1
vote
1answer
514 views

How to segmentize/sample a LineString using geodjango (postgis/geos) and/or openlayers?

I'm trying to sample points along a linestring. The goal is to have the distance between 2 consecutive points to be at most X (eg. 50m). I'm drawing linestring in openlayers and sending it to a ...
7
votes
3answers
893 views

Use Esri Geoservices REST as backend for Python web framework (Django?)

I would like to know if it's feasible to use an existing Python web framework such as Django/GeoDjango as a frontend to work with Esri's Geoservices REST API? I envision developing a database engine ...
3
votes
2answers
468 views

PostGIS + pgRouting: Adding dummy links to a road network and performing routing analysis

I'm a beginner when it comes to postgis and pgrouting development. For a project I'm working on and a bit of the algorithm: I have a polygon layer that represents zones I have a line layer that ...
7
votes
1answer
187 views

Optimize GEOSGeometry's spatial operations by avoiding thread-safety checks

A ranking algorithm I'm developing for a Django webapp requires performing spatial operations (within, intersections, sym_difference, etc.) using a query against large number of geometry objects. ...
2
votes
2answers
1k views

Is it possible to do server-side (WMS) rendering / caching of vector data

I have to develop a webapp that will have to display a large number of polygons on a webpage, with complex filtering options. The source data never changes (I will simply reload a new version of the ...