Hot answers tagged

2

You can supersample the raster data, i.e. artificially decrease the pixel size (e.g. from 1000 m to 250 m), using a nearest neighbor resampling method and then clip the supersampled raster with your shapefile. The downside is that the size of your raster file is going to increase.


1

What I did when I needed to sample the spectral profile of a web map layer was to right click the layer, export the Raw Data to GeoTiff, choose an appropriate extent, and set an appropriate resolution for the layer (it likely will not set a value other than 0, which will yield a failed export). Then, you do you work off this rendered image. Not ideal, but ...


1

If your only problem is the messy appearance of the "ragged edges", it might make more sense to hide the raster where it falls outside the polygon. An easy way to do this is with an inverted polygon style. Right click on your country outline layer > duplicate. Change the style of the duplicate layer to Inverted polygons, with a white fill and stroke style =...


1

If your "square buffer points" aren't polygons, make them into polygons. If your "square buffer points" are polygons, use the Clip raster by mask layer tool (Raster menu > Extraction).


1

Thank you @Fran Raga. I was able to solve the issue based on your reference question. For full disclosure, my working code looks like this. set OSGEO4W_ROOT=C:/OSGeo4W64 call "%OSGEO4W_ROOT%/bin/o4w_env.bat" call "%OSGEO4W_ROOT%/bin/qt5_env.bat" call "%OSGEO4W_ROOT%/bin/py3_env.bat" path %OSGEO4W_ROOT%/apps/qgis/bin;%PATH% set GDAL_FILENAME_IS_UTF8=YES ...


Only top voted, non community-wiki answers of a minimum length are eligible