NetCDF in Mapserver...
nbarker at RSINC.COM
Wed Nov 16 11:13:17 EST 2005
From: Andrea Marelli [mailto:maro.jam at TISCALI.IT]
Sent: Wednesday, November 16, 2005 3:55 PM
To: MAPSERVER-USERS at LISTS.UMN.EDU; Norman Barker
Subject: Re: NetCDF in Mapserver...
Sorry, but i'm not so expert, and i don't know what wms or wcs are...
My question is, if it's necessary to covert netcdf files to Geotiff format
first, or I can open netcdf files directly..
and also, if i have to use some CONNECTIONTYPE (for example ogr)..
NetCDF is in my gldainfo formats' list, but not in the ogrinfo formats' list...
what i have to do?
it used to the case that you had to convert to Geotiff, but thanks to work from Denis Nadeau and Frank W this is no longer the case. Now you can open netCDF directly from MapServer.
You will need to compile WCS support into mapserver, something like
./configure --enable-debug --with-proj=/usr/local --with-ogr=/usr/local/bin/gdal-config --with-wfs --with-wcs --with-wmsclient --with-wfsclient --with-gdal=/usr/local/bin/gdal-config
then your mapfile needs to look something like
wcs_label "Test netCDF Server"
ows_extent '-0.5625 -89.69761276245117 359.4375 89.69761276245117'
wcs_resolution '1.125 -1.1212201595306397'
wcs_rangeset_label "Atmospheric Levels"
so mapserver is reading netCDF from disk and producing geotiff output.
You might want to look at OpenGIS GALEON, http://galeon-wcs.jot.com/WikiHome which is looking at this format in terms of the OGC specs.
Hope this helps,
More information about the mapserver-users