<div dir="ltr"><div><div><div><div><div><div><div>I'm still working on configuring GDAL and MapWinGIS to open several raster formats.<br><br></div>I've got several problems with some file formats.<br></div>The most blocking is when I enable NetCDF GDALAllRegister() generates an exception.<br>
</div><br>I'm using the trunk version (R.26534) of GDAL v1.10. I compile using nmake with Visual Studio 2008.<br><br></div>This is my nmake.local:<br><span style="font-family:courier new,monospace">!IFDEF WIN64<br>PLATFORM_NAME = x64<br>
!ELSE<br>PLATFORM_NAME = Win32<br>!ENDIF<br><br>!IFNDEF GDAL_HOME<br>GDAL_HOME = C:\dev\SupportingLibraries\GDAL\gdal-trunk<br>!ENDIF<br>!IFNDEF BINDIR<br>BINDIR = $(GDAL_HOME)\..\..\bin\$(PLATFORM_NAME)<br>!ENDIF<br>!IFNDEF LIBDIR<br>
LIBDIR = $(GDAL_HOME)\..\..\lib\$(PLATFORM_NAME)<br>!ENDIF<br>!IFNDEF INCDIR<br>INCDIR = $(GDAL_HOME)\..\..\include<br>!ENDIF<br><br># ECW Support<br>ECWDIR = $(GDAL_HOME)\..\ERDAS-ECW-JPEG-2000-SDK-5.0<br>ECWFLAGS = -DECWSDK_VERSION=50 /DNCSECW_EXPORTS \<br>
-I$(ECWDIR)\include \<br> -I$(ECWDIR)\include/NCSECW/API \<br> -I$(ECWDIR)\include/NCSECW/JP2 \<br> -I$(ECWDIR)\include/NCSECW/ECW<br>ECWLIB = $(ECWDIR)\lib\vc90\$(PLATFORM_NAME)\NCSEcwS.lib <br>
<br># LizardTech SDK Support<br>MRSID_DIR = $(GDAL_HOME)\..\LizardTech-SDK\$(PLATFORM_NAME)<br><br># Proj4 support<br>PROJ_FLAGS = -DPROJ_STATIC<br>PROJ_INCLUDE = -I$(GDAL_HOME)\..\proj-trunk\src<br>PROJ_LIBRARY = $(LIBDIR)\proj.lib<br>
<br># GEOS Support<br>GEOS_DIR = $(GDAL_HOME)\..\geos-3.4.2<br>GEOS_CFLAGS = -I$(GEOS_DIR)/capi -I$(GEOS_DIR)/include -DHAVE_GEOS<br>GEOS_LIB = $(LIBDIR)\geos_c_i.lib<br><br># Enabled big tiff support<br>TIFF_OPTS = -DBIGTIFF_SUPPORT<br>
<br>#NetCDF support<br>#NETCDF_PLUGIN = NO<br>#NETCDF_SETTING = yes<br>#NETCDF_LIB = $(LIBDIR)\netcdf.lib<br>#NETCDF_INC_DIR = $(INCDIR) <br>##NETCDF_HAS_NC4 = yes<br>##NETCDF_HAS_HDF4 = yes</span><br><br></div>
As you can see I've disabled NetCDF support.<br></div>The main question is what settings should I use and which version of netcdf.lib and netcdf.dll?<br></div>In MapWinGIS we set netcdf.dll as delay loaded dll.<br clear="all">
<div><div><div><div><div><div><div><div><div><div><br></div><div>Thanks,<br></div><div>
<br>
Paul</div>
</div></div></div></div></div></div></div></div></div></div>