Re: [Geotools-gt2-users] NTv2Transform error - unable to locate file

2018-07-25 Thread Andrea Aime
Just a guess (I'm on mobile seaside) but maybe it is a Windows specific issue, since the code has been developed and reviewed by Linux devs only. My guess is based on the path seen in the error message, believe it should be "file://c:/..." (Note the double slash while the error msg reports a

Re: [Geotools-gt2-users] NTv2Transform error - unable to locate file

2018-07-25 Thread Stanislav Dušek
No, that's probably not the issue. I have tried it and it didn't help. This throws the same exception: File gridFile = new File("C:\\Dev\\VTS\\Grids\\WA\\wohpgn.gsb"); URL url = URLs.fileToUrl(gridFile); NTv2Transform transform = new NTv2Transform(url.toURI()); S. 2018-07-25 10:15

Re: [Geotools-gt2-users] NTv2Transform error - unable to locate file

2018-07-25 Thread Ian Turton
I'm not sure if this is the issue but the preferred way to change a file into an url is to use the Urls.toUrl method. Ian On Tue, 24 Jul 2018, 21:46 Stanislav Dušek, wrote: > Hello, > > I'm trying to use GeoTools to calculate the grid coverage based on NTv2 > .gsb file. > However, I'm unable