<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">Hi,<br><br>No mercator projection can encompass the poles, as they are asymptotic & the latitude values approach infinity.<br><br>"Because the Mercator projects the poles at infinity, Google Maps cannot
show the poles. Instead it cuts off coverage at 85° north and south."<br><br>Brent Wood<br><br>--- On <b>Fri, 3/16/12, Puneet Kishor <i><punk.kish@gmail.com></i></b> wrote:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><br>From: Puneet Kishor <punk.kish@gmail.com><br>Subject: [postgis-users] creating a grid; transform error<br>To: "PostGIS Users Discussion" <postgis-users@postgis.refractions.net><br>Date: Friday, March 16, 2012, 3:47 PM<br><br><div class="plainMail">I am trying to create a simple 1 deg x 1 deg grid and transform it to spherical mercator<br><br> SELECT ST_Transform(ST_MakeEnvelope(minx, miny, maxx, maxy, 4326), 900913) the_geom<br> FROM (<br> SELECT lng minx, lat miny, (lng + 1) maxx, (lat + 1) maxy<br> FROM (<br>
SELECT Generate_series(-180, 180, 1) lng, Generate_series(-90, 90, 1) lat<br> ) series <br> WHERE (lng + 1) < 181 AND (lat + 1) < 91<br> ) lat_lng<br><br><br>I get<br><br> ERROR: transform: couldn't project point (-180 -90 0): tolerance condition error (-20)<br><br><br><br>What am I doing wrong?<br><br><br>--<br>Puneet Kishor<br>_______________________________________________<br>postgis-users mailing list<br><a ymailto="mailto:postgis-users@postgis.refractions.net" href="/mc/compose?to=postgis-users@postgis.refractions.net">postgis-users@postgis.refractions.net</a><br><a href="http://postgis.refractions.net/mailman/listinfo/postgis-users" target="_blank">http://postgis.refractions.net/mailman/listinfo/postgis-users</a><br></div></blockquote></td></tr></table>