Simon Turner a écrit :
I tried using epsg-wkt, but it simply throws an OperationNotFoundException
("Bursa wolf parameters required") because of the lack of a datum shift within
DefaultCoordinateOperationFactory.createOperationStep(GeocentricCRS sourceCRS,
GeocentricCRS targetCRS).
You can turn off the requirement for Bursa Wolf parameters:
FactoryFinder.getCoordinateOperationFactory(new
Hints(Hints.LENIENT_DATUM_SHIFT, Boolean.TRUE));
The downside is that you will not get any warning if a transformation
should implies a datum shift but none where available.
I know that PostGIS uses PROJ.4 for transformations, so doesn't that guarantee
that it can handle datum shifts? Perhaps PROJ.4 simply picks a different algorithm?
This is not automatic. Proj.4 can probably handle datum shifts,
providing that Bursa-Wolf parameters are provided. Bursa-Wolf parameters
are empirical (they are not bundle inside any algorithm) and are usually
read from a database (the EPSG database in our case). Even if Proj.4 can
handle datum shifts, if the client software (PostGIS or whatever) do not
provides the required informations, I don't think that Proj.4 can guess
by itself since those parameters are empirical.
Martin.
-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users