lareina sun a écrit :
> I don't want to use CRSAutorityFactory to create 
> CoordinateReferenceSystem. I have projection( like UTM), datum(like 
> NAD27) and reference meridian(like -117) and zone number, is there other 
> ways to pass all these parameters to geotools to create a 
> coordinateReferenceSystem ?


You need to create:

   1) the MathTransform for your projection
   2) a GeodeticDatum object
   3) a CartesianCS object
   4) a Conversion object
   5) a ProjectedCRS object

For #1, use MathTransformFactory (to be obtained with 
FactoryFinder.getMathTransformFactory). See above for examples:

http://svn.geotools.org/geotools/trunk/gt/modules/library/referencing/src/test/java/org/geotools/referencing/operation/projection/DirectCreationTest.java


For #2 to 5, you can use either DatumFactory, CSFactory, CRSFactory, etc., or 
create new DefaultGeodeticDatum, DefaultCartesianCS, etc. instances directly. 
The former is more implementation independent while the later is slightly 
easier 
but Geotools specific.

For ProjectedCRS (especially on 2.3 branch), it may be easier to use 
FactoryGroup convenience method.

        Martin

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to