<HTML dir=ltr><HEAD><TITLE>Re: [OSM-talk] "scale" a ShapeFile in Y-direction?</TITLE>
<META http-equiv=Content-Type content="text/html; charset=unicode">
<META content="MSHTML 6.00.6000.16825" name=GENERATOR></HEAD>
<BODY>
<DIV id=idOWAReplyText15597 dir=ltr>
<DIV dir=ltr><FONT face="Times New Roman" color=#000000 size=3>Hi:<BR><BR></FONT><FONT face="Times New Roman" color=#000000 size=3>I'm curious about that shapefile that needs some stretching. Assuming its name is filename.shp, try to type this:<BR><BR></FONT><FONT face="Times New Roman" color=#000000 size=3>ogrinfo -geom=NO filename.shp filename<BR><BR></FONT><FONT face="Times New Roman" color=#000000 size=3>what is the output?<BR><BR></FONT><FONT face="Times New Roman" color=#000000 size=3>Regards,<BR>Juan Lucas<BR></DIV></FONT></DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<DIV dir=ltr>
<DIV dir=ltr>
<HR tabIndex=-1>
</DIV><FONT face=Tahoma size=2><B></B></FONT><STRONG><FONT face=Tahoma size=2></FONT></STRONG></DIV>
<DIV dir=ltr>
<DIV dir=ltr><BR></DIV></DIV>
<DIV>
<P><FONT size=2>Hello Frederik,<BR><BR>thanks for your hint. Yes, i know about projections. Actually, i reprojected<BR>the rester images of "blue marble" from a form of WGS84 to Mercaator<BR>with an own program.<BR><BR>But as i've heard it, world_boundaries_m is "defect". But as an overlay<BR>to represent the boundaries it would be ok. If that information was a<BR>misunderstanding and could be fixed with the right projection that would be<BR>awesome.<BR><BR>If i use shoreline_300 instead, the projection is perfectly fine, but if you<BR>try to render it _not_filled_ with a LineSymbolizer instead of a<BR>PolygonSymbolizer, you get some disturbing "plates". But the projection<BR>is fine.<BR><BR>A ShapeFile contains the "source SRS" inside it, right? When rendering<BR>world_boundaries_m and shoreline_300 i used the same "target SRS".<BR>But the result leads to different positions on the final map.<BR><BR>Does that mean that world_boundaries_m is defect?<BR><BR>Is there a way to "fix" it somehow? Or would scaling be possible?<BR><BR><BR>Best regards,<BR>Torsten.<BR><BR><BR>> Hi,<BR>><BR>> Torsten Mohr wrote:<BR>> > I have a ShapeFile that seems to be incorrect, scaling it in Y-direction<BR>> > could make it fit the background.<BR>><BR>> Do you have a basic understanding of coordinate projections? If not,<BR>> you'd be well advised to spend a few hours reading on the subject (start<BR>> with Wikipedia, take it from there).<BR>><BR>> You need to find out which projection your shapefile is in, and then set<BR>> the correct one in your map file, and things are likely to work. Simply<BR>> stretching the data from the shapefile is very unlikely to yield the<BR>> desired results - you will probably find that the stretch factor that<BR>> makes Iceland and the Equator fit will still have France out of place.<BR>><BR>> Bye<BR>> Frederik<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></FONT></P></DIV></BLOCKQUOTE></BLOCKQUOTE></BODY></HTML>