Skip to content

BUG FIX ground truth file whose name starts with a number

Hélène Touchais requested to merge bug_ref_file_start_digit into develop

This ogr2ogr command returns the following error if the name of the user-defined reference polygon shape file starts with a number:

Exception: Launch command fail : ogr2ogr **/reference_data.shp **/20_reference_data.shp -sql 'SELECT code AS code,area AS area,id AS id,cd AS cd,code_str AS code_str,test_test AS test_test FROM 20_reference_data' 

b'ERROR 1: SQL Expression Parsing Error: syntax error, unexpected integer number, expecting string or identifier. Occurred around :\nAS code_str,test_test AS test_test FROM 20_reference_data\n                                        ^\n' 

This problem has been reported here, and the proposed solution is implemented in this branch.

TU/TI ok

Merge request reports

Loading