GetFeatureInfoWMS (POST) (INCOMPLETE)
DESCRIPTION MISSING
Parameters
Name | Type | Description | Required (WMS)? | Required (WFS)? |
---|---|---|---|---|
layerIds | String | Comma separated layer ids | **true** | **true** |
projection | String | Projection code | **true** | **true** |
x | Integer | **true** | false | |
y | Integer | **true** | false | |
lon | Float | Longitude | false | **true** |
lat | Float | Latitude | false | **true** |
width | Integer | false | **true** | |
height | Integer | false | **true** | |
bbox | String | Comma separated coordinates | **true** | false |
zoom | Integer | **true** | false |
Response
Success
For a myplaces layer:
{
"layerCount": "<total number of layers>",
"data": [
// An object for each layer
{
"presentationType": "<eg. JSON>",
"type": "<layer type>",
"layerId": "<id of the layer>",
"content": {
"parsed": {
"layer": "<layer name>",
"places": [
// An object for each place
{
"description": "<text>",
"link": "<optional>",
"name": "<text>"
}
],
"publisher": "<optional>"
}
},
}
]
}
Error
What's the HTTP status code and does it have an error message or does it return null?
{
"error" : "here"
}
Examples
Example query for Paikkatietoikkuna
http://www.paikkatietoikkuna.fi/web/fi/kartta?p_p_id=Portti2Map_WAR_portti2mapportlet&p_p_lifecycle=2&action_route=GetFeatureInfoWMS
With POST params:
"layerIds": "myplaces_6066",
"projection": "EPSG:3067",
"x": 785,
"y": 313,
"lon": 381630.02310593,
"lat": 6672749.2979804,
"width": 1608,
"height": 603,
"bbox": "373780.023106,6669849.29798,389860.023106,6675879.29798",
"zoom": 7,
"srs": "EPSG:3067"
Response:
{
"layerCount":1,
"data":[
{
"content":{
"parsed":{
"layer":"Oma karttataso",
"places":[
{
"description":"bar",
"link":"",
"name":"foo"
}
],
"publisher":""
}
},
"presentationType":"JSON",
"type":"wmslayer",
"layerId":"myplaces_6066"
}
]
}
TODO
- This is overloaded action route - instead of fetching WMS (as name suggests) it fetches also old WFS and MyPlaces info.
- this seems to have dublicate sets of parameters(?)
- x,y,width, height vs. lon, lat, bbox
Last modified: Tue Sep 17 2024 12:23:36 GMT+0300 (Eastern European Summer Time)