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.
644
questions
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 ...
1
vote
1
answer
553
views
GeoServer FeatureID Filter Limits
we've made an application that uses GeoServer WMS tiles on an OpenLayers map. We have a layer of Bus Stops which we filter based on search results from previous search i.e. User searches for 'The ...
2
votes
2
answers
1k
views
Geoserver CQL Cross Layer Intersection Failing
I am having trouble forming a properly formatted CQL request using geoServer cross layer filer functions and was hoping others could assist. My request is as follows:
http://localhost:8080/geoserver/...
2
votes
2
answers
3k
views
GeoServer where clause filter
I use PostGIS, GeoServer, and OpenLayers for GIS development.
I simply reach from GeoServer to PostGIS table or view and show it with OpenLayers, but I need some filtering operation on my spatial ...
2
votes
1
answer
215
views
Is it possible to use a WHERE clause with Grass v.in.ogr for DGN sources?
I am trying to import a .DGN with Grass v.in.ogr in QGIS. I am able to import the DGN perfectly, but I would like to filter the elements using the WHERE option. From searching, reading and testing I ...
3
votes
1
answer
2k
views
Filtering layer of OpenStreetMap data using QGIS
I have a table osm_roads that has a column named geometry geometry geometry(LineString,900913).
If I want to filter a city to draw districts, I cannot do it by geographic coordinates.
What if in QGIS ...
0
votes
1
answer
694
views
OpenLayers.Filter.Logical not working
I have the following code:
var map = {};
var googleMercator = new OpenLayers.Projection("EPSG:900913");
var wgs84 = new OpenLayers.Projection("EPSG:4326");
var lyr_osm = {};
var texas =...
4
votes
1
answer
2k
views
Openlayers: OGC Filter problem
I have a problem with OGC filter.
My layer in OpenLayers has this filter:
filter: new OpenLayers.Filter.Comparison({
type: OpenLayers.Filter.Comparison.BETWEEN,
property: ...
3
votes
1
answer
1k
views
SLD filter with embedded strTrim function in Geoserver
Using Geoserver 2.2.2 (GeoTools Version 8.4) on Windows 7, I'm trying to create a SLD that trims the leading and trailing spaces of a string property (using the strTrim function) and compares it to a ...
5
votes
2
answers
1k
views
OpenLayers.Filter.Comparison.LIKE doesn't filter special characters!
it seems like OpenLayers.Filter.Comparison.LIKE doesn't filter special characters!
for example,
filter = new OpenLayers.Filter.Comparison({
type: OpenLayers.Filter.Comparison.LIKE,
...
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 ...
2
votes
1
answer
755
views
How to filter or query data in GRASS?
I have a PostGIS dataset with just over 2 million rows. Each row has a PostGIS geometry point value and several attributes.
I'd like to do some analysis on certain subsets of the data, but I can't ...
3
votes
2
answers
2k
views
OpenLayers spatial filter polygon problem
I've got a dataset of English Counties (currently cut down for testing) that I'm serving from SQL 2008 using MapServer and OpenLayers. The features in my dataset are appearing in the right location on ...
7
votes
2
answers
1k
views
Using ArcGIS to filter cells where 7 or 8 of neighbors are different
I have land cover data that I would like to clean using some generalization tools. Majority filter does almost exactly what I want, but is missing one key option. Majority filter allows you to change ...
1
vote
1
answer
2k
views
Openlayers - Vector Layer - Combining hide/show features using style property
I am trying to filter vector layer features according to their attributes. I have 4 check boxes: type_1, type_2, shape_1 and shape_2 Note that I am using Extjs for interface.
at beginning I could ...
1
vote
1
answer
2k
views
OpenLayers / Mapserver WFS Filter: <gml:null>missing</gml:null>
I'm trying to filter features in OpenLayers when moving a JQueryUI slider. It works like this:
EDIT: full files available here on GitHub.
JQueryUI slider
When moving the slider cursor, minSelection ...
3
votes
3
answers
1k
views
How can I tell mapserver to ignore a filter that is set in a mapfile?
How can I tell mapserver to ignore a filter that is set in a mapfile?
I am displaying a wms layer with point features using mapserver. In one of the layers in my mapfile I have defined a filter ...
1
vote
3
answers
5k
views
How to show vector features in OpenLayers after hiding it?
I did change some vector features style (through check-boxes) using style property :
var features = layer.features;
for( var i = 0; i < features.length; i++ ) {
//features[i].style = { ...
2
votes
1
answer
169
views
spatial data filtering without GIS?
I have access to a database here (description of the columns are also available) containing spatial data in text format and with WGS84-EPSG:4326 coordinates.
I would like to only select data in my ...
0
votes
0
answers
3k
views
QGIS smooth raster DEM [duplicate]
Possible Duplicate:
Raster generalization - buffers in rasters, expand pixels?
I have a 1m LIDAR DEM which I'm manipulating in QGIS.
I'd like to smooth the DEM, such as by having each pixel ...
5
votes
1
answer
528
views
How to convert WFS request to GML?
I have the following:
var popProto = new OpenLayers.Protocol.WFS({
url: WFS_HOST,
version: "1.1.0",
featureType: layerName,
featureNS: namespace,
srsName: "EPSG:4326",
...
4
votes
1
answer
348
views
Given a known batch of mobile-obtained gps data with timestamps, what algorithms can be used to clean it?
I'm working on the backend for an iOS/Android app that collects locations every hour and syncs with the server every three hours. The mobile apps themselves are not under my control and so I can't ...
1
vote
1
answer
883
views
Implementing Rule using OpenLayers.Filter.Function
I'm trying to set up a Rule using the Function Filter.
But it does not work: the lines on that layer are just black. And more importantly, the filtering function is never executed.
What is the mistake ...
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:...
2
votes
1
answer
1k
views
GeoServer: Cross Layer Filtering vs Layer Groups
To pull features using WFS from several layers in one request, I have two options: One, create a layer group, and then get features from the layer group, as opposed to individual layers. Two, use ...
2
votes
1
answer
2k
views
Filtering a loaded kml file in OpenLayers
I'm trying to create an interactive search engine (for finding event tickets) of which one of its features is a visual map that shows related venues using OpenLayers. I have a plethora of venues (...
8
votes
1
answer
2k
views
PostGIS query vs QGIS filter
I have a PostGIS dataset with around 3 million shapes. I only need to view about 1,500 of these shapes at any given time, but the shapes I need to see depends on which feature is selected in a ...
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 ...
3
votes
1
answer
893
views
Filter Points Layer by Polygon Layer
I come from the Java world and go straight to C# and ArcGis 10 (I have to make a simple task for the university). So this means I don't really know much of C# but I can live with it and don't know ...
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 ...
2
votes
2
answers
2k
views
GeoMedia WebMap with WFS 1.1.0 Filter Examples?
I'm having problems forming a GET query for WebMap spatial data using WFS 1.1.0. My query looks like this:
http://USGVDCALIX2/WFS/Request.aspx?SERVICE=WFS&REQUEST=GetFeature&VERSION=1.1.0&...
3
votes
1
answer
536
views
combine two OCG filters in Openlayers : ERROR: invalid input syntax for integer
i need to combine two OCG filters. each one works fine separably but if i combine them using Filter.Logical.OR, the first one works only.
var c_filter = new OpenLayers.Filter.Logical({
type: ...
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 ...
2
votes
2
answers
342
views
Query/find features in ArcPad, hide the rest in map?
Trying to help out another department that does quarterly assessments of field data. Their symbology is all set by the status of the assessment (the only way I could figure out how to hide something ...
1
vote
2
answers
1k
views
How to use the SLD Filter "Difference"
I have a postgis table with polygon geometries.
I would like to create an sld which first does an inside buffer, and then a difference between the buffer and the original geometry.
This is basically ...
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 ...
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 ...
5
votes
2
answers
9k
views
OpenLayers: Combine multiple OGC filters
I have two OGC filters client side:
<ogc:Filter xmlns:ogc="http://www.opengis.net/ogc">
<ogc:PropertyIsEqualTo matchCase="true">
<ogc:PropertyName>code</ogc:...
4
votes
3
answers
4k
views
How to properly utilize DWITHIN Spatial Filter in OpenLayers
Given the following code:
var points = [];
points.push(new OpenLayers.Geometry.Point(-110, 38));
points.push(new OpenLayers.Geometry.Point(-108, 40));
var lineString = ...
3
votes
1
answer
1k
views
Case Insensitive WFS Attribute Search with ArcGIS Server?
I'm using ArcGIS 9.3.1 to host WMS and WFS services.
I have a map (.mxd file) with a layer whose attribute table includes fields with mixed-case string data. When I open this map in ArcMap and ...
9
votes
1
answer
4k
views
How to query some properties of a list of typenames in a GeoServer WFS
I want to query selected propertynames from a list of Typenames in a GeoServer service.
I could find an example from OGC WFS 1.1.0 Implementation Specification ( PDF document page 80 Example 10) ...
2
votes
1
answer
1k
views
Is there any way to perform spatial filter on multiple layers together?
I have a scenario where a featureclass[Child Version] is queried for some overlapping features on [SDE.DEFAULT] Version using ISpatialFilter, After getting few result, these features are looped and ...
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 ...
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 ...