Working with Geographic Coordinate Location Details in Business Data Cloud – SAP Datasphere
Share

 

SAP| SAP Datasphere · How-To Guide
Location Intelligence · Data Engineering

Generate Geographic Coordinate Location Details with SAP Datasphere

A complete step-by-step guide to creating semantically enriched Geo-Coordinates columns in the Data Builder — turning raw latitude & longitude data into map-ready spatial points.

In today’s data-driven world, location intelligence is a critical dimension of analytics. Knowing where something happened — a sale, a delivery, a service event — often matters as much as knowing when or how. SAP Datasphere, SAP’s unified cloud-based data management platform, provides first-class support for spatial data through its built-in geo-coordinate column type, enabling teams to enrich their datasets with structured geographic point data directly in the Data Builder — no custom SQL required.

This guide walks you through the complete process of creating a Geo-Coordinates column within a Graphical View in SAP Datasphere. By the end, your dataset will contain a combined spatial point column (derived from separate latitude and longitude fields) that can be consumed by SAP Analytics Cloud geo maps, spatial SQL functions, and third-party geospatial tools.

Prerequisites

Before following the steps below, ensure the following conditions are met:

  • You have an active SAP Datasphere tenant and the necessary permissions to create views in the Data Builder.
  • Your source dataset already contains two numeric columns representing geographic coordinates: one for latitude (decimal degrees, e.g. 51.5074) and one for longitude (decimal degrees, e.g. -0.1278).
  • Both latitude and longitude columns store values in the WGS 84 coordinate reference system (EPSG:4326), which is the standard used by GPS and most web mapping services.
  • The data source has been imported or shared into your Datasphere space (e.g., as a local table, a remote table, or a Delta Share).

Note: If you are working with a Delta Share table (data shared via the Delta Sharing protocol), there is an important additional step required. See the ‘Known Issues and Tips’ section at the end of this guide.

What Is a Geo-Coordinates Column?

A Geo-Coordinates column in SAP Datasphere is a calculated column of the semantic type “Geo-Coordinates” (also referred to as a spatial point). It encodes a geographic location as a single structured value by combining the latitude and longitude into a HANA spatial ST_POINT geometry — the industry-standard representation for a two-dimensional point on the Earth’s surface.

Once created, this column unlocks powerful capabilities across the SAP ecosystem:

  • SAP Analytics Cloud geo maps can render data points on interactive maps directly from this column.
  • SAP HANA Cloud spatial functions (e.g., distance calculations, clustering, proximity queries) can operate on the column natively.
  • Downstream analytical models and stories benefit from a single, semantically correct spatial attribute rather than two raw numeric fields.
  • The column is exportable to standards-compliant formats such as GeoJSON and WKT (Well-Known Text).

Step-by-Step Guide

The following steps use the SAP Datasphere Data Builder’s Graphical View editor, which provides a visual, no-code interface for data modeling.

Step 1 — Open the Data Builder

Navigate to the Data Builder from the main SAP Datasphere menu. The Data Builder is where all data assets — tables, views, data flows, and entity-relationship models — are created and managed within your space.

image1.png

Step 2 — Create a New Graphical View

Click New Graphical View. A blank canvas opens in the editor. From the left-hand panel, locate your dataset that contains the latitude and longitude columns, then drag and drop it onto the canvas. This dataset becomes the source node of your view.

A Graphical View is SAP Datasphere’s visual data model editor. It allows you to join tables, add projections, apply filters, and define calculated columns using a drag-and-drop interface — all without writing SQL by hand. Behind the scenes, Datasphere generates the corresponding SQL query automatically.

image2.png

Step 3 — Generate Semantics with AI

Click on the source table node to select it, then choose Generate Semantics. This triggers Datasphere’s AI-assisted semantic enrichment, which analyses your column names, data types, and sample values to automatically propose semantic types.

