[MapProxy] non-MIME supported format for WMS source

Oliver Tonnhofer tonnhofer at omniscale.de
Thu Jul 23 01:52:11 PDT 2015


Hi,

it looks like this is a WMS 1.0.0 service. You can set the version with wms_opts. See:
http://mapproxy.org/docs/nightly/sources.html#wms-opts

lidar_wms:
  wms_opts:
    version: 1.0.0
  req:
    url: http://ortho.gis.iastate.edu/server.cgi
    ...


Regards,
Oliver

-- 
Oliver Tonnhofer  | Omniscale GmbH & Co KG  | http://omniscale.com
OpenStreetMap WMS and tile services         | http://maps.omniscale.com




> On 23.07.2015, at 05:34, Pestereva, Anna <apestereva at aerialservicesinc.com> wrote:
> 
> Hello all,
> 
> I am trying to use a WMS source that only works when requested in 'JPG' format, not 'image/jpeg'. I am trying following in my configuration:
> 
>   lidar_wms:
>     type: wms
>     req:
>       url: http://ortho.gis.iastate.edu/server.cgi?wmtver=1.0
>       layers: lidar_hs
>       transparent: true
>     supported_srs: ['EPSG:26915']
>     supported_formats: ['JPG']
>     coverage:
>       bbox: [-96.8, 39, -90, 45.1]
>       bbox_srs: 'EPSG:4326'
> 
> globals:
>   image:
>     formats:
>       JPG:
>         format: image/jpeg
> 
> 
> However I am still receiving error response from the server - "Unsupported format image/jpg. Try JPG instead." So it looks like even when specifying custom format xxx, Mapproxy sends request as image/xxx. But this source will only accept exact 'JPG' requests.
> 
> What can I do to make it work?
> 
> Example of successful request:
> http://ortho.gis.iastate.edu/server.cgi?wmtver=1.0&SERVICE=WMS&REQUEST=GetMap&VERSION=1.1.1&LAYERS=lidar_hs&FORMAT=JPG&HEIGHT=256&WIDTH=256&SRS=EPSG%3A26915&BBOX=524288,4587520,655360,4718592
> 
> Thank you!
> 
> -- 
> Anna Pestereva | Application Developer & Cartographer
> Aerial Services, Inc. (ASI) 
> Office: (319) 277-0436 | Fax: (866) 800-4799
> 6315 Chancellor Drive | Cedar Falls, Iowa 50613 
> APestereva at AerialServicesInc.com | LinkedIn
> www.AerialServicesInc.com | Photo{blog}metry
> _______________________________________________
> MapProxy mailing list
> MapProxy at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapproxy



More information about the MapProxy mailing list