Hallo,
ik doe een call naar pdok
ik krijg een 200 OK
ik verwacht een valide json
maar er zit een xml foutmelding in de json
daardoor kan ik de json niet parsen
bijbehorend response:
{
"type": "FeatureCollection",
"name": "Bebouwingvlak",
"crs": { "type": "name", "properties": { "name": "urn:ogc:def:crs:EPSG::28992" } },
"features": [
{ "type": "Feature", "id": "pand.6ee02415-ca3a-45e4-bc17-b0849d0e33a0", "properties": { "objectBeginTijd": "2017-04-12", "LV-publicatiedatum": "2017-05-12T15:29:23Z", "relatieveHoogteligging": "0", "inOnderzoek": "false", "tijdstipRegistratie": "2017-05-12T11:26:12Z", "identificatieNamespace": "NL.IMGeo", "identificatieLokaalID": "G0193.e161b5b1f42e4248bbd8e0d0c48862b0", "bronhouder": "G0193", "bgt-status": "bestaand", "plus-status": "geenWaarde", "identificatieBAGPND": "0193100000070502" }, "bbox": [ 199167.961, 506403.282, 199175.838, 506414.002 ], "geometry": { "type": "Polygon", "coordinates": [ [ [ 199173.237, 506414.002 ], [ 199167.961, 506412.509 ], [ 199170.573, 506403.282 ], [ 199173.576, 506404.141 ], [ 199175.838, 506404.815 ], [ 199173.237, 506414.002 ] ] ] } }
],
"bbox": [ 199167.961, 506403.282, 199175.838, 506414.002 ]
}
Content-Type: text/xml; charset=UTF-8
<?xml version='1.0' encoding="UTF-8" standalone="no" ?>
<ServiceExceptionReport version="1.3.0" xmlns="http://www.opengis.net/ogc" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opengis.net/ogc http://schemas.opengis.net/wms/1.3.0/exceptions_1_3_0.xsd">
<ServiceException>
msOGRWriteFromQuery(): General error message. OGR OGR_DS_CreateLayer failed for layer 'Perceelvlak' with driver 'GEOJSON'.
</ServiceException>
</ServiceExceptionReport>