Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a shapefile of the worlds biomes

I would like to export it as a raster file; preferably a netCDF file with the MsTMIP format standard.

Ultimately, I could work with a netCDF that keeps metadata from the shapefile, or even a csv with no metadata. I can generate the .csv myself, but I expect that existing tools will do much of the work for me. Do they exist?

share|improve this question
up vote 4 down vote accepted

Use ogr2ogr to convert it to GMT vector format, and then convert it using GMT to netCDF with all metadata saved.

share|improve this answer
Thanks - I'll let you know how it goes; I am glad to see that GMT5 is released under LGPL, since it is compatible with my BSD license. – Abe Oct 26 '12 at 20:16

Your Answer


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.