1

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?

1 Answer 1

1

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.