<div dir="ltr">Zetah,<div style> Oops - I skipped passed the fact you were working with vectors. I read "Natural Earth" and assumed the nice hillshade images they support.</div><div style><br></div><div style>Converting from 180 -> 360 -> 180 is a something we often have to do for planetary data. My colleague Jay (CC'd) has written an OGR script to convert from 360 -> 180 but it requires OGR and Shapely. Shapely is used for line and polygon intersections (to split the boundary cases before shifting). Converting it to 180 -> 360 should be simple. Hopefully Jay can post it for the group.</div>
<div style><br></div><div style>Other options: </div><div style>(1) As you can see here, you might have luck using OGR if you have no features that cross 0:</div><div style><a href="http://lists.osgeo.org/pipermail/gdal-dev/2006-June/009293.html">http://lists.osgeo.org/pipermail/gdal-dev/2006-June/009293.html</a><br>
</div><div style><br></div><div style>(2) ArcMap - This tool by Jeff Jeneness has a wrap boundary script: <a href="http://www.jennessent.com/arcgis/shapes_graphics.htm">http://www.jennessent.com/arcgis/shapes_graphics.htm</a></div>
<div style><br></div><div style>(3) For simple points, here is an older OGR example script:</div><div style><a href="https://isis.astrogeology.usgs.gov/IsisSupport/index.php/topic,3722.0.html">https://isis.astrogeology.usgs.gov/IsisSupport/index.php/topic,3722.0.html</a><br>
</div><div style><br></div><div style>-Trent</div><div style><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sun, Jun 16, 2013 at 1:21 PM, zetah <span dir="ltr"><<a href="mailto:otrov@hush.ai" target="_blank">otrov@hush.ai</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">Trent Hare wrote:<br>
><br>
>There is a great method to do this virtually using GDAL's VRT format.<br>
>Unfortunately it looks like this site has died but the wayback machine has<br>
>a snapshot of it. Definitely a good tutorial to keep around -- I use this<br>
>trick all the time.<br>
><br>
><a href="http://web.archive.org/web/20110406210056/http://www1.eonfusion.com" target="_blank">http://web.archive.org/web/20110406210056/http://www1.eonfusion.com</a><br>
>/manual/index.php/Manipulate_rasters_with_GDAL_VRT<br>
<br>
</div>Hi Trent,<br>
<br>
that's nice trick indeed, thanks. However shapefile as vector can't be converted<br>
to virtual raster.<br>
<br>
I thought that it's my lack of understanding ogr2org switches, as I didn't expected<br>
that this is more then trivial task, like it must be possible to represent global map<br>
starting from prime meridian other way then cropping the map on half?<br>
<br>
</blockquote></div><br></div>