Tom Howe a écrit :
> I'm working with netcdf data (specifically following the Models-3
> conform). There is crs data in it. I need to use that data to
> construct a crs in geotools. Is there any good documentation on how to
> build a crs from scratch using geotools (everything I've found seems to
> be out of date), or has anyone extracted crs data from a netcdf file? I
> can provide more details on what information is provided as part of the
> netcdf if people are interested.
There is no tutorial at this time. The usal steps are:
1) First, create the PrimeMeridian, Ellipsoid and Datum objects using
the following factory:
DatumFactory datumFactory = FactoryFinder.getDatumFactory();
2) Next, create the CoordinateSystem using the following factory:
CSFactory csFactory = FactoryFinder.getCSFactory();
3) Last, create the CoordinateReferenceSystem using the following factory
and the Datum / CoordinateSystem created above:
CRSFactory crsFactory = FactoryFinder.getCRSFactory();
I will have to work on NetCDF file too (didn't had the time to start yet, but
this is the work I'm supposed to do starting April 16). If you wish, we may try
to put some code in Geotools codebase at this time?
Martin
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users