When the panel appears, click Generate to run the analysis. Datasphere will examine each column and suggest semantic annotations — for example, identifying date fields, currency fields, and — crucially for this guide — geographic coordinate fields based on column names such as “LATITUDE”, “LAT”, “LONGITUDE”, or “LON”.

Tip: If Datasphere does not correctly identify your latitude or longitude columns automatically, you can manually set the semantic type for each column in the column properties panel. Ensure the latitude column is set to ‘Latitude’ and the longitude column to ‘Longitude’.

image3.png

Then choose the button “Generate”

image4.pngimage5.png

Step 4 — Add a Projection Node

Click on the view canvas (not the source node), then select the Projection option. A Projection node is added to the canvas and connected to your source dataset. The Projection node is where you will define your new Geo-Coordinates column — it acts as a transformation layer that can add, rename, or remove columns from the output.

image6.pngimage7.png

Step 5 — Open the Calculated Column Dialog

With the Projection node selected, click on it to open its properties panel. Navigate to the Details tab to see the list of columns that are currently projected (i.e., passed through) from your source dataset.

image7.png

Click the Add button (the + icon) in the column list. A dropdown or dialog appears offering several column types. Select Geo-Coordinates.

image8.pngimage9.png

Step 6 — Configure the Geo-Coordinates Column

The Geo-Coordinates column configuration dialog opens. In this dialog, you will:

  • Assign the Latitude source: select the column from your dataset that holds the latitude values (e.g., LAT, LATITUDE, Y_COORD).
  • Assign the Longitude source: select the column that holds the longitude values (e.g., LON, LONGITUDE, X_COORD).
  • Preview the new column: the dialog shows a sample of the resulting spatial point values based on your data.

Rename the column (optional but recommended): provide a meaningful business name such as LocationGeoCoordinates, GeoPoint, or SpatialLocation. This name will appear in downstream analytical tools.

Important: Latitude values must be in the range -90 to +90, and longitude values must be in the range -180 to +180. If your data uses a different unit or projection system (e.g., meters in a national grid), you must first convert the coordinates to WGS 84 decimal degrees before Datasphere can correctly process them.

image10.pngimage11.png

Step 7 — Save the View

Once you have configured the Geo-Coordinates column, save the view. Click Save (or the floppy disk icon) and provide a meaningful, business-friendly name for your view, for example: V_Customer_Locations or GV_StoreGeoPoints. Click Confirm to finalise.

Naming conventions matter in SAP Datasphere: prefixes such as V_ (view), GV_ (graphical view), or LV_ (local view) help other users in your space quickly identify the type and purpose of a data asset.

image12.pngimage13.png

Step 8 — Verify in Data Preview

After saving, open the Data Preview for your new view. You should see the new Geo-Coordinates column alongside your original latitude and longitude columns. The spatial point values will appear in a structured format representing the combined coordinate (e.g., as WKT such as POINT (8.6821 50.1109) for a location in Frankfurt, Germany).

At this point, the view is ready to be deployed and consumed. Deploy the view to make it available for consumption by SAP Analytics Cloud stories, other SAP Datasphere models, or any application connecting via the OData or JDBC/ODBC interfaces.

image14.pngimage15.png

Step 8 — View Geospatial Data loaded in SAP Analytics Cloud

image16.png

Known Issues and Tips

Delta Share Tables — Deploy Before Adding Calculated Columns

If your source dataset is a Delta Share table (data shared via the open Delta Sharing protocol, often originating from Databricks or other Delta Lake-compatible systems), you may encounter an exception when attempting to add the Geo-Coordinates calculated column directly.

This is a known limitation: Delta Share tables are read-only remote sources, and the Datasphere query engine requires a deployed, persisted snapshot of the view before it can evaluate a calculated column against the remote data. The workaround is straightforward:

  • Create and save your Graphical View first, without the Geo-Coordinates column.
  • Deploy the view (click Deploy) so that Datasphere materializes or registers the view against the Delta Share source.
  • Once the deployment succeeds, return to the view definition and add the Geo-Coordinates calculated column as described in Steps 5 and 6.
  • Save and re-deploy the view to apply the change.

