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 in
GeoTools.
Im triying to do something like that:

String wkt = "String copied from
here<http://http://www.spatialreference.org/ref/user/google-projection/ogcwkt/>
";
CoordinateReferenceSystem targetCRS = CRS.decode("EPSG:23030");
CoordinateReferenceSystem googleCRS = CRS.parseWKT(wkt);
MathTransform transform = CRS.findMathTransform(sourceCRS, googleCRS);
MathTransform transform = CRS.findMathTransform(sourceCRS, targetCRS);

Point p2 = (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 is
"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.
-- 
Abraham Mármol Asís
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to