|
From: <ama...@gm...> - 2007-10-11 07:46:44
|
Hi all im new to geoTools and also to Geo-.... im only a simple web programer that need to do single simple geo task I want to convert a coordinate expressed in EPSG:23030 to a GoogleMaps system coordeinates I need to know some things that i cant find by myself over internet. 1) What coordinate reference system use google maps? I have read that could be this: http://www.spatialreference.org/ref/user/google-projection/ 2) Assuming that the GoogleMap's CRS is that ones, how can i implement it i= n GeoTools. Im triying to do something like that: String wkt =3D "String copied from here<http://http://www.spatialreference.org/ref/user/google-projection/ogcw= kt/> "; CoordinateReferenceSystem targetCRS =3D CRS.decode("EPSG:23030"); CoordinateReferenceSystem googleCRS =3D CRS.parseWKT(wkt); MathTransform transform =3D CRS.findMathTransform(sourceCRS, googleCRS); MathTransform transform =3D CRS.findMathTransform(sourceCRS, targetCRS); Point p2 =3D (Point) point.transform(targetCRS); First I obtain the following error: org.opengis.referencing.FactoryException: Error in "PROJCS": Parameter "EXTENSION" was not expected. Then i have tried to clear the EXTENSION PARAMETER from de wkt String and then araise the following error WARNING: Can't load a service for category "MathTransformProvider". Cause i= s "NoClassDefFoundError: javax/media/jai/WarpAffine". org.opengis.referencing.operation.OperationNotFoundException: Bursa wolf parameters required. ... 3) Assuming that i can clear the EXTENSION parameter without worring, how can i create a Transform to suite my needs? Please help me i already lost to many days with this. --=20 Abraham M=E1rmol As=EDs |