Friday, 23 September 2016

qgis - Rasterize points in a map : result is not leasible. How to make the raster (points) bigger?


I have a vector layer (points) that I rasterized based on one attribute of the vector layer. I chose the GRASS GIS 7 command : v.to.rast.attribute. The raster layer appears in the map, but is not very readable.


Here is the original vector layer (points) :


enter image description here


Here is the rasterized result (based on one attribute of the layer) :


enter image description here



I would like to make the points bigger in the raster.



Answer



Raster format is not the best format to display points: you should display your data with points. That being said, you have two solutions :


1) change the rasterization settings by selecting a larger pixel size as an output. With v.to.rast you must first define the resolution of the region ( g.region vector=your_vector res=5000 -p -a), with gdal_rasterize you can use the -tr option). Points will look like squares.


2) create buffers (polygons) aroud your points and convert the buffers to raster. You will have circles, but one point will give you more than one pixel.


In both cases, you will have only one value per pixel, so this might be an issue when your points symbols currently overlap


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...