title: GeoDjango Converting SRID 4326 to SRID 3857
body: <p>I'm having difficulty converting SRID 4326 coordinates from a geocoder to SRID 3857 for storage within my postgres-postgis database. I am using the following code to test transforming between SRIDs:</p>
  
  <pre class="lang-python prettyprint-override"><code>from django.contrib.gis.gdal import SpatialReference, CoordTransform
  from django.contrib.gis.geos import Point
  gcoord = SpatialReference(4326)
  mycoord = SpatialReference(3857)
  trans = CoordTransform(gcoord, mycoord)
  
  pnt = Point(47.61, -122.33, srid=4326)
  print 'x: %s; y: %s; srid: %s' % (pnt.x, pnt.y, pnt.srid)
  </code></pre>
  
  <p>x: 47.61; y: -122.33; srid: 4326</p>
  
  <pre><code>pnt.transform(trans)
  print 'x: %s; y: %s; srid: %s' % (pnt.x, pnt.y, pnt.srid)
  </code></pre>
  
  <p>django.contrib.gis.gdal.error.GDALException: OGR failure.</p>
  
  <p>Within Django, I get the more helpful error message:</p>
  
  <p>transform: couldn't project point (47.61 -122.33 0): latitude or longitude exceeded limits (-14)</p>
  
  <p>I've performed some rudimentary testing and determined that lat/long coordinate outside of 0-90 trigger this condition. Setting my Point field in Django to srid=4326 and migrating the database still results in the Point being converted to SRID 3857.</p>