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.

84 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
6
votes
0answers
2k views

Get rid of jumping GPS data with pykalman

I have gps data that I get from a smartphone application. Whenever the smartphone is stationary, the gps points are jumping. I understand that the signal is inaccurate due to the reception in a city ...
5
votes
1answer
1k views

Filtering a layer based on property that's an array in with Mapbox GL JS?

I've got a relational dataset broken into two layers: members and organizations. They're GeoJSON, with features that look something like this: // Org Features { "type": "Feature", "geometry": { ...
4
votes
0answers
478 views

Using OSMFilter to filter for the lack of a tag

I am looking into filtering the OSM data for lakes, using OSMFilter. Lakes can be defined by the combination of tags natural=water water=lake However, another definition would be only natural=...
4
votes
0answers
82 views

How to select points as geometry in QGIS when both multipolygons and points are stated within the wfs-server?

I'm trying to show data from the following server in QGIS: http://geodata.nationaalgeoregister.nl/bag/wfs?service=WFS&request=GetCapabilities& I made a filter on the data I would like to ...
3
votes
0answers
144 views

Custom QGIS expression to filter atlas pages

I want to filter my atlas pages based on a list returned by a custom function but it won't work. This is my function: from qgis.core import * from qgis.gui import * from qgis.utils import * @...
3
votes
0answers
665 views

Leaflet filtering existing featuregroup

