Re: GeoDjango admin and data reprojection

2011-01-22 Thread ckar...@googlemail.com
Why you quote your SRID? AFAIK it should be an integer. Post your
questing in the GeoDjango mailing list again.

On 21 Jan., 13:06, Luca Casagrande  wrote:
> Hello everybody,
> I have simple model defined like this:
> class point(models.Model):
>     geom = models.PointField(srid='3004')
>     object = models.GeoManager()
>
> In PostGIS spatial_ref_sys table and in proj's epsg file I changed the
> proj string adding the +towgs84 parameters to have a better
> reprojection.
> In the admin page the point is correctly shown on the map but it's
> shifted of about 50m like if the +towgs84 parameters were missing.
> I double checked this using a Desktop GIS reprojecting the data from
> EPSG:3004 to EPSG:900913 without +towgs84 and the position is the
> same.
>
> I don't understand how Django request a feature to be drawn and which
> tools uses for reprojection.
>
> Thx for your help
> Luca

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



GeoDjango admin and data reprojection

2011-01-21 Thread Luca Casagrande
Hello everybody,
I have simple model defined like this:
class point(models.Model):
geom = models.PointField(srid='3004')
object = models.GeoManager()

In PostGIS spatial_ref_sys table and in proj's epsg file I changed the
proj string adding the +towgs84 parameters to have a better
reprojection.
In the admin page the point is correctly shown on the map but it's
shifted of about 50m like if the +towgs84 parameters were missing.
I double checked this using a Desktop GIS reprojecting the data from
EPSG:3004 to EPSG:900913 without +towgs84 and the position is the
same.

I don't understand how Django request a feature to be drawn and which
tools uses for reprojection.

Thx for your help
Luca

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