2

I have two files. A GeoTIFF with different values and a shapefile with country borders of this area. Can I generate with these two files an image with the country borders and the data from the GeoTIFF?

I'm also interested in any other software/scripting solution for this. I did the second image with matplotlib and basemap but the country borders are wrong (outdated).

  • Do you need to generate the image programmatically/scriptwise? Or are you looking for any method at all, even if it's by hand? – hexamon Dec 11 '14 at 15:09
  • Are you wanting to create an image with spatial reference or just an image? – artwork21 Dec 11 '14 at 15:12
  • @hexamon I need to generate the image – gustavgans Dec 11 '14 at 15:14
  • @artwork21 "only" a image – gustavgans Dec 11 '14 at 15:15
2

It sounds like you would like a image export showing the vector layer and the image below it w/o the vector fill, here are the steps within QGIS:

  1. Make sure the country layer is ontop of the raster layer in the Layers table of contents
  2. Within country layer Properties>Style>Sinple Fill, change the Fill style to No Brush, and click Ok on all dialogs
  3. Zoom into the map for the extent you want to export
  4. Select Project menu>Save as Image and change the Save as type as desired (e.g. .jpg, .png, .tif...etc)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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