TIBCO Location Analytics: Mapping, Computational Geoanalytics and Spatial Statistics with TIBCO Spotfire® and TIBCO® Data Science

Last updated:
1:14pm Apr 03, 2020

 

Sample Spotfire Map Charts visualizations.

Sample Spotfire Map Charts visualizations. Click for detailed gallery.

Overview

TIBCO's Location Analytics capabilities include visual analytics in TIBCO Spotfire®, geocoding and itineraries from TIBCO® GeoAnalytics, and calculations done in TIBCO® Data Science via TIBCO Spotfire's data function, and displayed on the TIBCO Spotfire® map chart.

TIBCO Spotfire®'s data function capability can invoke TIBCO Data Science templates from both TIBCO® Data Science - Workbench and TIBCO® Data Science - Team Studio, as well as open source R, Python and TIBCO's Enterprise Runtime for R (TERR) which is a scalable R engine built by TIBCO from the ground up. TERR is embedded in Spotfire analyst client and runs as a service configurable from the TIBCO Spotfire Server.

TIBCO Spotfire®'s map charts can display multiple layers of information.  These layers can include points, lines, WKB objects like shapefiles and polylines, and TMS and WMS layers that show e.g. geology, live weather, or customized image, terrain, or other information. The ordering of these layers can be re-arranged to control which features appear in front of others.   The transparency of individual layers can also be controlled; also, each layer can be configured to only be visible at certain zoom levels.  For example, a map can be configured so that as you zoom in, new layers become visible and other layers would disappear.   Map layers with points, lines, and WKB  objects can be configured to respond to marking.  Points, lines, or WKB objects on a map that are marked and refreshed by a data function provide a convenient round-trip means of interacting with data and calculations using the map interface.  Some examples of templates that include TIBCO Data Science functionality include interactive contour lines, heatmaps, polygons, territory calculations, and route optimization. These templates are available for download from the TIBCO Exchange

 

TIBCO Spotfire® Maps - Using Data Science algorithms with Location Analytics

TIBCO Spotfire®'s map visualization capabilities provides spatial visualization and analytics for everyone.  You can visualize multiple types of data (point locations, shapefiles, WMS, TMS) through multiple layers in a single map visualization.   

You can invoke algorithms written in R, Python and TIBCO® Data Science under the hood to perform calculations both within and between your map's data layers.   These calculations can produce additional map layers to illustrate results such as contours, heatmaps, optimal driving routes, territories.   These layers are dynamically linked to the underlying Data Science algorithm and can respond to marking and filtering of the map, providing powerful interactive location analytics.

These capabilities are invoked using data functions.  Examples of data functions that you can download from our TIBCO®  Exchange and try yourself are listed below.   You can also create your own new data functions in R, Python and TIBCO® Data Science to drive new map visualization capabilities or general results in TIBCO Spotfire®.

Overview

Videos

 

Next Steps with Spotfire Location Analytics

Webinars, Articles and Dr. Spotfire

Creating custom Shapefiles for Spotfire

Create custom Shapefiles for Spotfire, to overlay any background image.  Learn how to use open source QGIS software to digitize an image, then use the image as a background in a Spotfire visualization together with the new clickable shapefile that appears on top of the image.

Optimizing Supply through Location Analytics

Location Analytics represent a major opportunity to better organize resources and gain a more cost-effective and market-sensitive flow of goods. Applying equally to manufacturers, distributors and retailers, the combination of user-friendly, map-based data visualization paired with sophisticated statistical techniques has delivered a breakthrough in logistical planning and the ability to quickly react to changing patterns of demand, demography and even weather.

Analytics Meetups

 

More Topics using Spotfire Location Analytics

Using Geocoding

Spotfire automatically places markers if you data contains geographic coordinates (latitude and longitude). If your data contains no geographic coordinates, Spotfire places markers or features based on the recognized administrative boundary where Spotfire can display most of your data. Spotfire support world level boundaries and country level boundaries.

Expanding Spotfire list of supported boundaries

In the case your desired administrative boundaries are not supported, you can still expand Spotfire coverage using public data or your own data.

Using Coordinate Reference Systems (CRS)

Spotfire can display data with geographical coordinates (latitude, longitude) or (x, y) data specified a projected coordinate reference systems (CRS). The CRS dialog is available for each layer within a Map Chart visualization so that layers with different CRS can be mixed and matched.

The list of available CRS in the CRS dialog is divided in two broad categories:

  • Geographical Coordinate Reference Systems: Data is defined as a 3D surface and measured in latitude and longitude. These specify the underlying reference ellipsoïd that the latitude and longitude values references. An example would be WGS84 or North American Datum 1983 (NAD83).
  • Projected Coordinate Reference Systems: Data is defined by a flat 2D surface and measured in units of meters and feet. It combines underlying Geographical CRS and a transformation to a flat plane for producing the map. Often data such as a Shapefile uses x,y coordinates specified in meters or feet from some local reference, that has been produced through a projection (e.g. Universal Transverse Mercator, Polar, or a State Plane projection). This combination is referenced with an EPSG code that can be looked up in the Spotfire CRS dialog. Shapefiles are very commonly used; to use these, you will need both the underlying Geographic Coordinate System (e.g. NAD27) plus the specific UTM projection used, usually given through a Zone number.

Transforming CRS

Using Image Layer

Spotfire enables adding any image to a map visualization and put markers specified by coordinates on the image. You can map data over zoomable and draggable images to visualize geographical data or non-geographical data such as human body maps, wafer chips and semiconductors schematic maps, process diagram maps and many more...

Extending Spotfire Map Visualizations

Voronoi Polygons

Download from Community Exchange

User's Guide for Voronoi Polygons Data Function

Voronoi polygons let you represent point data with polygons that fill (tesselate) an area.  When fewer polygons than data points are used, the polygons represent aggregated values and can provide reduction in variability.  Two use cases are illustrated: The first use case aggregates measurements at point locations to a static visualization. The second use case calculates Voronoi polygons with an index to the original data. This second case lets the user adjust filters and observe the tile colors adjust in response.

Heatmaps

Heatmap in Spotfire

Download from Community Exchange

Heatmaps are useful in providing a high level summary to visualize overall patterns in spatial data. Studying raw point data for patterns can be difficult owing to uneven spatial coverage, and random variability in the values. Heatmaps start by calculating a smoothly varying surface to represent the data. This surface is represented by a colored heatmap and contours.

Densities

Densities in Spotfire

Download from Community Exchange

Density plots are useful in providing a high level summary to visualize overall patterns in the density of spatial data, much like a two-dimensional histogram density. Studying raw point data for patterns can be difficult owing to uneven spatial coverage. Density plots start by the calculation of a smoothly varying surface to represent the density of the data. This surface is represented by a colored heatmap and contours.

Contours

Contours in Spotfire

Download from Community Exchange

This Data Function generates a contour plot as a feature layer on a map chart.  The download contains a data function you can import into your own .dxp and a template you can bring your own data into.

Hexbin

Hexbin in Spotfire

Download from Community Exchange

Two-dimensional binning with hexagonally-arranged bins of (x,y) inputs. Useful in Spotfire for simplifying an (x,y) scatter plot with a large number of points. Returns the count of the incoming points in these bins. Additionally if an optional value column is also provided, it also returns the mean value in the bins. The results can be used in a Spotfire scatter plot visualization that serves as a heat map of the density of points. Also if the optional 3rd value is used, a Spotfire scatter plot visualization can be constructed for the mean value across cells. This data function serves as a wrapper for the functionality contained in the hexbin R package.

Points in Polygons

Points in polygons in Spotfire

Download from Community Exchange

For each point in a table of locations defined by Latitude and Longitude coordinates, identify its corresponding enclosing polygon contained in a separate table. Returns a column that contains the enclosing polygon identifier to append to the point location table.

Useful Data Functions

A collection of useful data functions has been developed which can perform a variety of tasks such as transform the Coordinate Reference System (CRS) used by point data or a shapefile, either by EPSG code or PROJ.4 string, see full collection here.

Geo-enable data with TIBCO GeoAnalytics

TIBCO GeoAnalytics is a cloud based, high performance and scalable geospatial technology to geo-enable data and develop location based applications.

Geocode data at address level precision

Geocoding is the process of translating physical addresses into latitudes and longitudes (forward geocoding) or translating latitudes and longitudes to physical addresses (reverse geocoding) in order to enable your data to be displayed and analyzed in a geographic context (in a Spotfire map visualization).

TIBCO GeoAnalytics enables geocoding large datasets worldwide with address precision using:

  • Geocoder API: Transforms an address to latitude and longitude coordinates
  • Reverse Geocoder API: Transforms latitude and longitude coordinates to addresses
  • Batch Geocoder API: A batch geocoder request where addresses are specified in an array. Both forward and reverse geocoding methods are accepted by the service and can be mixed.

Compute distances, routes and optimized routes

TIBCO GeoAnalytics enables loading an itinerary or computing distance between two points or between many waypoints. In the case of an itinerary with multiple way points, the service will automatically compute the fastest route to take to go to each way point with a define or non-defined start point.

Find locations by distance or time-to-go

TIBCO GeoAnalytics enables to calculate and render the maximum area around a location for given time-to-go or for a given distance. This allows us to find locations by route distance or amount of time it will take to walk or drive to.

Embed maps in your own custom applications

TIBCO GeoAnalytics offers a free JavaScript Library (GeoAnalytics.js) to publish maps on your own custom applications and visualize spatial data over it.

Content Manager

TIBCO GeoAnalytics Content Manager enables geocoding of data with street level precision by importing a table containing addresses or by geocoding addresses manually. You load the data to be geocoded and then visualize it on top of the map.

 

Other Links

TIBCO Community Wiki Articles

TIBCO Blog

  Back to TIBCO Spotfire® Community Wiki

Feedback (2)

These maps are great! 

Max Myrick 1:39pm Apr. 12, 2017

wow !! awesome update

Michael OConnell 9:49am Apr. 11, 2017