Feel free to create a gitlab  issue to describe the possible confusion in
the application documentation:

https://gitlab.orfeo-toolbox.org/orfeotoolbox/otb/issues

It will be written somewhere and hopefully fix in the future.

Thanks,

Manuel

2018-08-02 10:35 GMT+02:00 Rémi <cresso...@gmail.com>:

> Efi,
>
> Indeed the documentation could be quite confusing when you use the
> application from command line.
> The "list" makes sense if you use the app from GUI.
> It is a single valued list, something more like "you want to chose
> something in this list" kind of.
> In GUI mode, the application updates the parameter, and display the
> available fields.
> In CLI mode, you can only provide 1 single value to this list.
>
> Hope that helps,
>
> Rémi
>
> Le jeudi 2 août 2018 10:04:23 UTC+2, Efi a écrit :
>>
>> Dear Remi,
>>
>> Thank you for replying and the advice. Thing is, HOW do I tell the tool
>> what the column is. In the documentation it says that it should be a
>> 'List'. Do you know how this should be, for example if the column is named
>> 'class', I imagine that I need to create a file (.txt, .csv ..?) that
>> contains the field name. This is what I do not know, for now. In the
>> example provided in the documentation the assocaited file is
>> "variousVectors.sqlite", so it's an .sqlite file but still it is not
>> clear to me what the contents are.
>> Link to documentation: https://www.orfeo-toolbox.org/
>> CookBook/Applications/app_PolygonClassStatistics.html
>> I hope I express my question in a way that makes sense to you.
>> Thanks again,
>>
>> Efi
>>
>> On Thu, Aug 2, 2018 at 9:51 AM, Rémi <cres...@gmail.com> wrote:
>>
>>> Dear Efi,
>>>
>>> You have to tell PolygonClassStatistics what is the name of the field
>>> (the column in the attribute table of your vector data) it should use. For
>>> instance, "class".
>>> Hope that helps.
>>>
>>> Rémi
>>>
>>>
>>> Le mercredi 1 août 2018 15:51:13 UTC+2, Efi a écrit :
>>>>
>>>> Hello everyone,
>>>>
>>>> I like to run the PolygonClassStaitistics tool in OTB Monteverdi and
>>>> the command line and I get the following error:
>>>> "ERROR: ListViewParameter(000001E9C173BDF0): Value id not found in the
>>>> list of choices"
>>>> I suppose it has to do with the missing FIELD NAME parameter (should be
>>>> a List). Is there anywhere an example of how this List should be structured
>>>> and saved?
>>>> In the example provided in Orfeo Cookbook (
>>>> https://www.orfeo-toolbox.org/CookBook/Applications/app_Pol
>>>> ygonClassStatistics.html) the file seems to be an sqlite file
>>>>
>>>> ("variousVectors.sqlite").
>>>>
>>>> How should a List file describing a polygon shapefile with 2 columns in
>>>> the attribute table look like in order to be read by OTB?
>>>>
>>>> Thank you,
>>>> Efi
>>>>
>>> --
>>> --
>>> 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 otb-...@googlegroups.com
>>> To unsubscribe from this group, send email to
>>> otb-users+...@googlegroups.com
>>> 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 otb-users+...@googlegroups.com.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>> --
> --
> 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 otb-users@googlegroups.com
> To unsubscribe from this group, send email to
> otb-users+unsubscr...@googlegroups.com
> 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 otb-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Manuel Grizonnet

-- 
-- 
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 otb-users@googlegroups.com
To unsubscribe from this group, send email to
otb-users+unsubscr...@googlegroups.com
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 otb-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to