[mapserver-users] contour layers with tileindex issues
Rahkonen Jukka (MML)
jukka.rahkonen at maanmittauslaitos.fi
Mon Dec 14 08:01:08 PST 2015
Hi,
I would try to use TILEINDEX through OGR but that gets tricky because one LAYER probable can't have two CONNECTIONTYPEs. Perhaps it would work by using a tileindex layer as a tileindex for contours.
LAYER #OGR tileindex layer
NAME "ogr_tileindex"
CONNECTIONTYPE OGR
CONNECTION ....
...
...
LAYER #countour layer
TILEINDEX "ogr_tileindex"
CONNECTIONTYPE CONTOUR PROCESSING "BAND=1"
....
....
But based on the error message Mapserver tries already open your GRIB2 files through GDAL/OGR. Are you sure that you have valid path in the "location" field of the tileindex shape?
-Jukka Rahkonen-
Kralidis, Tom wrote:
Hi all: using 6.4.1 we are attempting to display (via WMS) GRIB2 data as a contour layer backed by a tileindex setup. Invoking a basic WMS 1.3.0 GetMap request returns the following ServiceExceptionReport:
msDrawMap(): Image handling error. Failed to draw layer named 'RDPS.ETA_PN'.
msContourLayerOpen(): Image handling error. Unable to open GDAL dataset.
msBuildPath: Unable to access file.
msBuildPath: Unable to access file.
msContourLayerSetTimeFilter(): General error message. Assertion failed: Contour layer not opened!!!
When I point directly to a single GRIB2 file (via the DATA directive), all works as expected.
Layer definition snippet below.
Any idea what I'm doing wrong here? Or whether this is a suitable workaround? Note we are bound to UbuntuGIS stable.
Thanks
..Tom
LAYER
NAME "RDPS.ETA_PN"
STATUS ON
DEBUG OFF
TILEINDEX "/data/tileindex/foo.shp" # doesn't work # DATA "/data/foo.grib2" # works TYPE LINE CONNECTIONTYPE CONTOUR PROCESSING "BAND=1"
PROCESSING "CONTOUR_INTERVAL=400"
PROCESSING "CONTOUR_ITEM=pixel"
DUMP TRUE
TEMPLATE "ttt.html"
PROJECTION
"proj=stere"
"lat_0=90"
"lat_ts=60"
"lon_0=249"
"k=90"
"x_0=0"
"y_0=0"
"a=6371229"
"b=6371229"
"units=m"
"no_defs"
END
...
END
_______________________________________________
mapserver-users mailing list
mapserver-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
More information about the MapServer-users
mailing list