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.
-
Can you include your Java code and error message in your posting?– GBGCommented Aug 19, 2021 at 17:28
-
There exist JNI wrappers for the FGDB C++ library.– VinceCommented 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.– YuChenCommented Aug 20, 2021 at 2:38
-
1Note 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.)– Son of a BeachCommented Aug 20, 2021 at 2:56
Add a comment
|
1 Answer
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.