Geometry Conversion

Activity

 geometry_conversion.png An OpenSpirit activity that can convert an input of Esri WKT (Well Known Text) into the corresponding OpenSpirit geometry type. The activity can also perform the reverse operation and convert an OpenSpirit geometry type into the corresponding Esri WKT.

 

Configuration

OpenSpirit Geometry Conversion Configuration Fields

Field Global Var? Optional? Description
Name No No User assigned name given to activity
Description No Yes User assigned description (optional)
Conversion Type No No Specifies the type of conversion to perform (e.g. Esri WKT to OpenSpirit geometry or OpenSpirit geometry to Esri WKT).
Geometry Type No Yes

Specifies the OpenSpirit geometry type to process. If the conversion type is Esri WKT to OpenSpirit geometry, the geometry type selected will show up on the activity's output panel. If the conversion type is OpenSpirit geometry to Esri WKT, the geometry type selected will show up on the activity's input panel.  

 

Input

See TIBCO ActiveMatrix BusinessWorks Process Design Guide for more information about mapping and transforming input data.

The input for the activity is the following.

Input Item Datatype Description
Parameters Complex Root element for all input elements
EsriWKT String This is the Esri WKT to turn into an OpenSpirit geometry. This element is only shown if the conversion type is Esri WKT to OpenSpirit geometry.
CRS OspCRS The coordinate system associated with the Esri WKT. This element is only shown if the conversion type is Esri WKT to OpenSpirit geometry.
Polygon/Point/LineString OspPolygon,
OspPoint,
OspLineString
This element is only shown if the conversion type is OpenSpirit geometry to Esri WKT. The geometry type drop down on the configuration panel determines the actual type that is rendered.

 

Output

The output for the activity is the following.

Output Item Datatype Description

OspOutput

Complex The root element for all output items for the activity.
Polygon/Point/LineString OspPolygon,
OspPoint,
OspLineString
If the conversion type is Esri WKT to OpenSpirit geometry, then this is the corresponding OpenSpirit geometry that the input Esri WKT was converted into. If the conversion type is OpenSpirit geometry to Esri WKT, then this is simply an echo of the input supplied. The geometry type drop down on the configuration panel determines the actual type that is rendered.    
EsriWKT String If the conversion type is OpenSpirit geometry to Esri WKT, then this is Esri WKT that the input OpenSpirit geometry was converted into. If the conversion type is Esri WKT to OpenSpirit geometry, then this is simply an echo of the input supplied.
CRS OspCRS If the conversion type is OpenSpirit geometry to Esri WKT, then this is the coordinate system associated with the input OpenSpirit geometry. If the conversion type is Esri WKT to OpenSpirit geometry, then this is simply an echo of the input supplied.

 

Error Output

The Error Output tab lists the possible exceptions that can be thrown by this activity.

Exception Thrown When ...

OspException

    msg

    msgCode

The geometry conversion could not be successfully executed.  
The msg element should contain some indication of the reason.
The error code (see list of possible  codes)