Questions tagged [getfeatureinfo]

A WMS (Web Map Service) request that retrieves data, for a pixel location on a map.

Filter by
Sorted by
Tagged with
9
votes
5answers
16k views

How to select fields returned by GeoServer WMS GetFeatureInfo request?

I'm running simple local mapping service based on PostGIS/GeoServer/OpenLayers stack. Following opengeo tutorial I've tied click events in OpenLayers to WMS GetFeatureInfo call using: map.events....
8
votes
2answers
1k views

Capture click while drawing a LineString in openlayers and query GeoServer WMS

While drawing a LineString in OpenLayers version 4.6.5, I would like to hook into the clicking of each point, and make an ajax call to a backend WMS service (geoserver). If a Feature on the Tile ...
7
votes
3answers
18k views

How to make geoserver return JSON for WMS GetFeatureInfo?

I wish to get the results of a WMS GetFeatureInfo request as a JSON instead of the table that comes up by default. Out of the box, the only options for the response from a WMS GetFeatureInfo are the ...
7
votes
4answers
7k views

WMS GetFeatureInfo and CQL on Multiple Layers

I am having issues with querying CQL filtered layers with OpenLayers and GeoServer, using the GetFeatureInfo control. It is ignoring the CQL filter and just querying the entire layer (as evidenced by ...
7
votes
2answers
5k views

Displaying feature info in a popup

I was able to "combine my shapefile and CSV data have made a lot of progress on my project. Now I want to display the attribute data in a popup when I either click or hover over a country... I've ...
7
votes
2answers
1k views

GetFeatureInfo for more than one layer using OpenLayers 3?

I am trying to work out how to get the feature information onclick for more than one layer, apart from variable etc my code is very simmilar to the openlayers example (http://openlayers.org/en/latest/...
6
votes
1answer
4k views

How to select multiple Features from multiple Layers in OpenLayers?

Is there a way to select multiple features from multiple vector layers by using clickTolerance in click? I checked the documents of getFeature control and selectFeature control, seems not work in ...
5
votes
2answers
9k views

OpenLayers custom request for WMS GetFeatureInfo

In OpenLayers, there is a WMSGetFeatureInfo control that can be attached to a layer and listen to click or hover events on the map, requesting info on the feature being currently clicked (or pointed) ...
5
votes
2answers
4k views

Use GetFeatureInfo with OpenLayers and a Bounding Polygon

I want to be able to draw a bounding polygon and have my MapServer WMS layer return every feature within that bounding box. I have it working for a single point, but I would like for the query to ...
5
votes
1answer
581 views

Does WMS GetFeatureInfo takes into account the applied Style (SLD)?

As the title says, does WMS GetFeatureInfo takes into account the applied style to a layer? For example I have layer of all US States and I applied the following SLD: <PropertyIsEqualTo> <...
5
votes
1answer
480 views

WMS GetFeatureInfo Request

I am attempting to teach myself how to make a basic GetFeatureInfo request on a WMS (specifically from Geomet, GetCapabilities here). The following returns 400 Bad Request, and I'm not sure if it is a ...
5
votes
3answers
10k views

How to add a WMS layer from GeoServer with OpenLayers?

After doing some basic OpenLayers examples where I used WMS layers from WMS providers like this: http://maps.opengeo.org/geowebcache/service/wms, I wanted then to add a WMS layer from my GeoServer. I ...
5
votes
1answer
421 views

Change data source encoding of GetFeatureInfo response for a WMS in QGIS

How do I change the data source encoding of the GetFeatureInfo Request of a WMS-Layer in QGIS 2.18.x/3.x? I can't find any setting to handle the encoding. I need UTF-8 encoding for special characters ...
5
votes
0answers
495 views

Creating SqlView Layer with GeoServer Manager?

I would like to register a new SQL view layer to GeoServer through the REST API, I am using geoserver-manager. The registration is OK, the layer is working fine, except the WMS GetFeatureInfo, which ...
4
votes
2answers
937 views

How to view URL of GetFeatureInfo request in QGIS?

I have a WMS layer in QGIS. I am using the Identify Features tool to perform a GetFeatureInfo request. It retrieves the expected attribute data in the Identify Results panel. However I would like to ...
4
votes
1answer
5k views

Querying multiple WMS layers in OL3 and adding to a single popup window

I've created a simple mapping application that shows a number of WMS layers (from GeoServer/Oracle) on a map, with check-boxes to turn them on and off. The layer list is generated dynamically from a ...
4
votes
3answers
1k views

GeoServer cascading WMS, FeatureInfo is lost

I'm trying to cascade a WMS service in GeoServer (http://grb.agiv.be/geodiensten/raadpleegdiensten/GRB/wms?REQUEST=GetCapabilities&SERVICE=WMS). I can view the cascaded layers just fine, but ...
4
votes
1answer
175 views

Click event returning wrong Y container point in Leaflet?

I am using QGIS Server and Leaflet to display geotiffs on my website. I have created an onMapClick function which uses a GetFeatureInfo request to QGIS Server which returns the value of the geotiff in ...
4
votes
1answer
540 views

Can ArcGIS Server 10.1 GetFeatureInfo return the geometry?

Using GeoServer I can make a WMS GetFeatureInfo request using the application/vnd.ogc.gml info_format and it returns the full GML of the feature, including the geometry. This is really useful as I ...
4
votes
1answer
641 views

OpenlaRemoving FID field with WMSGetFeatureInfo function using OpenLayers?

I'm using the WMSGetFeatureInfo control of Openlayers in order to have a pupop in the map with the WMS layer info. Automatically Openlayers inserts a FID field at the beginning of the popup. Is there ...
4
votes
1answer
2k views

GeoServer GetFeatureInfo Template

I have for now just used the standard Get Feature Template in the documentation. The first example should make all the returned data format into bullets instead of little tables. For some reason my ...
4
votes
1answer
439 views

GeoServer GetFeatureInfo with time range

I've been building a WMS service for time series data following this tutorial: http://docs.geoserver.org/latest/en/user/tutorials/imagemosaic_timeseries/imagemosaic_timeseries.html Everything is ...
3
votes
2answers
3k views

Using JSONP with Leaflet and GetFeatureInfo request

Is it possible to use JSONP with the GetFeatureInfo request? I'm using a GetFeatureInfo function in Leaflet that works fine with JSON data but I'm really struggling to replicate this with JSONP and ...
3
votes
1answer
923 views

Why doesn't Leaflet have cross-origin error when adding WMS layer from GeoServer, but GetFeatureInfo using ajax does

I am learning web mapping with Leaflet. I added a WMS layer and now I'm trying to get feature details using ajax to send getFeatureInfo request. I'm not finished yet, and right now I just want to log ...
3
votes
2answers
45 views

Prevent WMS GetFeatureInfo returning geometry in MapServer 6.4

When I send a GetFeatureInfo request to my Mapserver 6.4 WMS, the response contains the geometry. I want to disable this, as it is far too large in size. However, I am serving the same data as a WFS ...
3
votes
1answer
935 views

GetFeatureInfo returns "no layers queryable" [closed]

I'm not able to get information with "GetFeatureInfo" request. I'm getting following reply: "Either no layer was queryable, or no layers were specified using QUERY_LAYERS" I made sure that my WMS (...
3
votes
3answers
5k views

OpenLayers GetFeatureInfo for GeoServer Layer Groups

I've created a GeoServer layer group. I'm using OpenLayers.Layer.WMS to retrieve the layer group, and this works fine. In addition, I'd like to pull feature info for the layer. For this, I'm using ...
3
votes
2answers
7k views

Use OpenLayers WMSGetFeatureInfo on Mapserver Layer?

I'm able to use OpenLayers' OpenLayers.Layer.Mapserver declaration to generate a raster from GRIB data. I've read in the MapServer docs and on forums that it should be possible to get point ...
3
votes
2answers
4k views

Getting FeatureCollection id in Google Earth Engine

How can I get the 'id' field shown when I print a FeatureCollection in Google Earth Engine? I tried get('id') or get('system:index') but it didn't work (returns null).
3
votes
2answers
2k views

Is it possible to do a GetFeatureInfo request using WMTS?

I currently have an interactive map with multiple layers based on the WMS protocol, which has been working fairly well. I use GeoServer to serve the layers and OpenLayers for the front-end. My problem ...
3
votes
1answer
135 views

Replace a character in the GetFeatureInfo response

I'm having a lot of floating point raster datasets in GeoServer. GeoServer automatically uses a dot (.) to separate the decimals of a value. Is it possible to change this into a comma (,)? Either ...
3
votes
2answers
5k views

How to get GetFeatureInfoUrl from multiple layers in OpenLayers 3

I have multiple layers in a map with layer group now onclick I want to get the GetFeatureInfoUrl for the different layers on which I am clicking but the problem is that I am getting only the Info for ...
3
votes
2answers
866 views

edit openlayers feature attribute and save in geoserver

I have a layer in geoserver and I want to get this layer with WMS in OpenLayers. population = new OpenLayers.Layer.WMS("population", "http://localhost:8080/geoserver/world/wms", {'layers': '...
3
votes
3answers
1k views

Disable Leaflet WMS getFeatureInfo popup while using the Measure tool

I have a simple Leaflet map to which I've added two functionalities: measure tool using leaflet.measure plugin; WMS getFeatureInfo popup using the L.TileLayer.BetterWMS plugin; The default map ...
3
votes
2answers
3k views

Lat/long values in a WMS GetFeatureInfo request

I have tried to send manual WMS GetFeatureInfo request to GeoServer with the parameter values X and Y (pixel values) taken from the map object of OpenLayers. I have got the response with the wrong ...
3
votes
2answers
3k views

WMS GetFeatureInfo and Google maps api V3

Is there a way to request GetFeatureInfo from a WMS service with the Google maps api v3?
3
votes
1answer
36 views

If there are many overlapping polygons at the location of GetFeatureInfo, how can I populate a template with information about all of them?

I have a layer with water basins, actually subbasins. Some of these subbasins (polygons) contain smaller subbasins. If I click on a smaller subbasin, a GetFeatureInfo request is sent to mapserver, and ...
3
votes
1answer
3k views

QGIS - How to display item info on popup with a click

I have many items on different shapefile (parks, railways, buses...). Every shape as a join with an attribute table and each table contains data by line. How can I generate a pop-up by clicking on ...
3
votes
1answer
2k views

OpenLayers - URL hyperlink in GetFeatureInfo table?

I am serving numerous WMS layers through GeoServer, many of which have URLs leading to extended data for any particular feature embedded in their attribute table. The URL, if present, is always ...
3
votes
2answers
756 views

WMS: point "pointer" symbol with offset - getFeatureInfo search area slight mismatch

I'd like to ask what ways there might be to adjust a point's getFeatureInfo search area so that it matches a "pointer" (i.e slightly offset) symbol. We are running GeoServer 2.2.0 (part of an Opengeo ...
3
votes
2answers
516 views

Making WMS GetFeatureInfo request gives Invalidpoint response?

When I make a GetFeatureInfo request to a WMS service, I get an invalid point response. I wonder what is missing from my request. My Layer definition : var Parcels = new TileLayer({ name: '...
3
votes
1answer
1k views

GetFeatureInfo is not working with GeoServer point line sources

I'm not able to get information with a GetFeatureInfo request when clicking on point and line layers. For polygons it works fine. I'm using the code below to execute the WMS service: google.maps....
3
votes
2answers
3k views

How to select multiple polygons or points from WFS or WMS and getFeatureInfo

Is there a way to select multiple polygons and/or points from a WFS or WMS service and then get the feature information for each selected item? There are numerous examples on the OpenLayers website ...
3
votes
0answers
107 views

GetFeatureInfo of a specific GeoServer layer by selecting it from a set of GeoServer layergroup

I have multiple Geoserver layers, suppose 2 here (Rainfall and Maximum Temperature) and I want to extract the feature of that layer which I check/switch in the sidebar, But for now I just get the ...
3
votes
0answers
745 views

WMSGetFeatureInfo : No feature found on click

My map displays well my WMS layers. When i try to get the feature info, the debugger tells me no feature is found features: Array[0] , length :0 I don't know if it is because of a projection issue: ...
3
votes
0answers
480 views

Format tilelayer.wms URL properties such that I add an overlay iteratively to my base map in Leaflet

My base map was created using hard-coded template variables. I am using the leaflet tilelayer.wms constructor and including the URL like so: url: "http://localhost:8080/geoserver/sf/wmsservice=WMS&...
2
votes
2answers
701 views

Enable WMS GetFeatureInfo request in Leaflet using R?

I've been using R with Leaflet and Shiny to produce a web map that is accessible to the public online. It is a real-time air temperature map of Tasmania, Australia based on current Bureau or ...
2
votes
2answers
2k views

Openlayers 3 getGetFeatureInfoUrl geoserver problem

I try to use Openlayers 3 DragBox for BoxSelection ang get selected feature info from wms source. Layer projection EPSG:4326 var host = 'http://x.x.x.x/geoserver/wms' var view = new ol.View({ ...
2
votes
1answer
1k views

How does GetFeatureInfo work on a WMS?

What I know is that WMS is a tiled image of the layer, so my question is how does it get the attributes of the layer for queries and info-windows as long as it's an image? and why can't we edit them ...
2
votes
2answers
7k views

WMS GetFeatureInfo and Leaflet

I've got an application running www.carstenhogertz.de/c_section. It has a popup function showing the underlying point attribute. This function shows a strange behaviour on lower zoom levels. For ...

1
2 3 4 5 6