[OSM-talk] gdalwarp question

Juan Lucas Dominguez Rubio jldominguez at prodevelop.es
Sat May 2 17:48:03 BST 2009


		On May 2, 2009, at 8:53 AM, Torsten Mohr wrote:
		>
		> But cstr_4.tif is "distorted", Africa is at 20% from the top, 40% 
		> from the top
		> begins Antarctica and goes down to the bottom (100%).
		
		There are a bunch of projections that don't work near the poles.  I'm 
		not an expert, and my book on projections is home, but it's quite 
		possible that your chosen projection cannot properly represent the 
		poles.
		
		--
		Russ Nelson - http://community.cloudmade.com/blog - http://wiki.openstreetmap.org/wiki/User:RussNelson
		russ at cloudmade.com - Twitter: Russ_OSM - http://openstreetmap.org/user/RussNelson
		


=================

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:

gdal_translate -projwin 4 58 17 45 str_4.tif germany.tif

(I understand str_4.tif is the one that includes Germany)

And then:

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 +nadgrids=@null +no_defs +over" germany.tif germany_sm.tif


regards

Juan Lucas

 

 

 

 

 




_______________________________________________
talk mailing list
talk at openstreetmap.org
http://lists.openstreetmap.org/listinfo/talk

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/talk/attachments/20090502/075159b1/attachment.html>


More information about the talk mailing list