04-16-2020 02:35 AM
Hi. I've a file which has it's BL coordinates in it's file name. I want to use this info to reference the file, but in order to do that I need to add 1 to the latitude. I've got the value as a string; how do I convert this to an integer / float so that I can add 1? Thanks, Johnnie
Solved! Go to Solution.
04-16-2020 03:07 AM
And, of course, there's the From String operator, while I've been trying to bludgeon my way through with the Convert operator.
Just by the by, it would be handy in the help to have the list of suitable data types written out with those operators that have a free form field to add the data types. I always forget the format and have to go hunting for tables like this:
Parmaeter Suffix | Spatial Modeler Object Type |
_File | IMAGINE.File |
_Dir | IMAGINE.Directory |
_Bool | IMAGINE.Bool |
_Int | IMAGINE.Int |
_Double | IMAGINE.Double |
_Str | IMAGINE.String |
_Scalar | IMAGINE.Scalar |
04-16-2020 08:56 AM
From String operator to an IMAGINE.Double
04-16-2020 08:57 AM
04-16-2020 12:23 PM
Yup, I thought that should work as well...
04-16-2020 01:08 PM
Strings are weird and have to be dealt with differently.