[mapserver-users] Tiled PNG doesn't work for WCS (and WMS)
Steve Lime
Steve.Lime at dnr.state.mn.us
Tue Oct 20 08:00:56 PDT 2009
Be interested to hear if the soon-to-be released MapServer 5.6 fares any better speedwise. 5.0.2
is pretty darn old. -Steve
>>> On 10/20/2009 at 9:52 AM, in message
<8225C3E9-81AB-48BA-8612-35A03B9BF19B at geodan.nl>, "Steven M. Ottens"
<steven.ottens at geodan.nl> wrote:
> Hi all,
>
> Thanks to Frank the problem was drilled down to the way the relative
> paths where defined in the index shapefile. Using absolute paths in
> gdaltindex did the trick.
>
> Unfortunately Geoserver 1.7.6 is faster on the same machine, with the
> same dataset as Mapserver 5.0.2 :(
>
> http://bit.ly/W02ka
> vs
> http://bit.ly/2sXA68
>
> Thanks for all the help
>
> Steven
>
> On Oct 20, 2009, at 12:34 PM, Milo van der Linden wrote:
>
>> 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