|
From: Jean M. <jm...@ho...> - 2010-05-26 16:03:41
|
that is the point !
I only wanted to work with WKT string
I thought I had a chance with something like that :
crsDest=ReferencingFactoryFinder.getCRSFactory(new Hints(Hints.FORCE_LONGITUDE_FIRST_AXIS_ORDER, Boolean.TRUE)).createFromWKT(....);
but it doesn't work either
well the reason why I try to use WKT string is that I don't want to use a big library such as gt-epsg-hsql-2.6.4.jar ;
but anyway I need gt-referencing-2.6.4.jar which is not really smaller :), while I just need to tranform coordinates
so I don't know now if it is worth focusing on WKT string...
Jean-Marie
> Date: Wed, 26 May 2010 17:01:08 +0200
> From: mar...@ge...
> To: geo...@li...; jm...@ho...
> Subject: longitude and latitude invertion
>
> Jean Marie,
> if you don't have to parse the wkt for some internal reasons, you can use the EPSG db provided by GT.
> You can then do:
> boolean forceLonFirst = true;
> crsDest = CRS.decode("EPSG:4326", forceLonFirst);
>
> When you parse a wkt, I think it takes what you exactly specify. You could probably try to swap it in the WKT, but I would try to avoid this.
> Martin
>
>
>
>I think this is a FAQ I also run into as newbe ;-)
>new Hints(Hints.FORCE_LONGITUDE_FIRST_AXIS_ORDER, Boolean.TRUE)
>set the hints whenever you can...
>Cheers
>Jan
_________________________________________________________________
Hotmail : Simple et Efficace qui vous facilite la vie… Découvrez la NOW génération !
http://www.windowslive.fr/hotmail/nowgeneration/ |