8 votes
Accepted

How to view URL of GetFeatureInfo request in QGIS?

Simple Right click your feature in your "Identify Results" right pane and select "Copy GetFeatureInfo requests URL": Advanced You can also go with PyQGIS. For example, with a single layer loaded ...
user avatar
  • 6,698
6 votes
Accepted

Query WMS GetFeatureInfo with known latitude and longitude

It is simple but you must fool a bit. Feed in your lat/lon or lon/lat depending on your WMS version. Use the point as lower-left corner of BBOX and add some little number for getting the upper-right ...
user avatar
  • 51.5k
6 votes

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

Because that is the way CORS works! loading images is always (mostly) a safe operation so the browser doesn't care where you get them from. Loading a script (javascript or xml) is potentially ...
user avatar
  • 74.6k
5 votes

How send Geoserver WMS GetFeatureInfo query to an area

You can only use a x,y (i,j) coordinate search for GetFeatureInfo requests http://docs.geoserver.org/stable/en/user/services/wms/reference.html#getfeatureinfo However, you may test for interactions ...
user avatar
  • 1,628
5 votes
Accepted

OpenLayers 3 WMS GetFeatureInfo popup

I used to following tutorial to figure out how to get popups on WMS and WFS layers. Maybe it will be useful to you. Here is some of the relevant code map.on('click', function(evt) { // Hide existing ...
user avatar
5 votes

Using JSONP with Leaflet and GetFeatureInfo request

This is how I do it for a GeoServer WMS endpoint: var parameters = { service: 'WMS', version: '1.1.1', request: 'GetFeatureInfo', layers: currentLayer, query_layers: currentLayer, ...
user avatar
5 votes
Accepted

How does GetFeatureInfo work on a WMS?

What I know is that WMS is a tiled image of the layer What you know isn't quite correct, a WMS provides images on request based on some data source. The data source can be either a raster data set, ...
user avatar
  • 11.8k
5 votes

Is it possible to do a GetFeatureInfo request using WMTS?

Is it possible to do a GetFeatureInfo request using WMTS? It depends on what is supported by your service implementation, but in theory it is possible, by which I mean the OpenGIS® Web Map Tile ...
user avatar
  • 11.8k
5 votes

GetFeatureInfo returns "no layers queryable"

As is explained in the documentation getFeatureInfo requests are only supported if the remote server supports application/vnd.ogc.gml as the info format. WMS GetFeatureInfo requests will be passed ...
user avatar
  • 74.6k
5 votes

How to view URL of GetFeatureInfo request in QGIS?

A nice way to see all remote requests such as GetFeatureInfo is to use the "QGIS Network Logger" plugin: https://plugins.qgis.org/plugins/qgisnetworklogger/ which is available since QGIS 3.6 You can ...
user avatar
5 votes
Accepted

How to define propertynames for GetFeatureInfo

You can by using the GeoJSON featureinfo templates (recent addition mind, should be available in 2.20.x, not sure about 2.19.x): https://docs.geoserver.org/latest/en/user/tutorials/GetFeatureInfo/...
user avatar
  • 15.5k
4 votes

Leaflet WMS GetFeatureInfo gives result only on zoom level 10

Solved this by using calculated X & Y instead of using generated from leaflet provided function layerPointToContainerPoint Giving Wrong X & Y var X =map.layerPointToContainerPoint(e....
user avatar
4 votes

Openlayers3 WMS GetFeatureInfo request only returns info for one feature

You need to specify WMS params in getGetFeatureInfoUrl() function. In your case, try to ask for more features by adding the param FEATURE_COUNT after INFO_FORMAT. For instance: var url = ...
user avatar
  • 316
4 votes
Accepted

GetFeatureInfo in WMS using a box?

The X and Y coordinates in the GetFeatureInfo query mean the pixel coordinates of the image that is created with the GetMap parameters which are included in the request. You can't change the BBOX ...
user avatar
  • 51.5k
4 votes
Accepted

WMS GetFeatureInfo and Leaflet

The problem is that your map is in EPSG:3857 and your getFeatureInfo request is in EPSG:4326. This will work in the sense that no error is thrown because the WMS is stateless and has no idea that the ...
user avatar
  • 74.6k
4 votes
Accepted

Popups in Leaflet through Geoserver wms active layers only

Create a variable that consists of geoserver layer names for layers that are currently drawn on the map, then pass the variable into the URL string. To do this its really beneficial to organize your ...
user avatar
4 votes
Accepted

GeoServer GetFeatureInfo - how to get only one result per layer

Yes, you have to generate one request per layer with FEATURE_COUNT=1 in each.
user avatar
  • 15.5k
4 votes
Accepted

Replace a character in the GetFeatureInfo response

The formatting of a GetFeatureInfo response is controlled by a FreeMarker template rather than GeoServer directly. The FreeMarker documentation suggests that number formats are determined by the ...
user avatar
  • 74.6k
4 votes
Accepted

Width and Height of GetFeatureInfoUrl request with Openlayers 4.x and Geoserver

Width and Height in a GetFeatureInfo request relate to the width and height of the Map (product of a GetMap request) to which you are supplying your I/J pixel coordinate. This has nothing to do with ...
user avatar
  • 11.8k
4 votes

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

Doesn't seem that OpenLayers provide any event to handle the clicks while drawing, but it can be done. The map 'click' event recives all the clicks made on the map, so the problem is to distinguish ...
user avatar
4 votes
Accepted

Getting FeatureCollection id in Google Earth Engine

Even though "id" is listed, it's actually "system:id" internally // import points as FC var myPoints = ee.FeatureCollection("users/me/important/myFC"); // ...
user avatar
4 votes
Accepted

GetFeatureInfo on mouse hover on feature in OpenLayers 3

You could simply reuse your click code and change it pointermove/hover, although I presume you only want the popup visible when over a feature, so there's an else clause to hide it. var ...
user avatar
  • 9,693
4 votes
Accepted

Enable WMS GetFeatureInfo request in Leaflet using R?

It is now possible to get the GetFeatureInfo feature out-of-the-box with the leaflet.extras2 package by calling the leaflet.extras2::addWMS() function. See here below an example from the package ...
user avatar
  • 56
4 votes
Accepted

Show all data of the WMS GeoServer layer on single click at web page using OpenLayers 6 WMS GetFeatureInfo (Tile Layer)

A GetFeatureInfo request will return only one feature unless you specify FEATURE_COUNT as a parameter. For example to allow a maximum of 10 features use var url = indialayersource....
user avatar
  • 9,693
3 votes

edit openlayers feature attribute and save in geoserver

You can't edit the content of a WMS using OpenLayers. A WMS provides access to a data set (could be vector or raster data) as an image (through the GetMap request), and provides access to attribute ...
user avatar
  • 11.8k
3 votes
Accepted

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

Build a list of the selected layers and send one combined GetFeatureInfo request. Here are two examples which worked at least a minute ago: http://demo.opengeo.org/geoserver/wms?BBOX=44....
user avatar
  • 51.5k
3 votes

scripting getfeatureinfo for multiple wms layers

You can switch to response format JSON and iterate through the response-features: info = new OpenLayers.Control.WMSGetFeatureInfo({ url: 'http://demo.opengeo.org/geoserver/wms', ...
user avatar
  • 6,330
3 votes

Date format in GeoServer WMS requests strange

Start your Goserver with this Java option: -Dorg.geotools.localDateTimeHandling=true It will tell Geotools to not modify date objects (http://docs.geotools.org/latest/javadocs/org/geotools/factory/...
user avatar
3 votes

Get all overlapping feature information using WMS GetFeatureInfo, OL3, Geoserver

you need to parse the response getted back to grap all the features. consider the following code snip: map.on('singleclick', function(evt) { var url = wms_layer.getSource().getGetFeatureInfoUrl(...
user avatar
  • 3,488
3 votes
Accepted

WMS GetFeatureInfo Request

It appears as though the INFO_FORMAT parameter was also required. The following works: Request: http://geo.weather.gc.ca/geomet/?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetFeatureInfo&LAYERS=...
user avatar
  • 4,613

Only top scored, non community-wiki answers of a minimum length are eligible