MantisBT

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0001440Orfeo Toolbox (OTB)Generalpublic2017-07-12 10:442017-07-12 10:44
Reportermarineb 
Assigned To 
PrioritynormalSeverityminorReproducibilityalways
StatusnewResolutionopen 
PlatformOSOS Version
Summary0001440: Need to force string cast on SetParameterString method in python
DescriptionIn each case, when i need to set a parameter on SetParameterString(param, value) resulting form os.path.join, glob, ... , i need to cast explicitely the result with str().


I work on the cluster, with lis/1.2 which works with otb/5.10
Steps To ReproduceFor exemple :
olygonClassStatistics = otbApplication.Registry_CreateApplication("PolygonClassStatistics")
With :
PolygonClassStatistics.SetParameterString("vec", str(op.join(data_path, "Masks", "training.shp"))) works
PolygonClassStatistics.SetParameterString("vec", /work/OT/siaa/Stages/2017_snow/classification/SPOT7_MS_20170119/data/Masks/training.shp") works
But not :
PolygonClassStatistics.SetParameterString("vec", op.join(data_path, "Masks", "training.shp"))
Additional InformationMessage Error :
    PolygonClassStatistics.SetParameterString("vec", op.join(data_path, "Masks", "training.shp"))
  File "/work/logiciels/otb/rh7/5.10/lib/otb/python/otbApplication.py", line 1633, in SetParameterString
    return _otbApplication.Application_SetParameterString(self, parameter, value, hasUserValueFlag)
NotImplementedError: Wrong number or type of arguments for overloaded function 'Application_SetParameterString'.
  Possible C/C++ prototypes are:
    Application::SetParameterString(std::string,std::string,bool)
    Application::SetParameterString(std::string,std::string)
TagsNo tags attached.
Attached Files

- Relationships

-  Notes
There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
2017-07-12 10:44 marineb New Issue


Copyright © 2000 - 2017 MantisBT Team
Powered by Mantis Bugtracker