# Output

The output from Spatial Calculator depends on the type of calculation.

## Area

This operation returns the area of the geometry, in the units specified (output type is double).

## Buffer

This operation returns a geometry representing the buffered shape.

## Convex Hull

This operation returns a geometry representing the shape with a convex hull calculation applied.

## Coordinate System Transform

This operation returns a geometry in the coordinate system specified.

## Create Line Geometry

This operation returns a line geometry.

## Create Point Geometry

This operation returns a point geometry (output type is double).

## Create Polygon

This operation returns a polygon.

## Difference

This operation returns the geometry portions of the first geometry that are not common with the second geometry. The resulting geometry is what remains of the first geometry after the second has been removed.

## Distance

This operation returns the distance in the units specified (output type is double).

## Distance To Edge

This operation returns the geographic distance between two geometries in the units specified (output type is double).

## Envelope

This operation returns a geometry

## Envelope Coordinates

This operation returns the latitude/longitude coordinates for the lower left and upper right corners of the envelope (output type is double).

## From GeoJSON

Converts the specified GeoJSON string to a Spectrum Spatial geometry instance.

## From KML

Converts the specified KML string to a Spectrum Spatial geometry instance.

## From WKT

Converts the specified WKT string to a Spectrum Spatial geometry instance.## Get Centroid

This operation returns the coordinates of the centroid of the geometry object (output type is double).

## Intersection

This operation returns one or two kids of information:

- Geometry—The geometry of the area of intersection
- Percentage overlap—The percentage of the first geometry that overlaps with the second. This information is only returned if you choose to return it (output type is double).

## Is Intersection

Returns "Y" if the two geometries intersect and "N" if they do not.

## Is Line

Returns "Y" if the geometry is a line and "N" if it is not.

## Is Point

Returns "Y" if the geometry is a point and "N" if it is not.

## Is Polygon

Returns "Y" if the geometry is a polygon and "N" if it is not.

## Is Valid Geometry

Returns a Boolean value indicating whether the supplied geometry is valid according to the geometry type.

## Is Within

Returns "Y" if the first geometry is contained within the second and "N" if it is not.

## Length

Returns the length of the geometry in the units specified.

## Perimeter

Returns the length of the perimeter in the units specified.

## Symmetric Difference

Returns the symmetrical difference of the two supplied geometries (that part of both geometries that do not intersect).

## To GeoJSON

Converts a Spectrum Spatial geometry instance to a GeoJSON string.

## To KML

Converts a Spectrum Spatial geometry instance to a KML string.

## To WKT

Converts a Spectrum Spatial geometry instance to a WKT string.