[geotk] Trouble reading GMT grid file

Brian Schlining bschlining at gmail.com
Thu Nov 3 14:49:45 EDT 2011


Hi Martin,

Thanks for responding. 
> 
> > If I change the files extension to .nc, I get the following exception:
> > maplot.groovy ~/Downloads/GreaterMontereyBay_UTM10N_50m.nc
> > Caught: java.lang.NoSuchMethodError: ucar.nc2.VariableIF.getName()Ljava/lang/String;
> > java.lang.NoSuchMethodError: ucar.nc2.VariableIF.getName()Ljava/lang/String;
> 
> 
> This error sound like a mismatched version of the NetCDF library on the 
> classpath... I mean, I think that the NetCDF library which is on your classpath 
> is not the one Geotk was built with. Which Geotk version are you using? Geotk 
> 3.18 required NetCDF 4.2.20, while Geotk 3.19 and current trunk requires NetCDF 
> 4.2.26.
> 
I'm using Geotk 3.19. 

I'm not explicitly setting the NetCDF version. I just assumed the dependency resolver would pick up the correct one. When I explicitly set it to use NetCDF 4.2.26 I get the same error. A quick browse of the javadoc shows that there's no method 'getName' in the VariableIF class. Instead VariableIF has getFullName and getShortName methods. I haven't looked at the GeoTK build but is it possible that coverageio-netcdf module is being built with a different version of NetCDF-java?

Cheers
-- 

Brian Schlining 




More information about the Geotoolkit mailing list