[gdal-dev] How to enable NetCDF?
Paul Meems
bontepaarden at gmail.com
Thu Oct 17 12:41:27 PDT 2013
I'm still working on configuring GDAL and MapWinGIS to open several raster
formats.
I've got several problems with some file formats.
The most blocking is when I enable NetCDF GDALAllRegister() generates an
exception.
I'm using the trunk version (R.26534) of GDAL v1.10. I compile using nmake
with Visual Studio 2008.
This is my nmake.local:
!IFDEF WIN64
PLATFORM_NAME = x64
!ELSE
PLATFORM_NAME = Win32
!ENDIF
!IFNDEF GDAL_HOME
GDAL_HOME = C:\dev\SupportingLibraries\GDAL\gdal-trunk
!ENDIF
!IFNDEF BINDIR
BINDIR = $(GDAL_HOME)\..\..\bin\$(PLATFORM_NAME)
!ENDIF
!IFNDEF LIBDIR
LIBDIR = $(GDAL_HOME)\..\..\lib\$(PLATFORM_NAME)
!ENDIF
!IFNDEF INCDIR
INCDIR = $(GDAL_HOME)\..\..\include
!ENDIF
# ECW Support
ECWDIR = $(GDAL_HOME)\..\ERDAS-ECW-JPEG-2000-SDK-5.0
ECWFLAGS = -DECWSDK_VERSION=50 /DNCSECW_EXPORTS \
-I$(ECWDIR)\include \
-I$(ECWDIR)\include/NCSECW/API \
-I$(ECWDIR)\include/NCSECW/JP2 \
-I$(ECWDIR)\include/NCSECW/ECW
ECWLIB = $(ECWDIR)\lib\vc90\$(PLATFORM_NAME)\NCSEcwS.lib
# LizardTech SDK Support
MRSID_DIR = $(GDAL_HOME)\..\LizardTech-SDK\$(PLATFORM_NAME)
# Proj4 support
PROJ_FLAGS = -DPROJ_STATIC
PROJ_INCLUDE = -I$(GDAL_HOME)\..\proj-trunk\src
PROJ_LIBRARY = $(LIBDIR)\proj.lib
# GEOS Support
GEOS_DIR = $(GDAL_HOME)\..\geos-3.4.2
GEOS_CFLAGS = -I$(GEOS_DIR)/capi -I$(GEOS_DIR)/include -DHAVE_GEOS
GEOS_LIB = $(LIBDIR)\geos_c_i.lib
# Enabled big tiff support
TIFF_OPTS = -DBIGTIFF_SUPPORT
#NetCDF support
#NETCDF_PLUGIN = NO
#NETCDF_SETTING = yes
#NETCDF_LIB = $(LIBDIR)\netcdf.lib
#NETCDF_INC_DIR = $(INCDIR)
##NETCDF_HAS_NC4 = yes
##NETCDF_HAS_HDF4 = yes
As you can see I've disabled NetCDF support.
The main question is what settings should I use and which version of
netcdf.lib and netcdf.dll?
In MapWinGIS we set netcdf.dll as delay loaded dll.
Thanks,
Paul
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20131017/d7a09159/attachment.html>
More information about the gdal-dev
mailing list