SAP Internal — SAP Datasphere Documentation

 

  SAP| SAP Datasphere · How-To GuideLocation Intelligence · Data EngineeringGenerate Geographic Coordinate Location Details with SAP DatasphereA complete step-by-step guide to creating semantically enriched Geo-Coordinates columns in the Data Builder — turning raw latitude & longitude data into map-ready spatial points.In today’s data-driven world, location intelligence is a critical dimension of analytics. Knowing where something happened — a sale, a delivery, a service event — often matters as much as knowing when or how. SAP Datasphere, SAP’s unified cloud-based data management platform, provides first-class support for spatial data through its built-in geo-coordinate column type, enabling teams to enrich their datasets with structured geographic point data directly in the Data Builder — no custom SQL required.This guide walks you through the complete process of creating a Geo-Coordinates column within a Graphical View in SAP Datasphere. By the end, your dataset will contain a combined spatial point column (derived from separate latitude and longitude fields) that can be consumed by SAP Analytics Cloud geo maps, spatial SQL functions, and third-party geospatial tools.PrerequisitesBefore following the steps below, ensure the following conditions are met:You have an active SAP Datasphere tenant and the necessary permissions to create views in the Data Builder.Your source dataset already contains two numeric columns representing geographic coordinates: one for latitude (decimal degrees, e.g. 51.5074) and one for longitude (decimal degrees, e.g. -0.1278).Both latitude and longitude columns store values in the WGS 84 coordinate reference system (EPSG:4326), which is the standard used by GPS and most web mapping services.The data source has been imported or shared into your Datasphere space (e.g., as a local table, a remote table, or a Delta Share).Note: If you are working with a Delta Share table (data shared via the Delta Sharing protocol), there is an important additional step required. See the ‘Known Issues and Tips’ section at the end of this guide.What Is a Geo-Coordinates Column?A Geo-Coordinates column in SAP Datasphere is a calculated column of the semantic type “Geo-Coordinates” (also referred to as a spatial point). It encodes a geographic location as a single structured value by combining the latitude and longitude into a HANA spatial ST_POINT geometry — the industry-standard representation for a two-dimensional point on the Earth’s surface.Once created, this column unlocks powerful capabilities across the SAP ecosystem:SAP Analytics Cloud geo maps can render data points on interactive maps directly from this column.SAP HANA Cloud spatial functions (e.g., distance calculations, clustering, proximity queries) can operate on the column natively.Downstream analytical models and stories benefit from a single, semantically correct spatial attribute rather than two raw numeric fields.The column is exportable to standards-compliant formats such as GeoJSON and WKT (Well-Known Text).Step-by-Step GuideThe following steps use the SAP Datasphere Data Builder’s Graphical View editor, which provides a visual, no-code interface for data modeling.Step 1 — Open the Data BuilderNavigate to the Data Builder from the main SAP Datasphere menu. The Data Builder is where all data assets — tables, views, data flows, and entity-relationship models — are created and managed within your space.Step 2 — Create a New Graphical ViewClick New Graphical View. A blank canvas opens in the editor. From the left-hand panel, locate your dataset that contains the latitude and longitude columns, then drag and drop it onto the canvas. This dataset becomes the source node of your view.A Graphical View is SAP Datasphere’s visual data model editor. It allows you to join tables, add projections, apply filters, and define calculated columns using a drag-and-drop interface — all without writing SQL by hand. Behind the scenes, Datasphere generates the corresponding SQL query automatically.Step 3 — Generate Semantics with AIClick on the source table node to select it, then choose Generate Semantics. This triggers Datasphere’s AI-assisted semantic enrichment, which analyses your column names, data types, and sample values to automatically propose semantic types.When the panel appears, click Generate to run the analysis. Datasphere will examine each column and suggest semantic annotations — for example, identifying date fields, currency fields, and — crucially for this guide — geographic coordinate fields based on column names such as “LATITUDE”, “LAT”, “LONGITUDE”, or “LON”.Tip: If Datasphere does not correctly identify your latitude or longitude columns automatically, you can manually set the semantic type for each column in the column properties panel. Ensure the latitude column is set to ‘Latitude’ and the longitude column to ‘Longitude’.Then choose the button “Generate”Step 4 — Add a Projection NodeClick on the view canvas (not the source node), then select the Projection option. A Projection node is added to the canvas and connected to your source dataset. The Projection node is where you will define your new Geo-Coordinates column — it acts as a transformation layer that can add, rename, or remove columns from the output.Step 5 — Open the Calculated Column DialogWith the Projection node selected, click on it to open its properties panel. Navigate to the Details tab to see the list of columns that are currently projected (i.e., passed through) from your source dataset.Click the Add button (the + icon) in the column list. A dropdown or dialog appears offering several column types. Select Geo-Coordinates.Step 6 — Configure the Geo-Coordinates ColumnThe Geo-Coordinates column configuration dialog opens. In this dialog, you will:Assign the Latitude source: select the column from your dataset that holds the latitude values (e.g., LAT, LATITUDE, Y_COORD).Assign the Longitude source: select the column that holds the longitude values (e.g., LON, LONGITUDE, X_COORD).Preview the new column: the dialog shows a sample of the resulting spatial point values based on your data.Rename the column (optional but recommended): provide a meaningful business name such as LocationGeoCoordinates, GeoPoint, or SpatialLocation. This name will appear in downstream analytical tools.Important: Latitude values must be in the range -90 to +90, and longitude values must be in the range -180 to +180. If your data uses a different unit or projection system (e.g., meters in a national grid), you must first convert the coordinates to WGS 84 decimal degrees before Datasphere can correctly process them.Step 7 — Save the ViewOnce you have configured the Geo-Coordinates column, save the view. Click Save (or the floppy disk icon) and provide a meaningful, business-friendly name for your view, for example: V_Customer_Locations or GV_StoreGeoPoints. Click Confirm to finalise.Naming conventions matter in SAP Datasphere: prefixes such as V_ (view), GV_ (graphical view), or LV_ (local view) help other users in your space quickly identify the type and purpose of a data asset.Step 8 — Verify in Data PreviewAfter saving, open the Data Preview for your new view. You should see the new Geo-Coordinates column alongside your original latitude and longitude columns. The spatial point values will appear in a structured format representing the combined coordinate (e.g., as WKT such as POINT (8.6821 50.1109) for a location in Frankfurt, Germany).At this point, the view is ready to be deployed and consumed. Deploy the view to make it available for consumption by SAP Analytics Cloud stories, other SAP Datasphere models, or any application connecting via the OData or JDBC/ODBC interfaces.Step 8 — View Geospatial Data loaded in SAP Analytics CloudKnown Issues and TipsDelta Share Tables — Deploy Before Adding Calculated ColumnsIf your source dataset is a Delta Share table (data shared via the open Delta Sharing protocol, often originating from Databricks or other Delta Lake-compatible systems), you may encounter an exception when attempting to add the Geo-Coordinates calculated column directly.This is a known limitation: Delta Share tables are read-only remote sources, and the Datasphere query engine requires a deployed, persisted snapshot of the view before it can evaluate a calculated column against the remote data. The workaround is straightforward:Create and save your Graphical View first, without the Geo-Coordinates column.Deploy the view (click Deploy) so that Datasphere materializes or registers the view against the Delta Share source.Once the deployment succeeds, return to the view definition and add the Geo-Coordinates calculated column as described in Steps 5 and 6.Save and re-deploy the view to apply the change.SAP Internal — SAP Datasphere Documentation Read More Technology Blog Posts by SAP articles 

#SAPCHANNEL

By ali

Leave a Reply