GIAPI
This object provides some utility methods and a single global variable for all the objects of this API
Item Index
Methods
- clone static
- emptyResultSet static
- formatWords static
- isoDateTime static
- mergeConstraints static
- random static
- spaces static
- thousandsSeparator static
Properties
Methods
clone
-
object
Creates a clone of the given object
Parameters:
-
object
Objectthe object to clone
Returns:
the cloned object
emptyResultSet
-
[error]
Creates an empty ResultSet
Parameters:
-
[error]
Object optionalan optional error message
Returns:
an empty ResultSet
formatWords
-
string
Formats all the words in the given string
by capitalizing the first character of each word and
setting the lower case to the remaining characters
Parameters:
-
string
Stringthe words to format
Returns:
the formatted string
isoDateTime
()
static
Returns the current time in the ISO8601 format YYYY-MM-DDThh:mm:ss.mls
Returns:
the current time in the ISO8601 format YYYY-MM-DDThh:mm:ss.mls
mergeConstraints
-
constraints1
-
constraints2
Merges the given basic constraints and returns the merged ones
Parameters:
-
constraints1
Objectthe first constraints object to merge
-
constraints2
Objectthe second constraints object to merge
Returns:
the merged constraints
random
()
static
Returns a string of 16 random alphanumeric characters
Returns:
a string of 16 random alphanumeric characters
spaces
()
static
Returns a string of count
characters
Returns:
the formatted string
thousandsSeparator
-
integer
Formats the given integer number
inserting a '.' to separate the thousands
Parameters:
-
integer
String/Integerin integer number
Returns:
the formatted number as a string
Properties
[GIAPI.nameSpace.nameSpaceType='ISO19115']
String
static
Set the nameSpace option for retrieving full metadata (getRecordById) records. Default value: ISO19115. Other possible value is: BLUECLOUD If set before the creation of a ResultsMapWidget, it is used as value for the getRecordById (Full Metadata) option