Skip to content

Instantly share code, notes, and snippets.

@luizvital
Created September 6, 2012 11:45
Show Gist options
  • Save luizvital/3655316 to your computer and use it in GitHub Desktop.
Save luizvital/3655316 to your computer and use it in GitHub Desktop.
GeoDjango looses Z info on transform
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment