Re: [Geotools-gt2-users] Error using mathTransform.transform

2017-10-17 Thread Andrea Aime
Hi Cris, if you want a slightly more general solution have a look at the CRS.getAxisOrder method. Just in case you need to reproject between two geographic CRSs in the future. Cheers Andrea On Tue, Oct 17, 2017 at 4:10 PM, Cris Lacumba wrote: > Hi Andrea, > > Thank you for the answer. > > I hav

Re: [Geotools-gt2-users] Error using mathTransform.transform

2017-10-17 Thread Cris Lacumba
Hi Andrea, Thank you for the answer. I have implemented a simple solution in order to fix that: DirectPosition2D destDirectPosition2D = new DirectPosition2D(); try { CoordinateReferenceSystem sourceCrs = CRS.decode("EPSG:" + srs); CoordinateReferenceSystem target

Re: [Geotools-gt2-users] Error using mathTransform.transform

2017-10-17 Thread Andrea Aime
Hi, EPSG:3879 is a CRS that is supposedly in North/East order, and GeoTools will respect that order unless you took explicit actions to force a east/north interpretation. So are you giving the input point in that order? It's difficult to give more advice just looking at a code snippet, if the abov