Skip to content

Coordinate converting module with console application for Java

License

Notifications You must be signed in to change notification settings

STEMLab/ConvertModule

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ConvertModule

Coordinate converting module with console application for Java

How to use this code for poets.

  1. Working folder is
    C:\ConvertTool
    (C:\ConvertTool\Convert.java...)

  2. 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

  3. Extract zip file to C:\gdal

  4. Copy C:\gdal\bin\gdal\java\gdalalljni.dll
    to C:\gdal\bin

  5. Add Path
    "C:\gdal\bin"
    "C:\gdal\bin\gdal\apps"

  6. Set environment value
    set GDAL_DATA=C:\gdal\bin\gdal-data

  7. Compile
    javac Convert.java -classpath c:\gdal\bin\gdal\java\gdal.jar

  8. Run with samples
    java -cp .;c:\gdal\bin\gdal\java\gdal.jar Convert GCP-201-Pixel.txt TARGET-Pixel.txt result-pixel.txt

Input GCPs file structure.

gcp_doc.PNG

Input target pixel file structure.

gcp_doc.PNG

Result file structure.

gcp_doc.PNG

About

Coordinate converting module with console application for Java

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages