As of May 31, 2023, we have updated our Code of Conduct.

Questions tagged [filter]

To show, hide, extract, or remove particular data from a larger set, narrowing it down, or the specific criteria used to do so.

Filter by
Sorted by
Tagged with
32 votes
2 answers
21k views

Filtering features in other layers of QGIS Atlas

I'm trying to use the QGIS Atlas tools to build student 'scattermaps', i.e. display the school and the students that attend that school, for 215 schools. The schools layer is the coverage layer, and ...
DPSSpatial_BoycottingGISSE's user avatar
7 votes
2 answers
3k views

How to de-noise a DSM?

I have created a DEM, DSM, and nDSM from a LiDAR Point Cloud using SAGA-GIS. I extracted the appropriate returns from the point cloud, then converted to grid, and then closed gaps to fill in any ...
Brian's user avatar
  • 4,199
16 votes
2 answers
45k views

How to filter features in a layer?

I am trying to display certain features in a shapefile-based layer using QGIS. I have found the subset function in the properties panel, which does exactly what i want, but is too tedious given that I ...
dietmar's user avatar
  • 161
2 votes
2 answers
3k views

Using sieve filter in ERDAS Imagine and/or ArcGIS for Desktop?

Where can i use a sieve filter for my supervised classification? Can i do it in Erdas Imagine or in ArcGIS? I can't find it anywhere.
user28704's user avatar
11 votes
1 answer
2k views

QGIS query syntax differs between attribute table and feature filter

Using QGIS 2.16.2, I can successfully select records from a shapefile attribute table using the following expression: left("start_time", 10) = '2015-08-01' Please note that start_time is a string ...
Stu Smith's user avatar
  • 7,759
5 votes
1 answer
683 views

Selecting LiDAR return point type in LiDAR dataset with ArcPy?

I am trying to create a Digital Earth Model (DEM) using ArcPy under ArcGIS Pro 2, but I am running into some problems. I can generate a DEM within ArcGIS Pro by selecting only the ground points ...
user44796's user avatar
  • 1,873
28 votes
2 answers
22k views

What is the difference between != NULL and IS NOT NULL in QGIS filter expressions?

I have a shape layer with an attribute containing NULL values to which I would like to apply a filter for values different from NULL. Using the available GUI for such query construction, one would ...
Jochen Schwarze's user avatar
13 votes
1 answer
6k views

How to apply a filter to multiple vector layers in QGIS?

I am trying to apply an attribute filter to multiple layers in QGIS at once. The filter is to be applied to .osm data brought in through PostGIS to QGIS. I have tried selecting multiple layers -> ...
traffikHam's user avatar
5 votes
1 answer
10k views

Filtering a raster by pixel value ? (Qgis)

I have downloaded Globcover data in GeoTIFF format. I want to create a new grid which only has values where the Globcover data (the only band in the TIF file) has one certain value (==190). Can I do ...
andreash's user avatar
  • 721
18 votes
4 answers
18k views

Filter features based on their attributes using Python

How to get features by their attributes (similar to 'IQueryFilter' in ArcObjects) in QGIS using Python? Instead of getting all features and filter it manually, is there any option to use where clause ...
venkat's user avatar
  • 1,051
2 votes
1 answer
764 views

Filtering images that completely overlap area of interest in Google Earth Engine

I have a Sentinel 1 image collection and I want to filter the images that completely overlap my region of interest. filterBounds() keeps the images that partially overlap my ROI. While browsing the ...
Charbel El Khoury's user avatar
2 votes
1 answer
650 views

Showing only filtered features using Rule-based symbology in QGIS

I have a layer called 'A' with a field called "B", under this field, there are multiple values such as "C, D, E..." (one value for each row/feature in the attribute table). I have ...
TRE's user avatar
  • 61
12 votes
4 answers
6k views

Filtering out canopies and buildings from DSM to have a bare earth elevation

Can anyone suggest methods in filtering out trees and buildings from a DSM so as to come up with a reliable DEM? What I have is a grid from a LIDAR data (.tif file, with 1m resolution). I was going ...
vklopt's user avatar
  • 459
9 votes
1 answer
3k views

How to apply a Majority filter in GRASS GIS?

I was wondering if someone could help me write a majority filter for GRASS GIS. I have this map (see below) which I need to run a filter over to make the red areas a bit more dominant. I know I can ...
Nathan W's user avatar
  • 34.4k
8 votes
2 answers
3k views

Filtering by geometry type in GeoPandas

I have a GeoPandas GeoDataFrame with a geometry column that contains both POLYGONs and MULTIPOLYGONs. How do I filter only MULTIPOLYGONs? I used this approach, but I am sure there might be better ones:...
baggiponte's user avatar
4 votes
1 answer
379 views

Filter nearby points leaving only one in QGIS

I have a shapefile with points, however the algorithm gave not one point per location, but several. I would need to filter these points, so that there is only one point, does not matter which one, ...
g123456k's user avatar
  • 608
3 votes
1 answer
3k views

