ENVIGeoJSON
This object is a wrapper around a GeoJSON representation that is stored as an IDL Hash. It is necessary for tasks such as the GeoJSONToROI task that require GeoJSON format.
GeoJSON is a geospatial format based on JSON code that is used for encoding geographic data structures. For more information, see the GeoJSON Format Specification.
ENVI does not validate the input GeoJSON code. As long as it is valid JSON code, it will work even thought it might not comply with the GeoJSON standard. See the GeoJSONLint web page for example code and for tools that validate GeoJSON code.
Example
Refer to the code example for the GeoJSONToROI task.
Syntax
Result = ENVIGeoJSON(GeoJSONHash)
Return Value
This routine returns a reference to an ENVIGeoJSON object.
Arguments
GeoJSONHash
A GeoJSON representation stored as an IDL Hash. See the code example for the GeoJSONToROI task. You can use the IDL JSON_Parse command around a JSON string as follows:
InputGeoJSON = ENVIGeoJSON(JSON_Parse(jsonString))
Methods
This routine inherits the same methods as the HASH object.
Properties
This routine inherits the same properties as the HASH object.
Version History
ENVI 5.4 |
Introduced |
API Version
4.2