Coordinate converting module with console application for Java
-
Working folder is
C:\ConvertTool
(C:\ConvertTool\Convert.java...) -
Download GDAL (Compiled binaries in a single .zip package)
http:www.gisinternals.com/query.html?content=filelist&file=release-1900-x64-gdal-2-4-0-mapserver-7-2-2.zip -
Extract zip file to C:\gdal
-
Copy C:\gdal\bin\gdal\java\gdalalljni.dll
to C:\gdal\bin -
Add Path
"C:\gdal\bin"
"C:\gdal\bin\gdal\apps" -
Set environment value
set GDAL_DATA=C:\gdal\bin\gdal-data -
Compile
javac Convert.java -classpath c:\gdal\bin\gdal\java\gdal.jar -
Run with samples
java -cp .;c:\gdal\bin\gdal\java\gdal.jar Convert GCP-201-Pixel.txt TARGET-Pixel.txt result-pixel.txt