Hello
surely an easy problem but I don't find the way to solve it
;
i do some tranformation from one coordinate sytem to another
through
the folllowing code :
crsSrc = CRS.parseWKT("wkt
string from epsg xxxx");
crsDest = CRS.parseWKT("wkt
string from epsg 4326");
MathTransform mathtransform = CRS.findMathTransform(crsSrc,
crsDest, true);
double Longitude=-70707.595150;
double Latitude=1273.432854;
DirectPosition SourcePoint
= new GeneralDirectPosition(Longitude, Latitude);
DirectPosition TargetPoint = mathtransform.transform(SourcePoint, null);
the result is TargetPoin[0]=40.5 and TargetPoin[1]=1.5
but I expected TargetPoin[0]=1.5 and TargetPoin[1]=40.5
how
can I get the longitude first in any case ?
thanks in advance
jean-Marie
_________________________________________________________________
Vous voulez regarder la TV directement depuis votre PC ? C'est très simple avec
Windows 7
http://clk.atdmt.com/FRM/go/229960614/direct/01/------------------------------------------------------------------------------
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users