Django is a high-level Python Web framework that encourages rapid development and clean, pragmatic design.
1
vote
0answers
9 views
django floppy forms geospatial widgets error
I'm trying to define a view that lets the user edit the data in the database, I'm using floppyforms, because of its geodjango widgets which is part of the form that i would want the user to use for ...
3
votes
1answer
106 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 ...
0
votes
1answer
23 views
Mapnik - Error on rendering linestring
I am using Mapnik 2.0.1rc0 on a Windows 7 with python 2.7 32bits inside a GeoDjango App using xml. The datasource come from spatialite 4.0. My tiling script can render polygon and point features ...
1
vote
1answer
133 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
53 views
SpatialRefSys as foreign key
Using the working stuff reported here, I've written the following django model:
from django.contrib.gis.models import SpatialRefSys
class LandCover(models.Model):
shp_name = ...
6
votes
1answer
196 views
Pros and cons of using Ruby/Rails/RGeo or Python/GeoDjango for a web based GIS
We're at the investigation phase of creating a web based GIS. We're assessing options for an ORM to use in all of our backend import/export and processing routines. From my research, GeoDjango appears ...
1
vote
1answer
72 views
Mapnik - Weird tiles rendering when used with spatialite
I use Mapnik in an GeoDjango App with Spatialite 4.0 as backend. There is something weird with the tiles that I suspect might be related with a bad handling of mbr with spatialite.
If you look at ...
0
votes
0answers
29 views
mapnik error - fatal flex scanner internal error--end of buffer missed
I am using Mapnik 2.0.1rc0 on a Windows 7 with python 2.7 32bits inside a GeoDjango App. I often got this error: fatal flex scanner internal error--end of buffer missed that makes python to crash ...
0
votes
4answers
147 views
Coordinates conversion doubt
In QGIS do I have a EPSG:4326 shapefile that shows the coordinates "-7148300 -3688500" and I need them in the format -64º -31º for further processing in a geodjango app.
However using ogrinfo I get ...
0
votes
0answers
30 views
Geodjango - User's uploaded shapefiles and model creation
I have a big interrogation about how it could be possible to have a GeoDjango app that can store in database the uploaded shapefiles (or other geospatial files) from users. When you load shapefiles in ...
1
vote
1answer
50 views
GeoDjango - Use GDAL python binding in the 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 ...
0
votes
1answer
44 views
GeoDjango - DatabaseError: no such table: spatial_ref_sys with Spatialite
Im going through the GeoDjango Tutorial. I have loaded the WorldBorders shapefile into Spatialite. I can do spatial queries such contains, intersects, but I have a DatabaseError: no such table: ...
1
vote
0answers
34 views
Problems combining (union) Multipolygons in geodjango
I'm using geodjango and postgis (1.x),
What is the best way to combine (union) a list of multipolygons.
in what i assume is rather inefficient i'm looping trough like this
combined = multipolygon
...
2
votes
2answers
51 views
Spatialite as a DBMS-server with GeoDjango?
I would like to add a spatial component to my Django application. I turned out to GeoDjango immediatly. I am wondering now if spatialite could be used as DBMS-server for an application in Prod. Grosso ...
1
vote
0answers
110 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
0answers
75 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 ...
6
votes
3answers
642 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 ...
0
votes
0answers
45 views
Dynamic feature creation moves feature on zoom
I've been trying to create a feature programatically in OpenLayers, but the feature moves to 0,0 whenever I zoom in or out.
This is just an ajax request, that filters a bunch of points using their ...
2
votes
1answer
64 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
1answer
51 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
44 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 ...
2
votes
1answer
81 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 ...
2
votes
2answers
173 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
195 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
1answer
95 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 ...
3
votes
2answers
291 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
241 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 ...
4
votes
3answers
223 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 ...
3
votes
1answer
157 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):
...
4
votes
4answers
206 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 ...
0
votes
1answer
602 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
76 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 ...
1
vote
2answers
283 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
204 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 ...
4
votes
2answers
617 views
Django PolygonField: how to display on map?
Extremely beginner question.
I have a GeoDjango model with a MultiPolygonField. How do I retrieve the value of this field and display it as a polygon on a map?
class county(models.Model):
cd = ...
7
votes
2answers
285 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 ...
1
vote
3answers
2k views
struggling with GeoDjango install: ERROR: could not access file “$libdir/postgis-1.5”: No such file
I'm installing GeoDjango on Mac OSX. I've followed the official Mac install instructions, which all went smoothly, and am now creating a spatial database template for PostGIS.
However, when I try to ...
3
votes
2answers
172 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 ...
0
votes
0answers
69 views
Address parcel search in geodjango admin
When adding a feature in geodjango admin, the ability to zoom to a typed in address or parcel would be most efficient. Not sure what options are available.
I'm presently using olwidget within admin. ...
6
votes
1answer
155 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.
...
3
votes
1answer
147 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 ...
5
votes
2answers
566 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 ...
2
votes
4answers
1k 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:
...
0
votes
1answer
133 views
template_postgis missing functions [closed]
When I install postgis using the mac ox binary installing or create the template_postgis manually using the instructions provided on the Geo Django docs the template_postgis DB is created but it ...
1
vote
1answer
366 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
595 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 ...
1
vote
1answer
667 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 ...
0
votes
0answers
19 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
62 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 ...
3
votes
0answers
148 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 ...


