[mapserver-users] Tile index of NetCDF files

Michael Wagner mwagner at globalparametrics.com
Thu Dec 19 05:44:01 PST 2019


Hi there,

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?
I managed to create a tile index Shapefile (without error from the gdaltindex tool) like so (the variable is precip here):

gdaltindex -t_srs EPSG:4326 netcdf_index.shp NETCDF:"/var/www/images/file1.nc”:precip

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:

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

Is there any syntax that MapServer would accept or is it simply not supported to have a tile index of NetCDF files!?

Many thanks,

Michael

Michael Wagner
Database Architect
Global Parametrics Limited









-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20191219/fff9124d/attachment.htm>


More information about the MapServer-users mailing list