I am trying to add coordinate information to my database by adding django.contrib.gis support to my application. I am writing a south data migration that takes addresses from a database and asks Google for coordinates (so far I believe that it is best to use geopy for this).
Next, I need to convert the returned coordinates from WGS84:4326 , Google's coordinate system, to WGS84:22186 , my coordinate system.
I got lost among the GeoDjango docs, trying to find a way to do this. As far as I know, I have to do this:
gcoord = SpatialReference("4326") mycoord = SpatialReference("22186") trans = CoordTransform(gcoord, mycoord)
but then I donβt know how to use this CoordTransform .. object, it seems to be used by GDAL data objects, but this is an overflow for what I want to do.
source share