DWithin WFS filter is not working

I'm new to GeoServer andI want to buffer an area around a point. I'm using a DWithin WFS filter but not getting any results. Please tell me the correct format to use DWithin. My GET request: http://...
user3266988's user avatar
2 votes
1 answer
4k views

Passing selected polygon to INTERSECTS filter in a WFS request

In the code below, <ogc:Filter> <ogc:Intersects> <ogc:PropertyName>the_geom</ogc:PropertyName> <ogc:Function name="querySingle"> <ogc:...
okello's user avatar
  • 1,774
2 votes
2 answers
1k views

Avoid NoData after Focal Statistics Majority

I am currently working with some classified land cover rasters (containing 8 land cover classes) in ArcGIS 10.0. I would like to make them look smoother and have therefore used the Focal Statistics ...
user30508's user avatar
2 votes
1 answer
3k views

How to filter through geometry of feature collection instead of properties?

I have a FeatureCollection I made from a Polygon shapefile. I have fixed the geometries in qgis and should only be made out of many single polygons. But for some reasons some of my features are ...
B-C B.'s user avatar
  • 715
2 votes
2 answers
4k views

LAS dataset to raster with ground points only [duplicate]

I'm trying to make a raster from an LAS dataset. I want to only use points classified as ground, but I can't figure out how to do this. What I've tried is: Create LAS dataset from 2 .las files. ...
Johan's user avatar
  • 163
2 votes
2 answers
6k views

OpenLayers WFS protocol: work with filters if the protocol is defined out of layer constructor

follow question:wfs-load-feature-check the scenario is: i am trying to load a WFS layer, since it takes a while to load all features, I want to give user a notice while waiting for response. the ...
Simon's user avatar
  • 1,197
1 vote
1 answer
2k views

Keeping only ground points (class 2) with lasground in QGIS 2.14?

I want to keep only the LiDAR ground points in a las file, using the lasground tool from LAStools within QGIS. In QGIS Chugiak (2.4) there used to be an option to "keep class 2", but I don't know how ...
user66349's user avatar
  • 149
13 votes
1 answer
8k views

Problem with WFS filters (BBOX, INTERSECTS)

I'm trying to get a feature/features from a small area using the BBOX (or INTERSECTS) filter in my WFS query. I should be expecting only a small set of features or a single feature and yet the query ...
mrLite's user avatar
  • 399
12 votes
2 answers
4k views

How to filter big datasets in Geoserver WMS?

Is there a good way to filter datasets with approx 50,000 features in Geoserver? I'd have to select between 100 and 200 features based on ids. These ids are different from the FeatureIds. Couldn't ...
underdark's user avatar
  • 83.6k
12 votes
2 answers
43k views

Filter a GeoPandas dataframe for points within a specific country

I have a dataframe of health survey data which is geotagged, called momdata. I have converted the dataframe to a GeoPandas dataframe, and used the geotags as the geometry column within the dataframe, ...
LucieCBurgess's user avatar
12 votes
1 answer
6k views

Using IN-operator in query builder in QGIS

I want to filter out some bits of a layer and I want to do this in query builder in the on a text field which contains names of several countries. I cannot figure the use of IN as in I want to find '...
sjrichardson's user avatar
11 votes
2 answers
8k views

How to use paging in a WFS query?

I am running a GetFeature request against a WFS server which does not support to download all data at once. Can I use ogc:PropertyIsGreaterThanOrEqualTo to split the dataset into chunks at download ...
JJD's user avatar
  • 1,511
10 votes
1 answer
13k views

Queen vs Rook neighborhood

Queen and rook neighborhoods are two common ways to calculate statistics for a focal cell. They are also known an Moore and (von) Neumann neighborhoods. I think a "bishop version", i.e. from lower ...
Jens's user avatar
  • 1,188
9 votes
2 answers
2k views

QGIS using project variables in filter queries

In QGIS 2.14.11 LTR I have to apply the same (or similiar) filter query to various layers. I have the road name to filter for in a project variable and try to apply the following query: "road_name" = ...
Jochen Schwarze's user avatar
9 votes
1 answer
2k views

Filtering layers in QGIS atlas

In processing several spatial data sets (tbl_data_01, tbl_data_02, tbl_data_03, etc) using FME I establish a spatial table called "tbl_metadata" with information about each of the data set. This table ...
ragnvald's user avatar
  • 3,173
7 votes
3 answers
3k views

Limiting list values based on previous field in QGIS Forms?

Looking for assistance to set up appropriate configuration to enable drop-down lists values to be filtered based on a previous value. Basically, I have a 3-tiered categorisation structure to one of ...
Jamie's user avatar
  • 581
7 votes
4 answers
2k views

Can any WFS server accept ECQL filter as a POST request parameter

I believe GeoServer requires that filters passed in a WFS POST request are in the OGC XML based format. If you make a GetFeature request to GeoServer using a GET request the filter can be CQL or ...
Paul Wittle's user avatar
6 votes
1 answer
2k views

How to set a spatial filter with Python/GDAL?

