I've converted my shapefile to gml format to resolve that problem. There is 
a spatial difference between my two files but i can't explain why.

Guillaume H.

Le jeudi 23 mars 2017 13:10:24 UTC+1, [email protected] a écrit :
>
> Hello, 
>
> I'm struggling with the following error using otbcli_TrainImageClassifier 
> : "ERROR 1: IllegalArgumentException: Points of LinearRing do not form a 
> closed linestring" during the polygons statistics extraction and the sample 
> selection step. The process ends with a segmentation fault (stacktrace is 
> in attachment). There is also a warning "SamplingRateCalculatorList 
> (0x12d3e00): All classes are empty !" but I'm not sure of its meaning. The 
> temporary created sample selection shapefile is empty but has two columns 
> id and originfid.
>
> I have created a simple shapefile with 2 polygons using Qgis, which 
> contains a Class column of type integer to differentiate my classes. It 
> seems that this error is given by GEOS when the polygon doesn't close on 
> its starting point, but i have checked that case using Qgis geometry tool 
> checker / Postgis St_IsValid & St_MakeValid / directly by reading the file. 
> I've also tried to create my polygons using spatialite but the result is 
> the same.
>
> Has anyone encountered the same error ? I'm using ubuntu  16.04 with OTB 
> 5.10 binaries, Qgis 2.14 from debian-ltr repo. I could reproduce it with a 
> fresh Ubuntu install with OTB 5.10.1 binaries and same Qgis 2.14 ltr.
>
> The concerned files are attached, can someone try to reproduce it ? Here 
> is the command i have launched : "otbcli_TrainImagesClassifier -io.il 
> RasterSample.tif -io.vd DataSample.shp -io.out rfmodel.txt -classifier rf 
> -sample.vfn Class"
>
> Thanks in advance,
>
> Guillaume H.
>
>

-- 
-- 
Check the OTB FAQ at
http://www.orfeo-toolbox.org/FAQ.html

You received this message because you are subscribed to the Google
Groups "otb-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/otb-users?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"otb-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to