0
votes
0answers
18 views

how to filter point features based on the filterted polygons with OpenLayers

I have one WFS polygon layer and one WFS point layer. The polygon layer has an attribute user_id. The web map has two requirements. Filter the polygons based on the attribute user_id. That is, a ...
0
votes
0answers
22 views

Only display polygons that contain points with OpenLayers using spatial filter

After getting some values from the server, I filter a layer made of points, then refresh it. After that, it only shows the point filtered. I also have a layer made of polygons. What I want to do, is ...
0
votes
1answer
45 views

Filter on a array of value in OpenLayers

I'm running into an issue. I have an array of value coming from a JSON POST. After retrieving these values and storing them into a var, I need to filter an OpenLayers layer with this values. I'm ...
1
vote
1answer
29 views

How to query data like only for point by from a grouplayer by using WMSGetFeatureInfo in Openlayers?

till now I have been known how to query data from a groupLayer by using WMSGetFeatureInfo while the point is it shows a lot of associate results features,so I aim to query a single layer infomation ...
0
votes
2answers
68 views

What is the bounding box of filtered features?

I'm using geoserver to store a number of gps tracks that are recorded during test drives with a number of vehicles. I have a layer defined that contains the following columns in the database: date ...
0
votes
0answers
115 views

How to use SLD to filter a WMS layer but without setting any styles?

I'm trying to filter (using OpenLayers) a WMS layer, served by MapServer. I've got this working by building the appropriate OpenLayers.Filter rule(s) with an empty Polygon symbolizer (so no specific ...
0
votes
1answer
246 views

Use new OpenLayers.Filter.Logical from OpenLayers into jQuery

I've a small GIS app, displaying stations on a map. Very simple. At start, none of the stations are displayed, even if its layer is enabled. What I want, when I click on a div, is to display one the ...
2
votes
1answer
102 views

OpenLayers.Format.SLD - Ignores 'matchCase'?

I've trying to use OpenLayers to construct an SLD element to include in a WMS layer's parameters. This SLD document can contain a number of filters. This works fine and resultant SLD does work to ...
0
votes
0answers
95 views

OpenLayers Mapserver spatial filter INTERSECTS format problems

Trying to get hand-drawn polygon delimiter for spatial query via OpenLayers to mapserver (then postgis). I can get the WKT of the drawn polygon and can substitute the dynamic values, but am having ...
0
votes
0answers
42 views

Change feature's image when it's not clustered

I'm clustering the features on the layer using AnimatedCluster this way: dataLayer = new OpenLayers.Layer.Vector("Data", { strategies: [ new ...
1
vote
2answers
182 views

Custom filters (server side) for Openlayers Vector Layer

I have a vector layer in openlayers with source in GEOJSON (custom php server, which I have in complete control) and BBOX strategy. Vector points contain point sources which have different ...
0
votes
1answer
133 views

How add vector style rule filter with different value in table

I have a simple wfs layer from geoserver, here is code: //wfs-t editable overlay var wfs_layer = new OpenLayers.Layer.Vector("Vector sample", { strategies: [new OpenLayers.Strategy.Fixed()], ...
0
votes
1answer
289 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 ...
3
votes
1answer
593 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
2answers
548 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, ...
3
votes
2answers
832 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 ...
1
vote
1answer
368 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
1answer
451 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 ...
1
vote
3answers
1k 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 = { ...
1
vote
1answer
464 views

Having difficult time to implement a 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. Can someone please ...
1
vote
2answers
1k 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"> ...
0
votes
1answer
373 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
1answer
603 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 ...
2
votes
1answer
363 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
3answers
3k 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 ...
3
votes
2answers
3k 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"> ...
4
votes
3answers
2k 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 = ...