1

I need to read and write Esri FileGDB in a Linux system (Centos).I have installed GDAL and compiled the Java package.Then, I tried to use FileGDB API to accomplish the task, but it does not support Java language.

4
  • Can you include your Java code and error message in your posting?
    – GBG
    Commented Aug 19, 2021 at 17:28
  • There exist JNI wrappers for the FGDB C++ library.
    – Vince
    Commented Aug 19, 2021 at 23:19
  • Can you tell me where to download or how to install JNI wrappers for the FGDB C++ library?Tanks.
    – YuChen
    Commented Aug 20, 2021 at 2:38
  • 1
    Note that by default GDAL uses the OpenFileGDB driver, which is read-only. You need to use the ESRI FileGDB driver for write access and this requires the ESRI fGDB API SDK to be installed. See: gdal.org/drivers/vector/filegdb.html (I've no idea if this is accessible in Java or not.) Commented Aug 20, 2021 at 2:56

1 Answer 1

0

You can use GDAL via JNI. You can see the available Java artifacts here: https://mvnrepository.com/artifact/org.gdal/gdal The Javadoc is located here: https://gdal.org/java/index.html

There is also https://github.com/OpenSextant/giscore native Java implementation but it seems outdated.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.