This project is read-only.

Method not found errors or new versions ?

May 24, 2011 at 3:40 PM

I tried to upgrade to my test project (for supporting netcdf files) to version c725bd1f7f1f or versin d8755af5e8c0 

Method not found: 'Void DotSpatial.Data.IFeatureSet.set_FeatureType(DotSpatial.Topology.FeatureType)'.

you can get the code from here:  http://147.102.85.132/Public/DotSpatial.Data.SDSExtension24-5-2011.rar

Any ideas why this happens ?

May 24, 2011 at 7:38 PM

I downloaded the code from:

http://147.102.85.132/Public/DotSpatial.Data.SDSExtension24-5-2011.rar

and I'm trying to compile it with new version of DotSpatial. I can't find the file Microsoft.Research.Science.Data.Imperative.

Jiri

May 24, 2011 at 9:48 PM

You need to download and install the "Scientific Data-Set Library and Tools" from http://research.microsoft.com/en-us/downloads/ccf905f6-34c6-4845-892e-a5715a508fa3/

May 24, 2011 at 11:00 PM

Thanks.

Can you also send a link to a sample NetCDF dataset that can be opened using the SDSExtension?

I tried to load several NetCDF files from:

http://www.unidata.ucar.edu/software/netcdf/examples/files.html

I'm getting an unhandled exception : NullReferenceException (GeoLatDimension.Variable is NULL) in netCDFInfo.cs.

 

thanks,

Jiri

May 24, 2011 at 11:22 PM

Thank you for looking into it.

Please download

http://147.102.85.132/Public/ENSEMBLES_SMHIRCA30_A1B_ECHAM5-r3_MM_50km_196101-201012_tasma.nc

Thanks,

Angelos

May 25, 2011 at 12:12 AM

Ok i think found the erro.

I should have disabled the "copy local" on dotspatial dependencies.

Thank you for your help.

May 25, 2011 at 2:32 AM

Hi Angelos,

I downloaded your code and I also could run it with your sample .nc file after setting copy local to false. Thank you for sharing the code.

I have the following question: How does the NetCDF raster provider treat datasets with more than 2 dimensions (such as latitude, longitude, time)?

Regards,

Jiri

May 25, 2011 at 9:16 AM

unfortunately i could not call it a normal provider.

It actually creates a raster file based on parameter/values of other variables other than lat/lon for example time,height and it creates a new raster file that is then displayed. Every time the time or height values are changed an event will be fired to recreate the raster.

The netCDF is a difficult specification for me to handle.

Anyway i re-uploaded a newer version in the previous location.

Thanks a lot,

Angelos Panagiotakis

May 25, 2011 at 3:36 PM

Thanks for the explanation.

Your code is a good start of having support of NetCDF in our DotSpatial and HydroDesktop applications. It can be used as the backbone of a full-featured NetCDF DotSpatial data provider. I've already tested it with both DotSpatial DemoMap and HydroDesktop and it can display some .nc files.

Do you agree if we make some improvements (to support NetCDF grids which are not in Lat/Lon projection?) and upload your code to the DotSpatial open source code repository ?

Thanks,

Jiri

May 25, 2011 at 6:19 PM

Yes sure, do whatever you wish! ... I might learn something!

It will be a difficult process i think but i guess it would be better to remove the MS Research "Scientific Data-Set Library and Tools" dependency and use only SDS (http://sds.codeplex.com/)

Thanks,

Angelos