ChristianG wrote:
> 
> Does this help:
> 
> http://www.nabble.com/How-to-convert-from-EPSG%3A4326-to-EPSG%3A23032- 
> to7869646.html#a7908471
> 
> ?
> 
> Christian
> 
> 

My code is:

Coordinate coordinate = new Coordinate(x, y);
GeometryFactory gf = new GeometryFactory();
Point vecchioPunto = gf.createPoint(coordinate);
CoordinateReferenceSystem sridIn        = 
CRS.decode(puntoDaConvertire.getSrid());
CoordinateReferenceSystem sridOut       = CRS.decode(nuovoSrid);
MathTransform transform = CRS.findMathTransform(sridIn, sridOut, true);
Point nuovoPunto = (Point)JTS.transform(vecchioPunto, transform);

but i have problem if insert code in web app. 

I have readed http://jira.codehaus.org/browse/GEOT-1211 and i deleted
gt2-epsg-access and gt2-epsg-hsql from my lib.

If start my app in desktop application, it run correctly, but if call my
code into web app, it don't run!

Help me please
-- 
View this message in context: 
http://www.nabble.com/Conversion-CoordinateReferenceSystem-to-other-CoordinateReferenceSystem-tp18149566p18150334.html
Sent from the geotools-gt2-users mailing list archive at Nabble.com.


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to