[gdal-dev] OAPIF Unexpected Content-Type

Even Rouault even.rouault at spatialys.com
Wed May 31 17:09:20 PDT 2023


Denis,

You have to identify on which request this occurs

Run with CPL_DEBUG=ON CPL_CURL_VERBOSE=ON

This error is emitted when the server issues a response with a missing 
Content-Type header.

Le 01/06/2023 à 01:52, Denis Rykov a écrit :
> I'm getting "ERROR 1: Unexpected Content-Type: (null)" in the middle 
> of the ogrinfo output. What does this mean? I can adjust server 
> configuration but it is not clear which endpoint is failing because 
> apart from that message everything seems to be working fine.
>
> $ ogrinfo OAPIF:http://localhost:8080/api/resource/6750/oapif/ layer_6209
> INFO: Open of `OAPIF:http://localhost:8080/api/resource/6750/oapif/'
>       using driver `OAPIF' successful.
>
> Layer name: layer_6209
> Metadata:
>   TITLE=Test layer
> Geometry: Point
> ERROR 1: Unexpected Content-Type: (null)
> Feature Count: 26
> Extent: (0.000000, 0.000000) - (110.275300, 49.493019)
> Layer SRS WKT:
> GEOGCRS["WGS 84",
>     DATUM["World Geodetic System 1984",
>         ELLIPSOID["WGS 84",6378137,298.257223563,
>             LENGTHUNIT["metre",1]]],
>     PRIMEM["Greenwich",0,
>         ANGLEUNIT["degree",0.0174532925199433]],
>     CS[ellipsoidal,2],
>         AXIS["geodetic latitude (Lat)",north,
>             ORDER[1],
>             ANGLEUNIT["degree",0.0174532925199433]],
>         AXIS["geodetic longitude (Lon)",east,
>             ORDER[2],
>             ANGLEUNIT["degree",0.0174532925199433]],
>     ID["EPSG",4326]]
> Data axis to CRS axis mapping: 2,1
> num: Real (0.0)
> link: String (0.0)
> wikipedia: String (0.0)
>
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/gdal-dev

-- 
http://www.spatialys.com
My software is free, but my time generally not.



More information about the gdal-dev mailing list