I have a leftleat map and i would like to filter the featuregroup i am displaying. exp_colJSON = new L.geoJson(exp_col,{ onEachFeature: pop_col, pointToLayer: function (feature, latlng) { ...
2
votes
0answers
26 views

Create a report with filter from different layer using Atlas

I have the following scenario: Layer ‘grid’, with a field called ‘number’ Layer ‘log’ with field called ‘number’ in common with ‘grid’ layer and another field called ‘date’ Layer ‘problem’ with field ...
2
votes
0answers
60 views

How to create a filter expression from selection QGIS 3.6.3

I need to create a filter expression to filter only the selected polygons in a layer. Yes I know I can save the selected elements to a new layer but this solution is not suitable for me. I managed to ...
2
votes
0answers
43 views

Filtering value layer according to condition of other layer using QGIS?

I have 2 point layer: layer A have 500 point; layer B have 50 point and these point have coordinate duplicate with some point in layer A. I want to find these 50 point out of the 500 points in layer ...
2
votes
0answers
72 views

Applying filter on the geometry for a given feature?

I have multiple layers, with multiple features, where I am interested in extracting information from a given feature within a rectangle. I am able to achieve this using the following filter, ...
2
votes
0answers
105 views

QGIS 3.4.8 Filter Expression for OSM values

I'm trying to complete the seemingly basic task of a filter select for a layer of OSM data pulled from https://download.openstreetmap.fr/extracts/africa/. It's an .osm.pbf which I added to my project ...
2
votes
0answers
150 views

QGIS Rule-Based Labeling - Toggle child rules visibilty

So it works to add labels by dragging it to another label, like it does in styles. But if I try to hide this upper filter, the contained labels won't hide. Is this a bug, or is it not wanted, to set ...
2
votes
0answers
145 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://...
2
votes
0answers
325 views

Filter function based on attribute. Leaflet

Im trying to create a webmap based on Leaflet - google spreedsheets example I have a a "group" layer with three diferent group names. I have added some easy buttons to click the layers on and off, ...
2
votes
0answers
169 views

How to smooth a classified raster layer in QGIS?

In QGIS 3.0.2, I want to smooth a reclassified raster layer by r.neighbor tool. In this process I use average operation. The raster layer created from this tool is empty. I tested this process with ...
2
votes
1answer
1k views

Combine multiple dynamic Leaflet filters

I'm very new to Leaflet and made a map using a GeoJSON Layer. I'd like to filter points from the GeoJSON Layer by a checkbox input. If I consider only one Parameter (Par1) with levels A, B and C I can ...
2
votes
1answer
62 views

Adding filter functions in place of a literal expression in GeoTools?

I'm writing some code to use filter functions in geotools. (attName >= replacementFunc() AND title LIKE replacementFunc()) AND attName2 = replacementFunc() In the area that says LIKE I get a ...
2
votes
0answers
223 views

Keeping used relations (i.e., member relations) when using --tag-filter in Osmosis?

I just got started with the OpenStreetMap and their OSM-files. I am using Osmosis (https://wiki.openstreetmap.org/wiki/Osmosis) to filter a .osm file. I noticed that used relations are not included in ...
2
votes
0answers
87 views

Provider feature filter causes QGIS rendering to stop

I'm running QGIS 2.14.0 Essen on OSX 10.11.5. I would like to create a simple thematic map showing a subset of points over a basemap with state and county boundaries. I used an IN query in the '...
2
votes
0answers
467 views

Between operator QGIS

I am using QGIS Essen version (2.14.1). I am trying to filter my data based on dates. I am wondering if the "between" operator exists like in SQL? I'm trying the following query but the results are ...
2
votes
0answers
150 views

Are there methods of filtering gps-data with metadata?

In our project we captured GPS-tracks from a few electric vehicles in the timeframe of a year. In total we captured around 13000000 GPS-points this way. The captured data comes from electric powered ...
2
votes
0answers
185 views

How to Use GetGeomtype Gdal Python

I am just wondering what I am doing wrong when trying to use the GetGeomType. I need to focus on separating layers from a pix file. Two categories are the bitmaps(which are vectors) and then the ...
2
votes
0answers
79 views

C++ parser for OGC Filter Encoding 1.0

I'm developing a C++ application and I have to parse a OGC Filter in order to implement querying functionality on a metadata repository. Does anyone know any C++ library to parse OGC Filters? Thanks.
1
vote
0answers
26 views

GeoServer shows 404 error when CORS filter is added

I am trying to enable the CORS for GeoServer. I am using GeoServer 2.16 and the Tomcat version of 9.0.8. I already tried to add following code in geoserver/WEB-INF/web.xml file, <filter> &...
1
vote
0answers
25 views

Howto write QGIS server WMS GetPrint with 'OR' in filter

According to the QGIS manual I can include 'OR' in a WMS GetPrint request (https://docs.qgis.org/3.4/en/docs/user_manual/working_with_ogc/server/services.html#filter) But I cannot get it to work and ...
1
vote
1answer
31 views

Count max number of pixels for image in GEE and then calculte numbers from this number

I have a code that creates image collection and then calculate what is the biggest number of pixels in image (e.g the image with maximum spatial data). I managed to calculte this number and to use it ...
1
vote
0answers
17 views

filter by last digit works in points but not in lines

I have three-point layers T, A1 and A2. T is original points and A1 and A2 are generated by some algorithms. I am trying to compare the result of A1 and A2 with T. On T, A1 and A2 I can apply a ...
1
vote
0answers
33 views

Extracting city information only from OpenStreetMap

I need to extract City as well as hierarchy of admin entities for selected countries. My understanding for now is that I'll have to get node primarily and find a clever filtering based on tags. And ...
1
vote
1answer
46 views

Separating LAS Dataset (.lasd) into point files of each class?

I am want to examine my DEM, DSM, and other models I'm generating from LiDAR data in the model wizard to find the method with the least amount of error. I want to separate the ground, and non-ground ...
1
vote
0answers
33 views

Can QGIS load filtered layers on open from geopackage file?

I have some external processing (FME from SAFE software) which generates a geopackage file with a set of tables. Is it possible to load a set of filtered tables from a geopackage file when opening ...
1
vote
0answers
19 views

Accessing subattributes in WFS with FE?

I have a WFS server that I need to filter information out of with filter encoding. If the attributes are on the surface, I don't have any problems getting their information. But I don't know how to ...
1
vote
0answers
25 views

Filtering the number of pictures per month of a time series in Google Earth Engine

I'm calculating the NDVI of a time series (1 year) of Sentinel-2, but I only want two images per month to calculate that instead of the whole collection of images with less than 75% cloud. //NDVI ...
1
vote
0answers
58 views

Filter Features depending on User with GeoServer

I now use viewparams to filter the features by using sql views in GeoServer which is connected to our postgis-db. This means the parameter comes from the request url. I want to use keycloak for ...
1
vote
0answers
59 views

Filtering points in cloud to find representative set

I have multiple sets of points that represent 'instances' of GPS traces. When ordered and connected, I have a line that represents each trace. I'm trying to find the most average line through this ...
1
vote
0answers
40 views

Unexpected behaviour using Filter in QGIS 3.2

I have encountered an unexpected difference in how the Filter function works in QGIS 3.2 to previous versions (2.14 for example). I used the Filter function to select a set of features based on a ...
1
vote
1answer
66 views

Using delimited text layer to keep only those polygons and records of a shapefile which match a column in the delimited text layer?

What I want to do is trim the shapefile so that only those records and associated shapes that match the same values in a column in the delimited text layer (which in my case is a CSV) are kept in a ...
1
vote
0answers
204 views

Filter on joined tables in QGIS

QGIS 3.2.3: I have a shapefile and an Excel table which is joined to the shapefile based on matching IDs. I would like to filter the shapefile while using a joined field from the Excel table. When I ...
1
vote
0answers
170 views

ogr2ogr: filter on date-field

ogr2ogr -spat_srs EPSG:31370 -spat 179600 167350 179800 167500 -f "ESRI Shapefile" test.shp "WFS:http://ccff02.minfin.fgov.be/geoservices/arcgis/services/WMS/Cadastral_Layers/MapServer/WFSServer?" ...
1
vote
0answers
109 views

Make QgsVectorLayer().getFeatures() ignore an existing filter

When retrieving features from a layer with PyQGIS by sth. like feat = [f for f in my_lyr.getFeatures('"road_name" = \'myroad\'')] the resulting feat list is empty in cases where a filter is applied ...
1
vote
0answers
335 views

Filtering a map in print composer

Is it possible to filter a map's layer inside Print Composer, like it is possible to filter a layer in Qgis main window? I have a layer with several points, and I'd like to create several layouts ...
1
vote
0answers
226 views

QGIS SAGA Gaussian Filter brings error when run

Every time I run the SAGA Gaussian Filter tool, I get an error. I am trying to filter a raster file indicating a risk index (GeoTIFF, 32-bit float) in order to smooth it. The log message I get is ...
1
vote
0answers
146 views

Filtering elements of FeatureCollection using fusion table that contains list?

I'm new to Google Earth Engine. I am trying to filter all countries in the Americas from a Fusion Table that contains all countries in the World: // Load countries var countries = ee....
1
vote
0answers
134 views

Attachment from Data Driven Pages - Name Filter

We are using data driven pages to create a large series of figures. We used Collector in the field to collect features with data and attachments. To display the attachments for each feature, we use ...
1
vote
0answers
430 views

WFS filter with ArcGIS for Server

I am working with filters for ArcGIS for Server, the documentation of ArcGIS is not helping me a lot. I am trying to retrieve a point inside a polygon but when I run the filter no results are shown. I ...
1
vote
0answers
273 views

Help with WFS Filter request

I'm trying to download all features from this WFS: capabilities, describefeaturetype It's working fine with the most simple requests like: getfeatures But now, I need >all< features in the ...
1
vote
0answers
420 views

Mapbox gl : How to perform a filter in a polygon?

I want to make a filter on the geometry of my layer source vector. var polygone = ..... var filter = polygone.reduce(function (memo, coord) { memo.push(coord); return memo; }, ['in', '$...
1
vote
0answers
314 views

Possibility to use spatial filters for layers in QGIS

I like the power of QGIS regarding setting attribute based filtes. But is it also possible to filter contents of layers based on their location and spatial relations to other layers within qgis ...
1
vote
0answers
209 views

Mapserver - Dynamically Change OGC WFS Filter from WMS BBOX?

Is it possible to dynamically change the content of an OGC WFS filter based on the BBOX of an incoming WMS request? I am attempting to serve the response of a WFS which require that I use an OGC ...
1
vote
0answers
58 views

batch filter (r.mfilter) raster time series, keep original file name

I want to apply a filter (r.mfilter) to a raster time series while keeping the original filenames. For a similar problem when batch converting file formats in QGIS, I entered : - as file name when ...
1
vote
0answers
391 views

qgis python + layout/template + exporting in .png + filtering layers

I need to do a lot of pictures at different points from vector layer on each. And the picture (.jpg / .png) must be signed and so on - then the layout is best suited. Now I do a picture on a map ...