VectorClassifier - update mode - segmentation fault

I’m using the VectorClassifier 7.0.0 binary this way

otbcli_VectorClassifier -in T31TCJ_region_2_seed0_Samples_SP.sqlite -feat sentinel2_b2_20151130 sentinel2_b3_20151130 sentinel2_b4_20151130 sentinel2_b5_20151130 sentinel2_b6_20151130 sentinel2_b7_20151130 sentinel2_b8_20151130 sentinel2_b8a_20151130 sentinel2_b11_20151130 sentinel2_b12_20151130 sentinel2_ndwi_20151130 sentinel2_brightness_20151130 -model model_2_it_0.rf

and I get the following errors :

ERROR 6: WriteBlock() not supported for this dataset.
/mnt/data/home/vincenta/OTB-7.0.0-Linux64/bin/otbcli : ligne 55 : 31454 Erreur de segmentation  (core dumped)$OTB_CLI_LAUNCHER "$@"

model_2_it_0.rf (20.0 KB)

T31TCJ_region_2_seed0_Samples_SP.sqlite (172 KB)

Is something is wrong with the input dataBase ?

If the parameter -out is provided, everything works.

The same command (in update mode) works properly with 6.6.2 binaries.

Thanks,

Hi Arthur,
I can reproduce your problem but do not understand yet what is going wrong… Your database seems ok.
Thank for your bug report in Gitlab
best regards,
Yannick

Hello Yannick,

I have a failure on macOS (v7.2.0) with VectorClassifier which appears to be related to this post where the command is trying to interact with an sqlite vector database. I also experienced update issues working with sqlite using Large Scale Meanshift (LargeScaleMeanShift - sqlite / gpkg fatal error). I realize this thread corresponds to a prior version and is somewhat dated, however, I was wondering if SQLite update capabilities or additional GDAL/OGR capable vector datasets (I will plan on attempting this operations with GPKG) may be in the planning and something that may be addressed with the upcoming work on v8.0? I am using SQLite due to the file size limitations shapefiles.

2021-03-19 18:14:34 (INFO) VectorClassifier: Update input vector data.
ERROR 1: SpatiaLite v4 DB found, but updating tables disabled because no linking against spatialite library !
/Applications/OTB-7.2.0-Darwin64/bin/otbcli: line 55: 63648 Segmentation fault: 11 OTB_CLI_LAUNCHER "@"

Thank you.

Rob

Just a quick update. No issues with otbcli_VectorClassifier and updating using GeoPackage. Still, would be interested in the operations with SQLite. I imagine this may be part of the ongoing effort with the open issue Available drivers in Datasource and VectorData (#2061) · Issues · Main Repositories / otb · GitLab ?

Thank you again.

Rob

Hello Robert,

Thank you for your message.
We have to analyze these problems and give a clear status for next OTB version…

Best regards,

Yannick