SAP Home Learn Build Integrate Model Operate Extend with AI ConnectTutorial navigator Knowledge Graph API Devtoberfest Developer Advocates App Space

Manage my Account SAP Devs YouTube ↗ Learnings ↗ Community ↗ Provide Feedback ↗
Logout
โคข Open full site

Understand Z and M coordinates in SAP HANA Spatial

Geometries can optionally have Z (3rd dimension) and M (measure) values associated with each point in addition to X and Y coordinates

Overview

🎓 beginner 10 min. SAP HANABeginnerSqlSAP HANA CloudExpress EditionSAP HANA SpatialSAP HANA Multi Model Processing
Markus Fath M Markus Fath February 7, 2023
Created by February 9, 2017
Contributors

Prerequisites

Prerequisites

Steps

Step 1 Introducing Z and M coordinates
โ€”

All geometries have at least two coordinate dimensions: the X and Y defining 2D coordinates of each point. For geographic spatial reference systems, these are the latitude and longitude of a point.

Geometries can optionally have Z and / or M values associated with each point in the geometry. The Z value introduces the third dimension coordinate. The Z value usually is used to indicate the height, or elevation.

The measure value M can be used to record additional non-coordinate values at various points within a geometry. The M value is most often used in geometries with the linear reference system, e.g. where M stores a distance value from a defined starting point.

The following dimension types are supported by SAP HANA:

  • 2D dimension (X, Y)
  • 2D dimension with measure (X, Y, M)
  • 3D dimension (X, Y, Z)
  • 3D dimension with measure (X, Y, Z, M)

Important to note that these Z and M coordinate values can be used to store additional information, but are not considered when computing spatial relations or set operations.

Step 2 Optional coordinates in geometries' constructors
+
Step 3 Storing and retrieving spatial data with Z and M
+
Step 4 Processing spatial data with Z and M
+
Step 5 Optional
+

Resources

Discussion

Share feedback on this tutorial or join the conversation in SAP Community.

Submit detailed feedback Discuss in Community
Steps
Step 1 of 5
1. Introducing Z and M coordinates 2. Optional coordinates in geometries' constructors 3. Storing and retrieving spatial data with Z and M 4. Processing spatial data with Z and M 5. Optional

Learn more →