Monday 10 April 2017

style - How to set the outline color of raster cell (pixel)?


Can somebody please show me how to set the outline color of a raster cell (pixel)? This is what I have right now:


enter image description here


This is what I am trying to do:



enter image description here


I googled a bit, and looks like it is somewhere in the Layer->Properties->Style, but I can not find it:


enter image description here


?



Answer



I don't believe what you are asking can be done but an alternative solution is this:



  1. Convert your raster data to points

  2. Create a unique ID field and populate it with unique numbers

  3. Convert your point dataset back to a raster using the unique ID as the value field


  4. Convert this raster into a polygon vector dataset, as each cell in the raster has a unique value then the conversion from raster to vector will not cause the grouping of cells.

  5. Display vector dataset over your original raster in what ever colour you desire.


I don't use QGIS but in ArcGIS there is a fishnet tool that could simplify the creation of the vector grid, so probably worth searching for such a tool in QGIS first?


No comments:

Post a Comment

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...