<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
<div dir="auto" style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
Hi there,
<div class=""><br class="">
</div>
<div class="">Is there a way to create a tile index (Shapefile or PostGIS table) of NetCDF files and a particular variable from these files that MapServer would accept?</div>
<div class="">I managed to create a tile index Shapefile (without error from the <i class="">
gdaltindex</i> tool) like so (the variable is <i class="">precip </i><span style="font-style: normal;" class="">here)</span>:</div>
<div class=""><br class="">
</div>
<div class="">gdaltindex -t_srs EPSG:4326 netcdf_index.shp NETCDF:"/var/www/images/file1.nc”:precip</div>
<div class=""><br class="">
</div>
<div class="">I have to run that in a loop for all NetCDF files to be added since a wildcard option doesn’t seem to work. However, when trying to generate a map with MapServer, MapServer is choking on the tile index file then:</div>
<div class=""><br class="">
</div>
<div class="">msDrawMap(): Image handling error. Failed to draw layer named 'cfs2'. msDrawRasterLayerLow(): Unable to access file. Corrupt, empty or missing file '/var/www/mapcache/../images/NETCDF:/var/www/images/file1.nc:precip' for layer 'cfs2'. /var/www/mapcache/../images/NETCDF:/var/www/images/file1.nc:precip:
No such file or directory</div>
<div class=""><br class="">
</div>
<div class="">Is there any syntax that MapServer would accept or is it simply not supported to have a tile index of NetCDF files!?</div>
<div class=""><br class="">
</div>
<div class="">Many thanks,</div>
<div class=""><br class="">
</div>
<div class="">Michael</div>
<div class=""><br class="">
<div class="">
<div dir="auto" style="caret-color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
<div dir="auto" style="caret-color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
<div dir="auto" style="caret-color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
<div dir="auto" style="caret-color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
<div dir="auto" style="caret-color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
<div dir="auto" style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
<div style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;">
<font color="#adadad" class="">Michael Wagner</font></div>
<div style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;">
<font color="#adadad" class=""><font class="">Database Architect<br class="">
</font>Global Parametrics Limited</font></div>
<div style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;">
<font class=""><font color="#adadad" class=""><br class="">
</font></font></div>
<br class="Apple-interchange-newline">
</div>
</div>
<br class="Apple-interchange-newline">
</div>
<br class="Apple-interchange-newline">
</div>
<br class="Apple-interchange-newline">
</div>
<br class="Apple-interchange-newline">
</div>
<br class="Apple-interchange-newline">
<br class="Apple-interchange-newline">
</div>
<br class="">
</div>
</div>
</body>
</html>