Is there a way with GDAL (Python) to set a spatial filter (bounding-box) on a raster before I process it? I want to read it as an array. BandReadAsArray(band, xoff=0, yoff=0, win_xsize=None, ...
ustroetz's user avatar
  • 7,904
6 votes
4 answers
1k views

Taking only the largest polygon from MultiPolygon layer in QGIS

I have MultiPolygon geometries in my file, and I want to take only the largest polygon within the MultiPolygon geometry to further work with it. I tried using the "Multipart to singleparts" ...
Anabella's user avatar
6 votes
4 answers
2k views

How to filter LiDAR data by scan angle?

I am looking to filter LiDAR data (.las format) by scan angle specifications (e.g. keep all points < 15). From a basic Google search, it appears that the libLAS library has the ability to filter by ...
Aaron's user avatar
  • 51.3k
6 votes
2 answers
5k views

Filtering a layer with attribute value from another layer in Qgis 2.18

I am pretty new to Qgis and a real beginner when it comes to working with expressions in Qgis. Maybe someone can help me with following problem: I have several Layers (like Building + House) and ...
lancelot1988's user avatar
6 votes
1 answer
4k views

How to filter wrong GPS readings?

I have absolutely no experience with GIS, it just so happens that one of the hobby projects I am doing at the local hackerspace includes tracking a model boat with a GPS... I hope this is the right ...
mac's user avatar
  • 163
5 votes
2 answers
3k views

What is the best approach to using IQueryFilter.WhereClause in ArcObjects?

What is your preferred / best approach to using IQueryFilter.WhereClause statements in ArcObjects (e.g. when selecting features by attributes)? You need to check the source type (shapefile / personal ...
jan_b's user avatar
  • 772
5 votes
1 answer
2k views

Geoserver WMS Filtering: Clipping geometry against a polygon

My data set is a series of multilinestrings representing roads. During a WMS GetMap request, I want to specify a polygon and display only the portions of those roads that fall within the polygon. I am ...
bfishman's user avatar
  • 215
4 votes
2 answers
800 views

Showing only features related to selected feature in another layer using QGIS

I have: ways (tracks) and points (way signs). The tracks are outgoing from the way signs. This should be the visible result: The ways with the name 'A' are visible (coloured) because the related way ...
MartinMap's user avatar
  • 8,137
4 votes
1 answer
5k views

Filtering Image in Google Earth Engine based on metadata

I'm trying to create a raster layer of the USDA NASS Cropland dataset using only certain crop classes. Is ee.Filter.inList only used for ImageCollections and not Images? It seems more appropriate to ...
dwolf's user avatar
  • 311
4 votes
2 answers
807 views

Copy/convert selection into filter/query builder of QGIS?

Can anyone tell me if it is possible (and how) to convert or copy a selection on a layer (that has not been created through "select by expression", but instead by irregular selections from a canvas, ...
guestagain's user avatar
4 votes
1 answer
5k views

QGIS Filter layer by expression [closed]

Can I make the filter by the value that is obtained by the function? for feature in iter: name_dot = feature['name'] print name_dot expr = QgsExpression("\"name\"=name_dot") selection= layer....
Евгения Сидоренко's user avatar
4 votes
1 answer
352 views

Spatial queries with QGIS provider feature filter (layer filter)

QGIS offers the option to use layer filters: Layer Properties > Source > Provider Feature Filter, see documentation: Query Builder. As far as I can see, this filter is only able to filter based ...
Babel's user avatar
  • 60.9k
3 votes
1 answer
122 views

QGIS expression - overlay function, using overlay function as filter

I have a point layer with one field, id ranging from 0 to 9. I have a polygon that intersects some of the points, like so: My aim is to use an expression to get the intersecting point with the ...
Matt's user avatar
  • 13.8k
3 votes
1 answer
748 views

Filtering (lasfilter on) huge LiDAR dataset

My dataset is about 8.3 GB after loaded into R environment by using lidR package. Some points which have return number greater than number of returns need to be removed. With a small dataset, I ...
wnursal's user avatar
  • 163
3 votes
0 answers
389 views

How to filter legend by map content in composer with raster layers?

Does the "Filter Legend by Map Content" button in composer of QGIs 3.2 version work only for vector layers? It seems it's a bug reported in 2.18.x version and should be fixed for 3.x versions (https://...
Fernando Franke's user avatar
2 votes
1 answer
2k views

Select Features outside of polygon or reverse .filterBounds Google Earth Engine

Is there an easy way of selecting only those features not contained inside a certain polygon, let´s call it aoi? FeatureCollection.filterBounds(aoi) retrieves every Feature inside aoi?
Alexander Vocaet's user avatar
2 votes
2 answers
2k views

Applying bounding box filter in Leaflet WMS

There is a working example in Leaflet site for adding WMS Layer in Leaflet map at: http://leafletjs.com/reference.html#tilelayer-wms. But I don't see methods to provide the filter for bounding box. Is ...
Prabhash Jha's user avatar