Hi, the code is:
private void test3() throws FactoryException, MismatchedDimensionException,
TransformException {
CoordinateOperationFactory coFactory =
FactoryFinder.getCoordinateOperationFactory(null);
String codeutm = "EPSG:23030";
String codegeo = "EPSG:4154";
CoordinateReferenceSystem crs = null;
CRSAuthorityFactory af = FactoryFinder.getCRSAuthorityFactory("EPSG",
null);
CoordinateReferenceSystem sourceCRS =
af.createCoordinateReferenceSystem(codegeo);
CoordinateReferenceSystem targetCRS =
af.createCoordinateReferenceSystem(codeutm);
CoordinateOperation op = coFactory.createOperation(sourceCRS,
targetCRS);
MathTransform trans = op.getMathTransform();
System.out.println("Math Transform: " + trans.toWKT());
// transform some points
DirectPosition pt = new GeneralDirectPosition(39.54756533333333,
-3.5980695277777763);
System.out.println("Input point: " + pt);
pt = trans.transform(pt, null);
System.out.println("Output point: " + pt);
}
the jars with epsg are:
gt2-epsg-access-2.2-RC3.jar
gt2-epsg-hsql-2.2-RC3.jar
gt2-epsg-postgresql-2.2-RC3.jar
gt2-epsg-wkt-2.2-RC3.jar
into the las jar are the EPSG datum for EPSG:23030 and EPSG 4154
are corrects.
The parametes for center of Spain are:
Ax = 131.0320
Ay = 100.2510
Az = 163.3540
Rx = -1,2438
Ry = -0.0195
Rz = -1.1436
scale= -9.3900
but I have a coorect calc with geotrans soft with the next params:
-89.5000058332924 -93.8000088918721 -123.099998474121 0.00 0.00
-0.000000756309358135336 0.0000012000000791
Martin Desruisseaux-2 wrote:
>
> César Fernández Gamboa a écrit :
>> The result is:
>> 448544.101 4377779.00
>> I expect something like that:
>> 448611.14 4377788.61
>
>
> The MathTransform WKT is useful. But the WKT of source and target CRS
> would be useful as well. Were
> those CRS created from an EPSG factory (which one), from WKT or "by hand"?
> Is there any
> gt2-epsg-xxx.jar in your classpath, and if yes which one?
>
> Martin.
>
> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job
> easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> Geotools-gt2-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
>
>
--
View this message in context:
http://www.nabble.com/parameters-transform-tf2084651.html#a5760807
Sent from the geotools-gt2-users forum at Nabble.com.
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users