Error OGR Java

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

2019 GARNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

Have you checked out Talend’s 2019 Summer release yet?

Find out about Talend's 2019 Summer release

Blog

Talend Summer 2019 – What’s New?

Talend continues to revolutionize how businesses leverage speed and manage scale

Watch Now

6 Ways to Start Utilizing Machine Learning with Amazon We Services and Talend

Look at6 ways to start utilizing Machine Learning with Amazon We Services and Talend

Blog