Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

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?

share|improve this question
add comment

1 Answer 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: How do you change the prime meridian of a map?

If that requirement is satisfied this command can be used to offset shapefile:

ogr2ogr out.shp in.shp --config CENTER_LONG 180

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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