Kadastrale Kaart WMS 1.1.1 GetFeatureInfo JSON geeft MapServer foutmelding

Vergelijkbaar probleem als in dit topic: Kadastrale kaart WMS v5 geeft invalide JSON

Als je een GetFeautureInfo request doet met WMS versie 1.1.1, krijg je deze fout nog steeds. WMS 1.3.0 werkt wel.

Dit geldt voor de lagen Perceel en Kadastralekaart.

Requests:
https://service.pdok.nl/kadaster/kadastralekaart/wms/v5_0?QUERY_LAYERS=Perceel&INFO_FORMAT=application%2Fjson&REQUEST=GetFeatureInfo&SERVICE=WMS&VERSION=1.1.1&FORMAT=image%2Fpng&STYLES=&TRANSPARENT=true&LAYERS=Perceel&DPI=180&MAP_RESOLUTION=180&FEATURE_COUNT=100&X=50&Y=50&WIDTH=101&HEIGHT=101&SRS=EPSG%3A28992&BBOX=194307.31239815266%2C469438.4162039255%2C194326.4704552432%2C469457.574261016
https://service.pdok.nl/kadaster/kadastralekaart/wms/v5_0?QUERY_LAYERS=Kadastralekaart&INFO_FORMAT=application%2Fjson&REQUEST=GetFeatureInfo&SERVICE=WMS&VERSION=1.1.1&FORMAT=image%2Fpng&STYLES=&TRANSPARENT=true&LAYERS=Kadastralekaart&DPI=180&MAP_RESOLUTION=180&FEATURE_COUNT=100&X=50&Y=50&WIDTH=101&HEIGHT=101&SRS=EPSG%3A28992&BBOX=194307.31239815266%2C469438.4162039255%2C194326.4704552432%2C469457.574261016

Antwoord:

{
"type": "FeatureCollection",
"name": "Perceelvlak",
"crs": { "type": "name", "properties": { "name": "urn:ogc:def:crs:EPSG::28992" } },
"features": [
{ "type": "Feature", "id": "perceel.150eba51-2df1-4cb8-b4c5-92f993204296", "properties": { "identificatieNamespace": "NL.IMKAD.KadastraalObject", "identificatieLokaalID": "76340983370000", "beginGeldigheid": "2022-09-30T11:06:25Z", "tijdstipRegistratie": "2022-09-30T11:06:25Z", "volgnummer": "0", "statusHistorieCode": "G", "statusHistorieWaarde": "Geldig", "kadastraleGemeenteCode": "50", "kadastraleGemeenteWaarde": "Apeldoorn", "sectie": "U", "AKRKadastraleGemeenteCodeCode": "90", "AKRKadastraleGemeenteCodeWaarde": "APD01", "kadastraleGrootteWaarde": "905.0", "soortGrootteCode": "1", "soortGrootteWaarde": "Vastgesteld", "perceelnummer": "9833", "perceelnummerRotatie": "0.0", "perceelnummerVerschuivingDeltaX": "0.0", "perceelnummerVerschuivingDeltaY": "0.0", "perceelnummerPlaatscoordinaatX": "194310.313", "perceelnummerPlaatscoordinaatY": "469460.076" }, "bbox": [ 194290.41, 469436.395000000018626, 194331.23499999998603, 469484.244 ], "geometry": { "type": "Polygon", "coordinates": [ [ [ 194321.601, 469465.106000000028871 ], [ 194320.878999999986263, 469466.065 ], [ 194321.954, 469466.87300000002142 ], [ 194315.826, 469474.958999999973457 ], [ 194313.337999999988824, 469478.242000000027474 ], [ 194308.79, 469484.244 ], [ 194300.217, 469477.815 ], [ 194294.932, 469473.851000000024214 ], [ 194293.276000000012573, 469472.609 ], [ 194290.424, 469470.46999999997206 ], [ 194290.87400000001071, 469469.87 ], [ 194290.41, 469469.522 ], [ 194292.456, 469466.794 ], [ 194292.920000000012806, 469467.142 ], [ 194294.162000000011176, 469465.48599999997532 ], [ 194293.698, 469465.137999999977183 ], [ 194294.549999999988358, 469464.00199999997858 ], [ 194295.014, 469464.349999999976717 ], [ 194299.788, 469457.98499999998603 ], [ 194304.878, 469451.199000000022352 ], [ 194310.241, 469444.049 ], [ 194315.324, 469437.272 ], [ 194315.981999999989057, 469436.395000000018626 ], [ 194331.23499999998603, 469447.827999999979511 ], [ 194329.25099999998929, 469450.465000000025611 ], [ 194324.965999999985797, 469456.158999999985099 ], [ 194320.024, 469462.727000000013504 ], [ 194319.451, 469463.489 ], [ 194321.601, 469465.106000000028871 ] ] ] } }
],
"bbox": [ 194290.41, 469436.395, 194331.235, 469484.244 ]
}
Content-Type: application/vnd.ogc.se_xml; charset=UTF-8

<?xml version='1.0' encoding="UTF-8" standalone="no" ?>
<!DOCTYPE ServiceExceptionReport SYSTEM "http://schemas.opengis.net/wms/1.1.1/exception_1_1_1.dtd">
<ServiceExceptionReport version="1.1.1">
<ServiceException>
msOGRWriteFromQuery(): General error message. OGR OGR_DS_CreateLayer failed for layer &#39;Label&#39; with driver &#39;GEOJSON&#39;.
</ServiceException>
</ServiceExceptionReport>

Dank voor de vraag. Allereerst wil ik je aanraden om WMS versie 1.3.0 te gebruiken. We komen nog terug op het feit dat version 1.1.1 niet werkt.

1 like