dynamic layers and DescribeCoverage requests

Ara T Howard ara.t.howard at NOAA.GOV
Tue Dec 26 10:16:03 EST 2006


On Sat, 16 Dec 2006, Ara.T.Howard wrote:

> hi all-
>
> few newb questions:
>
>
> 1) i'm adding a dynamic layer via mapscript/php using this code:
>
>  $oMap = ms_newMapobj("/data/ut_night_mosaics.map");
>
>  $oLayer = ms_newLayerObj ($oMap);
>
>  $oLayer->set('name', 'foo');
>
>  $oLayer->setProcessing ("SCALE_1=0,63");
>  $oLayer->setMetaData ("wcs_description"     , "F152003 11 28 mosaic");
>  $oLayer->setMetaData ("wcs_name"            , "mosaic");
>  $oLayer->setMetaData ("wcs_label"           , "vis_mosaic");
>  $oLayer->setMetaData ("ows_srs"             , "EPSG:4326");
>  $oLayer->setMetaData ("ows_extent"          , "-180 -75 180 75");
>  $oLayer->setMetaData ("wcs_resolution"      , "0.00833333 -0.00833333");
>  $oLayer->setMetaData ("wcs_bandcount"       , "1");
>  $oLayer->setMetaData ("wcs_formats"         , "GEOTIFF");
>  $oLayer->setMetaData ("wcs_nativeformat"    , "8-bit GeoTIF");
>  $oLayer->setMetaData ("wcs_rangeset_name"   , "vis_mosaic");
>  $oLayer->setMetaData ("wcs_rangeset_label"  , "vis");
>  $oLayer->setMetaData ("wcs_rangeset_axes"   , "bands");
>  $oLayer->setMetaData ("wcs_bands_name"      , "bands");
>  $oLayer->setMetaData ("wcs_bands_semantic"  , "http://www.ngdc.noaa.gov/dmsp/");
>  $oLayer->setMetaData ("wcs_bands_refSys"    , "European Petroleum Survey > Group (EPSG)");
>  $oLayer->setMetaData ("wcs_bands_label"     , "F152003");
>  $oLayer->setMetaData ("wcs_bands_values"    , "VIS");
>  $oLayer->set('status', MS_OFF);
>  $oLayer->set('dump', MS_TRUE);
>  $oLayer->set('data', "F1520061123.nt.d.OIS.vis.mos");
>  $oLayer->set('dump', MS_LAYER_RASTER);
>  $oLayer->setProjection ("init=epsg:4326");
>
>  $oMap->owsdispatch($request);
>  $contenttype = ms_iostripstdoutbuffercontenttype();
>  header("Content-Type: $contenttype");
>  ms_iogetStdoutBufferBytes();
>  ms_ioresethandlers();
>
> this works fine: i can make wcs requests for the 'foo' layer.  however, a
> DescribeCoverage request does not seem to pick up on the dynamic layer via
> owsdispatch.  what else should i look into doing?

sorry for replying to my own post, but does anyone have insight into whether
or not the creation of dynamic layers should result in additional components
from a DescribeCoverage request?  is this a feature or a bug?

regards.

-a
-- 
if you find yourself slandering anybody, first imagine that your mouth is
filled with excrement.  it will break you of the habit quickly enough. - the
dalai lama



More information about the mapserver-users mailing list