Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

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

Labels (2)
8 Replies
Anonymous
Not applicable
Author

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?
Anonymous
Not applicable
Author

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
Anonymous
Not applicable
Author

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).
Anonymous
Not applicable
Author

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


<PROCESSTYPE version="2.0" XMI="" TALENDFILE="platform:/resource/org.talend.model/model/TalendFile.xsd" defaultcontext="Default">
  <CONTEXT confirmationneeded="false" name="Default"></CONTEXT>
  <PARAMETERS>
    <ELEMENTPARAMETER field="TEXT" name="JOB_RUN_VM_ARGUMENTS" value=" -Xms256M -Xmx1024M"></ELEMENTPARAMETER>
    <ELEMENTPARAMETER field="CHECK" name="JOB_RUN_VM_ARGUMENTS_OPTION" value="false"></ELEMENTPARAMETER>
    <ELEMENTPARAMETER field="TEXT" name="SCREEN_OFFSET_X" value="0"></ELEMENTPARAMETER>
    <ELEMENTPARAMETER field="TEXT" name="SCREEN_OFFSET_Y" value="0"></ELEMENTPARAMETER>
    <ELEMENTPARAMETER field="TEXT" name="SCHEMA_OPTIONS" value="none"></ELEMENTPARAMETER>     <ELEMENTPARAM

To see the whole post, download it here
OriginalPost.pdf
Anonymous
Not applicable
Author

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

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? 
Anonymous
Not applicable
Author

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?
Anonymous
Not applicable
Author

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 !