[mapserver-users] Tiled PNG doesn't work for WCS (and WMS)
Milo van der Linden
mlinden at zeelandnet.nl
Tue Oct 20 03:34:17 PDT 2009
Steven,
- tiled png should not be a problem, I use that often.
- It would be good to also set "wms_extent" in your layer defs
- I think that setting the wcs_srs to multiple srs-es at the Layer Level
is not how it should be done. Use a single srs there that corresponds to
the wcs_extent or I guess you will have issues. Set the multiple srs-es
at the wcs_srs and wms_srs on the *MAP* level
Good luck! And send my regards to Mvexel ;-)
Steven M. Ottens schreef:
> Hi all,
>
> I'm trying to setup a WCS with a series of PNGs with world files. I've
> indexed them with gdaltindex.
> When I do a WCS getCoverage or a WMS getMap request I get a white
> image. However when I configure mapserver to use only one tile as
> datasource I get an image (black and white in WCS, color in WMS).
>
> Working singletile datasource WMS: http://bit.ly/smpyA
> Working singletile datasource WCS: http://bit.ly/1hXghB
> not working tiled datasource WMS: http://bit.ly/2k5J11
>
> I'm running Mapserver 5.0.2 on windows
>
> I've tried to convert the PNGs to geotiff, but that didn't matter.
> I've tried using Geoserver and there it does work, so the data appears
> to be correct.
>
> Does mapserver support tiled PNGs?
> Does it support it for WCS?
>
> Regards,
> Steven
>
> The configuration for the two layers::
> single tiledatasource:
> LAYER
> NAME vec200tile
> METADATA
> "wcs_label" "Swiss Topo Vec200 rendering for Tripod"
> ### required
> "wcs_rangeset_name" "Vector200Range" ### required
> to support DescribeCoverage request
> "wcs_rangeset_label" "Vec200" ### required to
> support DescribeCoverage request
> "wcs_extent" "463179.500000 44100.500000
> 853179.500000 324100.500000" ### required for tiled datasets [MVEXEL]
> "wcs_res" "1 1" ### from gdalinfo,
> undocumented metadata element
> "wcs_size" "10000 10000" ### from
> gdalinfo, undocumented metadata element
> "wcs_srs" "EPSG:21781 EPSG:3035"
> END
> EXTENT 463179.500000 44100.500000 853179.500000 324100.500000
>
> TEMPLATE "blank.html"
> TYPE RASTER
> UNITS METERS
> STATUS ON
> data "RT_Vec200_1500/1.0/vec200_1500_0_108.png"
> PROJECTION
> "init=epsg:21781"
> END
> DUMP TRUE ### required
> END
>
> tiled datasource:
>
> LAYER
> NAME vec200
> METADATA
> "wcs_label" "Swiss Topo Vec200 rendering for Tripod"
> ### required
> "wcs_rangeset_name" "Vector200Range" ### required
> to support DescribeCoverage request
> "wcs_rangeset_label" "Vec200" ### required to
> support DescribeCoverage request
> "wcs_extent" "463179.500000 44100.500000
> 853179.500000 324100.500000" ### required for tiled datasets [MVEXEL]
> "wcs_res" "1 1" ### from gdalinfo,
> undocumented metadata element
> "wcs_size" "10000 10000" ### from
> gdalinfo, undocumented metadata element
> "wcs_srs" "EPSG:27181 EPSG:3035"
> END
> EXTENT 463179.500000 44100.500000 853179.500000 324100.500000
>
> TEMPLATE "blank.html"
> TYPE RASTER
> UNITS METERS
> STATUS ON
> TILEINDEX RT_Vec200_1500/1.0/sh1.0.shp
> TILEITEM "filename"
>
> PROJECTION
> "init=epsg:21781"
> END
> DUMP TRUE ### required
> END
>
More information about the MapServer-users
mailing list