<HTML dir=ltr><HEAD><TITLE>Re: [OSM-talk] gdalwarp question</TITLE>
<META content="text/html; charset=unicode" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.18372"></HEAD>
<BODY>
<BLOCKQUOTE style="MARGIN-RIGHT: 0px" dir=ltr>
<BLOCKQUOTE style="MARGIN-RIGHT: 0px" dir=ltr>
<DIV dir=ltr id=idOWAReplyText16079>
<DIV dir=ltr><FONT size=2>On May 2, 2009, at 8:53 AM, Torsten Mohr wrote:<BR>><BR>> But cstr_4.tif is "distorted", Africa is at 20% from the top, 40% <BR>> from the top<BR>> begins Antarctica and goes down to the bottom (100%).<BR><BR>There are a bunch of projections that don't work near the poles. I'm <BR>not an expert, and my book on projections is home, but it's quite <BR>possible that your chosen projection cannot properly represent the <BR>poles.<BR><BR>--<BR>Russ Nelson - <A href="http://community.cloudmade.com/blog">http://community.cloudmade.com/blog</A> - <A href="http://wiki.openstreetmap.org/wiki/User:RussNelson">http://wiki.openstreetmap.org/wiki/User:RussNelson</A><BR>russ@cloudmade.com - Twitter: Russ_OSM - <A href="http://openstreetmap.org/user/RussNelson">http://openstreetmap.org/user/RussNelson</A></FONT></DIV><FONT size=2></FONT></DIV></BLOCKQUOTE></BLOCKQUOTE>
<P><FONT size=2><BR>=================</FONT></P>
<P>Yes, I think that's the problem too. Try to use use gdal_translate to crop the area of interest, then do what you were doing:<BR><BR>gdal_translate -projwin 4 58 17 45 str_4.tif germany.tif<BR><BR>(I understand str_4.tif is the one that includes Germany)<BR><BR>And then:<BR><BR>gdalwarp -s_srs EPSG:4326 -t_srs "+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m <A href="mailto:+nadgrids=@null">+nadgrids=@null</A> +no_defs +over" germany.tif germany_sm.tif<BR><BR><BR>regards</P>
<P>Juan Lucas</P>
<P> </P>
<P><FONT size=2></FONT> </P>
<P><FONT size=2></FONT> </P>
<P><FONT size=2></FONT> </P>
<P><FONT size=2> </P>
<DIV dir=ltr><BR><BR><BR>_______________________________________________<BR>talk mailing list<BR>talk@openstreetmap.org<BR><A href="http://lists.openstreetmap.org/listinfo/talk">http://lists.openstreetmap.org/listinfo/talk</A><BR></DIV></FONT></BODY></HTML>