Questions tagged [masking]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
1answer
366 views

Proper Mask functionality

Is there a way to specify a feature of a shapefile or all features within a shapefile to serve as masking features for all other layers within a qgis project? I would like to crop all other features ...
4
votes
1answer
375 views

Associating country to grid cell in R?

I’m trying to solve the following problem. I have a regular grid of points covering Europe nx <- 361 ; ny <- 181 xmin <- -30.0 ; ymin <- 25.0 dx <- 0.25 ; dy <- 0.25 lat <- ...
2
votes
0answers
195 views

Masking casing/outline of line feature (road) within ArcMap? [closed]

I need to mask just the black outline/casing of road features in my map. Here is an example below. I do not want to mask the entire road as seen here but instead just the black lines on each side of ...
4
votes
1answer
493 views

Lapply function on raster iterating through SPDF polygons in R

I have a raster DTM and a SPDF. I'd need to mask a different elevation interval of the DTM within each overlaid polygon. I tried a for loop to iterate through the polygons, but as one might expect ...
1
vote
0answers
116 views

Use WMTS as a mask to clip a polygon in QGIS

I have loaded a WMTS layer. But when I carry out some raster geo-algorithms nothing shows up in the drop down table (i.e. I can't use the raster layer as an input object). How do I make it possible ...
5
votes
3answers
6k views

Remove NA from Raster Layer

I have a RasterLayer and a SpatialPolygonDataFrame. I used the mask function to create a new RasterLayer. The output is correct but it does include lot's of NA values. Now I want to get rid of ...
2
votes
1answer
285 views

How to force 1 bit GeoTiff (binary image) outputs from QGIS processing in Python console?

In a QGIS Python script I'm trying to produce raster 0/1 mask with use of procesing package. The pipeline looks like that: Create an image of index (NDSI if that matters) with numpy arrays from a ...
2
votes
1answer
397 views

Clipping raster with polygon mask but keeping outer edge cells of mask in QGIS?

In QGIS, how to clip a raster with a polygon mask, but keep the outer edge cells of the raster touching the mask? In other words: how to create a one raster cell outer buffer for the masking polygon?...
2
votes
1answer
305 views

Can't clip vector layer from a raster layer I created

I've been trying to clip an area in a raster image which I have created from an OSM. However when I fill out the raster clipping form I get the following message. Error 1: Output dataset. tif exists, ...
2
votes
0answers
31 views

How to include pixels excluded by MASK in GRASS GIS?

I have a 150km x 150km raster layer of elevation. I'm running a cell-by-cell PyGRASS script, with one step that considers all neighboring cells within a fairly large circular radius (25km). To account ...
0
votes
1answer
101 views

MODIS coastline issue

I have a few MODIS products and as I was combining my imges I realised that some of the pixels around the coastline where abit off.Is that a standard issue and if so should I use reproject or should I ...
4
votes
4answers
475 views

How to create a semi-transparent map collar in QGIS composer?

In QGIS 2.14, how can I create a semi-transparent "map collar" (white space around the outside of the page) in Composer? I imagine the map collar would be some sort of graphic shape (not a feature) ...
1
vote
1answer
437 views

masking multiband with rasterio

I have 2 multiband rasters and I want to mask some areas of one of them with values of the other one, so I write this code (I can't figure out why is not working): import os, rasterio import numpy as ...
2
votes
0answers
388 views

Geoserver Dynamic Raster Masking Based on Request Parameter

Is it possible for Geoserver to dynamically mask out values above or below a certain threshold in a WMS or WCS Geo-tiff request? For instance I make a request with some threshold parameter like 49 ...
2
votes
0answers
86 views

Rasterizing Shapefile, using other shapefile as Mask

I have a shapefile (ShapeY) of European extend and want to rasterize each time only a certain area of the shape (ShapeX) (i have the shapes indicating the prevailing extend) with python and QGis. ...
2
votes
0answers
135 views

How to mask only select layers (i.e., exclude some layers from the mask)

is there a way to create a masking layer in QGIS (2.14) that will mask only certain layers, so that some layers (such as baselayer imagery or other) will be unaffected? I'm using geometry generator ...
4
votes
1answer
709 views

Altering elevation of specific cells in raster layer of QGIS?

I'm looking to alter the height of some cells within a raster and it's been suggested that I do this by creating a polygon layer and use that as a mask to alter only the heights of cells within the ...
2
votes
0answers
93 views

Mask out values in a raster based on standard deviation [closed]

Does anyone know (in Modelbuilder or python) how I can remove any values of a raster that outside of the range of three standard deviations? I have a lot of rasters so it would be quicker than ...
0
votes
3answers
236 views

Assign Mask From Layer in SearchCursor Loop In ArcPy: Error Accessing Environment

I'm trying to run a loop based on a SearchCursor that selects layers from an input polygon and polyline. I want to select a feature from the polygon to use as a mask for running Euclidean Allocation ...
3
votes
0answers
145 views

Open source alternative to the “Contours with Barriers” Tool in ArcGIS

I am trying to create a contour file for the globe for a project and am using open source GIS software packages. I was trained for several years on ArcGIS and there is a tool to create contours with ...
1
vote
0answers
124 views

Grass i.landsat.acca says image is cloud free but it is not

I'm working on an area in Amazonia with high cloud persistance which makes global data on land cover quite useless at small scales, so I wanted to learn to process my own Landsat images, with GRASS ...
2
votes
0answers
773 views

Efficient way to resample, crop, and mask a raster image using R

Does anyone know an efficient way to resample an image? I am currently trying to crop a large image and clip two regions from a shapefile. From this clipped image, I would like to increase the pixel ...
0
votes
1answer
143 views

Masking low quality raster with polygons in R gives weird overhang?

I am pretty new to R, and have been attempting to use the mask function on a raster image of 250mx250m resolution. My problem is that for some reason I am getting overhang, as there are pixels which ...
1
vote
0answers
127 views

Creating numerical mask file with elevation points of area with QGIS? [closed]

I'm using QGIS and I have to create a mask file (.txt) as an input for a hydrological model. The file should be a numerical grid map that represents the elevation points of a catchment area, like the ...
3
votes
1answer
829 views

Clipping raster file in ArcMap over the extent of polyline shape

I have a calculated raster file, overlayed on a shapefile with lines (like on figure) I would like to clip the raster in ArcMap (since it is an interpolation and out of the vector shape it is mostly ...
3
votes
1answer
1k views

How to ‘invert’ or ‘reverse’ a vector cutline when gdalwarp'ing a raster?

I have a raster of North America and I'd like to remove the larger lakes from it, replacing them with the same no-data value as the original raster. So I downloaded Natural Earth's 10 meter lakes ...
3
votes
1answer
282 views

Reclassify raster pixels underlying certain polygons using Python

I've got a shapefile with many polygons, each of which exactly overlays a contiguous region of raster cells; an example in yellow: For some of these, I want to use the polygon as a sort of analysis ...
2
votes
0answers
281 views

Creating polygons using mask layer?

I looked at this question, but it only answers part of my problem. I want to create Thiessen polygons based off of the green points within the blue polygon boundary ONLY. I've set the Processing ...
2
votes
1answer
275 views

Annotation masks disappearing

I have created annotation from the labels of a set of contour lines in ArcGIS and used Feature Outline Mask to create a mask layer in order to mask the lines using Advanced Drawing Options and make ...
1
vote
2answers
366 views

Combining several mask rasters to obtain one single mask with binary values

I have a series of separate rasters which represent the cloud cover over the same area but in different months. Each raster has 2 values: nan for "no cloud" and 255 for "cloud". What i want to do is ...
2
votes
1answer
665 views

QGIS Treat null as zero in raster calculator

In QGIS - I have an irregularly shaped raster - I wish to clip an irregular area out of it (call it raster A) with that area set to null. I masked the area (vector polygon) I want to remove and used ...
1
vote
1answer
329 views

Masking of DEM in ArcGIS Desktop?

I have a clipped DEM of my study area in ArcGIS Desktop 9.3 which I want to use for SWAT project set-up, but I need to mask it. How do I go about it? I'm new to the use of ArcGIS. I don't want to ...
0
votes
2answers
78 views

How many percentage of sea area is covered with points?

I have a large number of lat/long positions at sea for a geographical area (stored as CSV). This geographical area also contains lots of land area. I want to divide the sea area into a grid (f.ex down ...
3
votes
1answer
224 views

Landsat Surface Reflectancce product Python packages

I have to work with numerous Landsat surface reflectance product that I downloaded from http://landsat.usgs.gov/CDR_LSR.php. The product comes with a QA data with information on clouds and shadows ...
1
vote
3answers
432 views

Clipping several raster datasets with mask?

I would like to clip many images (raster datasets, input) with a mask (shapefile) for my study area. Is it possible to do with ArcGIS 10.3 for Desktop? I tried to merge all the images but it is ...
0
votes
2answers
4k views

Reversing Extract by Mask in ArcGIS for Desktop? [duplicate]

I have a DEM and I want to apply some tools to it (fill and others). In my DEM I've zones (drawn as mask) that need to be exlcluded from that processing. I don't want to apply the processing to the ...
1
vote
1answer
478 views

How to create a feature mask with a polygon? [closed]

I need to create the SAME polygon shape shown in the image below, just 2 miles larger. The buffer wizard tool is only creating circular buffers around the irregular shape below. Any ideas on how to ...
5
votes
4answers
14k views

Deleting polygon defined area from raster layer in ArcGIS Desktop?

Which tool do I use in ArcGIS 10.1 for Desktop to exclude areas covered by vector polygon layers from a raster layer? I want to keep portions of the raster layers that exclude the portions covered ...
1
vote
0answers
192 views

Masking in ArcMap

I have question on masking. I have vegetation group layer. Under vegetation group layer, there are 3 layer which are V_Vegetation_Miscellaneous_A, V_Vegetation_Agriculture_A, V_Vegetation_Forest_A. ...
2
votes
1answer
1k views

Issues with extract by mask tool

I am using the extract by mask tool to fit my raster to a mask (province of Nova Scotia). I've noticed that the raster doesn't quite fit the mask; the north and south boundaries of the province is cut-...
11
votes
3answers
845 views

Considering holes/constraints in Voronoi polygon creation in QGIS?

I am trying to create voronoi polygons in QGIS that would consider "holes" in the general domain. An example would be: I actually created the Voronois in this image using QGIS through the GRASS ...
1
vote
0answers
305 views

Mask plugin, Atlas composer and Legend

I'm tryin' to use the mask plugin associated with atlas composer (QGIS 2.7 dev). I'd like to have in the legend of map composer only the features that belong to mask instance (inside the mask). if I ...
29
votes
5answers
15k views

Increasing speed of crop, mask, & extract raster by many polygons in R?

I'm extracting the area and percent cover of different land use types from a raster based on several thousand polygon boundaries. I've found that the extract function works much faster if I iterate ...
2
votes
1answer
150 views

remove unwanted areas which are not inside the boundary of second raster

1 raster layer - global map ; 2 raster layer - berlin I cropped out 1 layer using extent of 2 layer and then overlapped these two layers however I see that 1 layer still has areas apart from berlin(...
0
votes
1answer
630 views

Applying mask in ArcGIS Geostatistical IDW?

I'm finishing an analysis of approximately 850 archaeological assemblages in the Mediterranean, and I've successfully run IDW in Geostatistical toolbox (ArcGIS 10) to generate the results I like. I'm ...
3
votes
1answer
1k views

Extracting raster data outside of clip

I'm trying to extract Sea Surface Temp raster (floating integer) that includes both sea temp and land surface temp. I want the data outside of a clip. I've clipped the coastline with a polygon in ...
1
vote
1answer
453 views

IDW with QGIS from a vector points file within a mask

Given two inputs: A shapefile: points A raster: mask I want to interpolate the points within the extent of the raster except the NoData pixels that i want to use as a mask. NoData pixels are the ...
1
vote
1answer
520 views

TIN gets distorted using hard clip to edit it?

I have two cross sections from which I have created a TIN as can be seen in the following image. For removing the extra outer portion of the TIN, I created a polygon from the cross-sections and edited ...
1
vote
2answers
3k views

Error: Cutline feature without a geometry. > Raster Type

I've got an "Error: Cutline feature without a geometry" on QGIS 2.4.0 Chugiak. I have 2 samples (A raster type and a vector type), they have the same coordinates (EPSG:4253 - Luzon 1911) Then I tried ...
2
votes
1answer
113 views

QGIS vector layers do not match DEM?

I have a DEM (saved as a .tif) and, using QGIS, I want to clip the DEM using a vector mask. The function will not work. Am I missing critical step?