
PUBLIC SAP HANA Platform 2.0 SPS 05 Document Version: 1.1 – 2021-07-09 SAP HANA Spatial Reference company. All rights reserved. All rights company. affiliate THE BEST RUN 2021 SAP SE or an SAP SE or an SAP SAP 2021 © Content 1 SAP HANA Spatial Reference...................................................8 2 Introduction................................................................9 3 Spatial Data...............................................................10 3.1 Spatial Reference Systems (SRS) and Spatial Reference Identifiers (SRID)....................11 3.2 Units of Measure.............................................................13 3.3 Support for Spatial Data....................................................... 13 Supported Spatial Data Types and Their Hierarchy.................................. 13 Supported Import and Export Formats for Spatial Data............................... 17 Support for ESRI Shapefiles.................................................. 18 Multidimensional Support....................................................21 3.4 Zero Tolerance and Exact Computation Paradigm..................................... 23 3.5 Recommended Reading on Spatial Topics...........................................24 3.6 Working with Tables Containing Spatial Data.........................................25 Column Definition and Column Configuration......................................25 Create Spatial Columns (SQL)................................................ 30 Create a Table with Spatial Columns (SQL)........................................31 3.7 Spatial Data Type Syntax.......................................................32 3.8 Spatial Data Type Conversions...................................................33 3.9 Advanced Spatial Topics.......................................................33 How Flat-Earth and Round-Earth Representations Work.............................. 33 How Snap-to-Grid Impact Spatial Calculations.....................................35 How Polygon Ring Orientation Works............................................36 How Geometry Interiors, Exteriors, and Boundaries Work.............................36 How Spatial Comparisons Work................................................37 How Spatial Relationships Work............................................... 38 How Spatial Dimensions Work................................................ 40 3.10 SpatialShapes Table..........................................................40 4 Accessing and Manipulating Spatial Data.........................................42 4.1 ST_Geometry Type...........................................................42 ST_AlphaShape Method.....................................................44 ST_AlphaShapeAggr Method.................................................45 ST_AlphaShapeArea Method................................................. 47 ST_AlphaShapeAreaAggr Method..............................................48 ST_AlphaShapeEdge Method.................................................49 ST_AlphaShapeEdgeAggr Method..............................................51 SAP HANA Spatial Reference 2 PUBLIC Content ST_AsBinary Method.......................................................52 ST_AsEWKB Method.......................................................53 ST_AsEWKT Method.......................................................54 ST_AsGeoJSON Method.....................................................55 ST_AsSVG Method.........................................................56 ST_AsSVGAggr Method.....................................................57 ST_AsText Method.........................................................58 ST_AsWKB Method........................................................59 ST_AsWKT Method........................................................60 ST_Boundary Method.......................................................61 ST_Buffer Method.........................................................62 ST_Collect Method........................................................ 65 ST_CollectAggr Method.....................................................66 ST_ConcaveHull Method.................................................... 67 ST_ConcaveHullAggr Method.................................................70 ST_Contains Method....................................................... 71 ST_ConvexHull Method..................................................... 72 ST_ConvexHullAggr Method..................................................74 ST_CoordDim Method......................................................75 ST_CoveredBy Method......................................................76 ST_Covers Method.........................................................78 ST_Crosses Method........................................................79 ST_Difference Method...................................................... 81 ST_Dimension Method......................................................82 ST_Disjoint Method........................................................83 ST_Distance Method.......................................................85 ST_Envelope Method.......................................................87 ST_EnvelopeAggr Method................................................... 88 ST_Equals Method.........................................................89 ST_Force2D Method....................................................... 90 ST_Force3DM Method...................................................... 91 ST_Force3DZ Method.......................................................92 ST_Force4D Method....................................................... 92 ST_GeoHash Method.......................................................93 ST_GeomFromEWKB Method.................................................94 ST_GeomFromEWKT Method.................................................96 ST_GeomFromGeoHash Method...............................................97 ST_GeomFromGeoJSON Constructor...........................................98 ST_GeomFromText Method.................................................. 99 ST_GeomFromWKB Method.................................................101 ST_GeomFromWKT Method.................................................102 SAP HANA Spatial Reference Content PUBLIC 3 ST_GeometryType Method..................................................103 ST_Intersection Method....................................................104 ST_Intersects Method..................................................... 105 ST_IntersectsFilter Method..................................................106 ST_IntersectionAggr Method.................................................108 ST_IntersectsRect Method..................................................109 ST_IntersectsRectPlanar Method..............................................110 ST_InvalidReason Method...................................................111 ST_Is3D Method..........................................................112 ST_IsEmpty Method.......................................................113 ST_IsMeasured Method.....................................................114 ST_IsSimple Method.......................................................115 ST_IsValid Method........................................................ 115 ST_MMax Method.........................................................117 ST_MMin Method.........................................................118 ST_NumInteriorRing Method.................................................119 ST_NumInteriorRings Method................................................119 ST_OrderingEquals Method..................................................120 ST_Overlaps Method...................................................... 122 ST_PointFromGeoHash Method...............................................124 ST_Relate(ST_Geometry,CHAR(9)) Method......................................125 ST_Relate(ST_Geometry) Method.............................................126 ST_Rotate Method........................................................128 ST_Scale Method.........................................................129 ST_Simplify Method.......................................................130 ST_SRID Method.........................................................132 ST_SRID(INTEGER) Method.................................................132 ST_SnapToGrid Method....................................................134 ST_SymDifference Method..................................................135 ST_Touches Method.......................................................136 ST_Translate Method...................................................... 137 ST_Translate3D Method....................................................138 ST_Transform Method..................................................... 140 ST_Union Method.........................................................141 ST_UnionAggr Method.....................................................142 ST_VoronoiCell Method.....................................................143 ST_Within Method........................................................145 ST_WithinDistance Method..................................................147 ST_XMax Method.........................................................149 ST_XMin Method.........................................................150 ST_YMax Method.........................................................151 SAP HANA Spatial Reference 4 PUBLIC Content ST_YMin Method.........................................................152 ST_ZMax
Details
-
File Typepdf
-
Upload Time-
-
Content LanguagesEnglish
-
Upload UserAnonymous/Not logged-in
-
File Pages296 Page
-
File Size-