public
Created

GeoDjango looses Z info on transform

  • Download Gist
gistfile1.py
Python
1 2 3 4 5 6 7 8
from django.contrib.gis.geos import Point
 
p = Point(x=604567.28, y=8615808.59, z=221.14, srid=31980)
print p.x, p.y, p.z
# 604567.28 8615808.59 221.14
p.transform(4674)
print p.x, p.y, p.z
# -62.0375842938 -12.5195091838 None

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.