One Star

Help - Pbe with installation GDAL/OGR

Hello,
I would like to create metadata semi-automatically spatial data (mainly shape files) through the folder ""metadata-crawler-master" using TOS 5.4 spatial module 5.5.1
Unfortunately I found a problem whan I execute Job first_test_ogr, which is a job to test that GDAL/OGR is well installed (it should return the list of supported format by OGR)

Here is my message : 
Démarrage du job first_test_ogr a 10:48 04/09/2014.
connecting to socket on port 3710
connected
FAILURE:Unable to open datasource `/usr/local/App/talend/TOS_DI-r104014-V5.3.1/workspace/in.SHP' with the OGR drivers.
  -> ESRI Shapefile
  -> MapInfo File
  -> UK .NTF
  -> SDTS
  -> TIGER
  -> S57
  -> DGN
  -> VRT
  -> REC
  -> Memory
Regards,
Magali

  • SDI
8 REPLIES
Seventeen Stars

Re: Help - Pbe with installation GDAL/OGR

The missing file name sounds like the default file name what Talend usually gives file name attributes in new components of a job. Are you sure you have this file at this place?
One Star

Re: Help - Pbe with installation GDAL/OGR

You're right : I don't have this file at this place ! But where is it possible to change this parameter? 
I thought it was with the parameters of "MetadataCrawlerConfig 0.1"... But I don't see it.

Thanks for you help !
Regard,
magali
Seventeen Stars

Re: Help - Pbe with installation GDAL/OGR

Could you please post a screenshot of your job?.
At least - you could find this attribute in the item file of your job (xml structured).
One Star

Re: Help - Pbe with installation GDAL/OGR

here is my file first_test_0.1.item
------------



 
 
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
 

 
   
   
   
   
   
   
   
   
   
     
   

 

 
   
   
   
   
   
   
   
   
   
   
   
   
   
     
     
   

   
   
   
   
   
     
   

 

 
   
   
     
     
     
   

   
   
   
   
   
   
   
   
 

 
   
   
   
   
   
   
   
   
   
   
   
   
   
 

 
   
   
   
 

One Star

Re: Help - Pbe with installation GDAL/OGR

Here is the screenshot:
(I tried to drop my screenshot, but it doesn't work... Do we need to use a specific Navigator?)
Thanks
Seventeen Stars

Re: Help - Pbe with installation GDAL/OGR

OK the mentioned path is not configured within the job, then we have to look in the Metadata. To be honest I haven't work with the Geo spatial components so far but I know very well Talend and everything you use (configuration like this) must be found within your PROJECT folder. Could you search for our "problem" path with a multifile text search? 
One Star

Re: Help - Pbe with installation GDAL/OGR

Here is a extract of some parameters of my MetadataCrawlerConfig 0.1 : (I don't find my "problem" path with a text search)
csw_server_host: ""
data_dir : C:/geodata/
overview folder : /tmp/talend/www/overviews
vector_file_extension_for_geopublication : ".*\\.shp"
geoserver_server_host : ""
resource_dir : C:/geodata/inventaire/_resources/
I don't see where is my "problem" path. Any Idea?
One Star

Re: Help - Pbe with installation GDAL/OGR

Hello,
I have found in first_test_ogr.class the wrong path "/usr/local/App/talend/TOS_DI-r104014-V5.3.1/workspace/in.SHP". Do I have to change it into "C:\geodata\SHP" (where is my data_dir)?

Extract of this field :
/* Initialize variables */
String srs_sOGRInfoInput_1 = null;
org.opengis.referencing.crs.CoordinateReferenceSystem crs_sOGRInfoInput_1 = null;
// Default SRS EPSG code, if none is found
int epsg_code_sOGRInfoInput_1 = -1;
String datasetName_sOGRInfoInput_1 = /**
* Start field
* sOGRInfoInput_1:FILENAME
*/
"/usr/local/App/talend/TOS_DI-r104014-V5.3.1/workspace/in.SHP"/**

* End field sOGRInfoInput_1:FILENAME
*/
;

Thanks for your help !