For an overall overview of the GeoAnalytics or Location Analytics capabilities of Spotfire please also review this page.

## Calculate areas of polygons

A data function that calculates the areas of polygons. The polygons must be specified in longitude/latitude coordinates. Requires the R packages "sp", "geosphere", "wkb", and "rgdal".

## Convert polygon coordinates to polygon geometries

A data function that inputs a table of coordinates representing polygons, and outputs a table with the polygons in the format native to Spotfire, for rendering in a Feature Layer on a Map Chart. Enables tables representing polygons to be rendered on maps in Spotfire.

## Draw circle with fixed radius on geographic coordinates

A data function to draw circles with a fixed radius on a Spotfire map. The centers of the circles are specified by columns of geographic coordinates. The radius of the circles is given as a single value. The circle must be added as a Feature Layer using the coordinate reference system EPSG:4326 - WGS84.

## Draw rectangles with fixed size on geographic coordinates

A data function to draw rectangles with fixed width and height on a Spotfire map. The centers of the rectangles are specified by columns of geographic coordinates. The width and height of the rectangles are given as a single pair of fixed values. The rectangles must be added as a Feature Layer using the coordinate reference system EPSG:4326 - WGS84.

## Find which marker(s) are located in a polygon

A data function that inputs a set of polygons and a set of points, and outputs which polygon each point is in. Requires the R packages `sp` and `wkb`.

## Transform Coordinate Reference System

Data functions that convert an imported Shapefile (.shp) or columns of geographic coordinates from one coordinate reference system to another.

## Transform CRS for imported shapefile (.shp) by EPSG code

A data function that converts an imported shapefile from one coordinate reference system to another, using EPSG codes to specify the reference systems. Requires the R packages `sp`, `rgdal`, and `wkb`. Note that the environment variable GDAL_DATA must be set to the location of the gdal folder in the rgdal folder in the library folder where TERR is installed. EPSG codes can be looked up from the .prj files in shapefiles at https://prj2epsg.azimap.com/search.

## Transform CRS for imported shapefile (.shp) by PROJ.4 string

A data function that converts an imported shapefile from one coordinate reference system to another, using PROJ.4 strings to specify the reference systems. Requires the R packages `sp`, `rgdal`, and `wkb`. For some PROJ.4 strings, require the environment variable PROJ_LIB to be set to the location of the proj folder in the rgdal folder in the library folder where TERR is installed. PROJ.4 strings can be looked up at http://spatialreference.org/.

## Transform CRS for markers by EPSG code

A data function that converts columns of geographic coordinates from one reference system to another, using EPSG codes to specify the reference systems. Requires the R packages `sp` and `rgdal`. Note that the environment variable GDAL_DATA must be set to the location of the gdal folder in the rgdal folder in the library folder where TERR is installed. EPSG codes can be looked up from the .prj files in shapefiles at https://prj2epsg.azimap.com/search.

## Transform CRS for markers by PROJ.4 string

A data function that converts columns of geographic coordinates from one reference system to another, using PROJ.4 strings to specify the reference systems. Requires the R packages `sp` and `rgdal`. For some PROJ.4 strings, require the environment variable PROJ_LIB to be set to the location of the proj folder in the rgdal folder in the library folder where TERR is installed. PROJ.4 strings can be looked up at http://spatialreference.org/.

## Recommended Comments

There are no comments to display.