Django: Ticket Queryhttps://code.djangoproject.com/query?status=!closed&keywords=~postgis&order=type
The Web framework for perfectionists with deadlines.en-USDjangohttps://www.djangoproject.com/s/img/site/hdr_logo.gifhttps://code.djangoproject.com/query?status=!closed&keywords=~postgis&order=type
Trac 1.0.2https://code.djangoproject.com/ticket/9295
https://code.djangoproject.com/ticket/9295#9295: Better error handling and/or error reporting when Proj.4 datum shifting files are not foundFri, 03 Oct 2008 21:49:49 GMTspringmeyer<p>
A very common install problem for new users to <a class="wiki" href="https://code.djangoproject.com/wiki/GeoDjango">GeoDjango</a> is to use a package management system for installing proj which does not include the Proj.4 datum shifting files (A key question is do any packager of proj include these files?). Or a user does a source install of proj and misses the instructions here: <a class="ext-link" href="http://geodjango.org/docs/install.html#proj-4"><span class="icon">​</span>http://geodjango.org/docs/install.html#proj-4</a> and fails to manually install the additional files.
</p>
<p>
The impact of the lacking files is often first seen for new users who download one of the apps that uses the OSMGeoAdmin from <a class="ext-link" href="http://code.google.com/p/geodjango-basic-apps/"><span class="icon">​</span>http://code.google.com/p/geodjango-basic-apps/</a>. Without a use of GeoDjango like this that does transformations between Google Spherical Mercator projection (<a class="ext-link" href="http://spatialreference.org/ref/user/google-projection/"><span class="icon">​</span>http://spatialreference.org/ref/user/google-projection/</a>) and another projection in a different datum, this installation problem might not surface for many users.
</p>
<p>
OSMGeoAdmin uses GDAL to do reprojection of data into SRID 900913 for the Admin OpenLayers map and then uses the spatial database backend to reproject the data back to the native SRID after the save() method is called.
</p>
<p>
With a PostGIS backend the spatial data is sent to in the database without proper reprojection due to the missing files with no error warning of the missing files needed. The geometry therefore misses the validation check at the form level, such that and error is throw by a GEOS error check only after finding corrupt coordinates which is not super intuitive as to the original problem:
</p>
<pre class="wiki">Error encountered checking Geometry returned from GEOS C function "GEOSGeomFromHEX_buf"
</pre>Resultshttps://code.djangoproject.com/ticket/9295#changeloghttps://code.djangoproject.com/ticket/11854
https://code.djangoproject.com/ticket/11854#11854: Add support of PostGIS's Azimuth functionWed, 09 Sep 2009 11:05:57 GMTckarrie<p>
Hi, I would like to see the azimuth function in the gis component.
</p>
<p>
Thank you very much.
</p>
Resultshttps://code.djangoproject.com/ticket/11854#changelog