Hi Martin (Desruisseaux),
sorry, that was my mistake from copying and pasting into the mail. I 
tried both (I know that the order is sometimes tricky).
here are the results one comes with:
with the correct WGS84 order:
lat: 47.346805555555555 lon: 8.963944444444444 proj x: 
1.5637025606181357E7 proj y: -2852223.337476256
the result is totally off.
With the swapped order:
lon: 8.963944444444444 lat: 47.346805555555555 proj x: 
1.0735073726643294E7 proj y: 245114.46377226454
at least the y is correct (spot on). The x is totally off (expected 
value around 715253)

Note that I swapped the order in the input. The switch in 
CRS.decode(sourceSys,true) did not change anything!
I am still stuck with this one...

Martin T.

Martin Desruisseaux wrote:
> Hello
>
> Watch out axis order. If you are using EPSG:4326 as your source CRS, the
> official axis order (according EPSG) is (latitude, longitude), not the other 
> way
> arround.
>
> You can check which axis order you have with the following code:
>
>     System.out.println(sourceCRS);
>
> and look at the order in which AXIS[...] element appears.
>
> If you really want (longitude, latitude) axis order, use
>
>    sourceCRS = CRS.decode(sourceSys, true);
>
>
>
>       Martin
>
>
>   


-- 
Martin Tomko
Postdoctoral Research Assistant 
    
Geographic Information Systems Division
Department of Geography
University of Zurich - Irchel
Winterthurerstr. 190
CH-8057 Zurich, Switzerland

email:  [EMAIL PROTECTED]
site:   http://www.geo.uzh.ch/~mtomko
mob:    +41-788 629 558
tel:    +41-44-6355256
fax:    +41-44-6356848


------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to