Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • otb otb
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 206
    • Issues 206
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 12
    • Merge requests 12
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Main Repositories
  • otbotb
  • Issues
  • #1606
Closed
Open
Issue created May 28, 2018 by Arthur Vincent@ArthurV

SampleAugmentation field list

Description

If a field with a string type is given in the list of excluded fields an error occurs.

Steps to reproduce

Samples_region_1_seed0_learn.sqlite

otbcli_SampleAugmentation -in Samples_region_1_seed0_learn.sqlite -field code -label 12 -samples 10 -exclude region code originfid tile_o -out Samples_region_1_seed0_learn_augmented.sqlite

(FATAL): itk::ERROR: ListViewParameter(0x12d6320): Value region not found in the list of choices: code, originfid, sentinel2_b2_20151230,...

But the field "region" exists.

In the application's code, only field with of integer or float type are consider -> otbSampleAugmentation.cxx, line 176 (which is consistent with the application purpose).

Adding fields with string type to the exclude field list could improve the use of the application, users could provide all field list without beforehand checking their type.

Assignee
Assign to
Time tracking