I have Natural Earth shapefile (for example this file: link) covering whole globe in -180:180 range. I want to offset this file, so that it starts from Greenwich prime meridian instead -180.
How can I do this with gdal/ogr?
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It only takes a minute to sign up.
Sign up to join this communityI have Natural Earth shapefile (for example this file: link) covering whole globe in -180:180 range. I want to offset this file, so that it starts from Greenwich prime meridian instead -180.
How can I do this with gdal/ogr?
This isn't possible with gdal/ogr tools. Some Python script can probably do it, thou.
Only case when this could be possible is if no geometries are present at meridian we wish to offset to, otherwise ugly things happen like showed here: Changing prime meridian of map?
If that requirement is satisfied this command can be used to offset shapefile:
ogr2ogr out.shp in.shp --config CENTER_LONG 180