Jump to content
  • Useful Geospatial Data Functions for Spotfire


    Data functions extend Spotfire in ways that users understand but without them having to write any code. On this page, you will find some geospatial data functions usable in Spotfire to extend its capabilities.

    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".

    Geoimage1.png.d9e9c94db433c698e4117ac04b55d6be.png

    >> Download

    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.

    >> Download

    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.

    Geoimage2.png.4c82ef240db18f11be22a7a3f6eb8ae1.png

    >> Download

    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.

    >> Download

    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`.

    GeoImage3.png.2dac81f8da4697739f24f60aae3ca3b3.png   GeoImage3b.png.5f37b5ee540106a7c80fe26d022a9124.png

    >> Download

    Transform Coordinate Reference System

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

    GeoImage4.jpeg.05d633302f330cfe2fe1fbb05460cfbf.jpeg

    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.

    >> Download

    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/.  

    >> Download

    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.

    >> Download

    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/.

    >> Download


    User Feedback

    Recommended Comments

    There are no comments to display.


×
×
  • Create New...