Electronics & Programming

develissimo

Open Source electronics development and programming

  • You are not logged in.
  • Root
  • » Django
  • » GeoDjango admin and data reprojection [RSS Feed]

#1 Jan. 21, 2011 12:06:26

Luca C.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

GeoDjango admin and data reprojection


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 athttp://groups.google.com/group/django-users?hl=en.

Offline

#2 Jan. 22, 2011 09:33:24

c.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

GeoDjango admin and data reprojection


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 <luca.casagra...@gmail.com> 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 athttp://groups.google.com/group/django-users?hl=en.

Offline

  • Root
  • » Django
  • » GeoDjango admin and data reprojection [RSS Feed]

Board footer

Moderator control

Enjoy the 18th of October
PoweredBy

The Forums are managed by develissimo stuff members, if you find any issues or misplaced content please help us to fix it. Thank you! Tell us via Contact Options
Leave a Message
Welcome to Develissimo Live Support