Error OGR Java

Highlighted
One Star

Error OGR Java

Hello,
I try to use an OGR component in a job, but an error occur: 
Native library load failed.
java.lang.UnsatisfiedLinkError: C:\Program Files\GDAL\ogrjni.dll: La procédure spécifiée est introuvable
In order to use GDAL/OGR in Talend, the java.library.path variable should point to GDAL library.
To set this property, go to the Run view > Advanced settings > Use specific JVM Arguments
and add a new argument:
  -Djava.library.path=/path/to/gdal/swig/java
java.lang.UnsatisfiedLinkError: org.gdal.ogr.ogrJNI.RegisterAll()V
at org.gdal.ogr.ogrJNI.RegisterAll(Native Method)
at org.gdal.ogr.ogr.RegisterAll(ogr.java:115)
at metadata_crawler.first_test_ogr_0_1.first_test_ogr.sOGRInfoInput_1Process(first_test_ogr.java:351)
at metadata_crawler.first_test_ogr_0_1.first_test_ogr.runJobInTOS(first_test_ogr.java:846)
at metadata_crawler.first_test_ogr_0_1.first_test_ogr.main(first_test_ogr.java:703)
Exception in thread "main" java.lang.UnsatisfiedLinkError: org.gdal.ogr.ogrJNI.RegisterAll()V
at org.gdal.ogr.ogrJNI.RegisterAll(Native Method)
at org.gdal.ogr.ogr.RegisterAll(ogr.java:115)
I have installed these components :
- TOS_DI-20150924_1412-V6.1.0RC1
- TOS-Spatial-6.0.1
- gdal-111-1600-x64-core
I have added the environnement variables :

GDAL_DATA : C:\Program Files\GDAL\gdal-dataGDAL_DRIVER_PATH : C:\Program Files\GDAL\gdalpluginsPROJ_LIB : C:\Program Files\GDAL\projlibC:\Program Files\GDAL\java and C:\Program Files\GDAL added to the PATH Variable

I'm on Win 8.1 64 bits.
I don't uderstand what's wrong with this config.
Could you help me?

Thanks
Julien
One Star Fxp
One Star

Re: Error OGR Java

Hi, I think all types of errors are clearly described in the french and english documentation. See
https://github.com/talend-spatial/workspace-metadata-crawler#documentation
Check that env variables are properly set and that you don't have multiple GDAL installations in the path.
* GDAL_DATA
* GDAL_DRIVER_PATH 
* PROJ_LIB
Cheers.
Francois

Cloud Free Trial

Try Talend Cloud free for 30 days.

Tutorial

Introduction to Talend Open Studio for Data Integration.

Definitive Guide to Data Integration

Practical steps to developing your data integration strategy.

Definitive Guide to Data Quality

Create systems and workflow to manage clean data ingestion and data transformation.