Quantcast
Channel: SCN : Discussion List - SAP HANA Developer Center
Viewing all articles
Browse latest Browse all 6412

Is syntax description correct for CREATE SPATIAL REFERENCE SYSTEM

$
0
0

I do not understand CREATE SPATIAL REFERENCE SYSTEM

 

I want to create a new spatial reference system which is based on an EPSG srid, but I'd like to register it with a different SRS_ID.

View ST_SPATIAL_REFERENCE_SYSTEMS has columns SRS_ID and ORGANIZATION_COORDSYS_ID.

So how do I fill those columns with different values?

I can only create a new spatial reference system where SRS_ID and ORGANIZATION_COORDSYS_ID are the same...

 

I tried:

 

CREATE SPATIAL REFERENCE SYSTEM "Test My CS"

SRID 1213

LINEAR UNIT OF MEASURE "meter"

TYPE PLANAR

COORDINATE X BETWEEN 0 AND 400000

COORDINATE Y BETWEEN 0 AND 700000

DEFINITION 'HELLO WORLD'

ORGANIZATION "EPSG" IDENTIFIED BY 1212;

 

But that fails on SRID...

Could not execute 'CREATE SPATIAL REFERENCE SYSTEM "Test My CS" SRS_ID 1213 LINEAR UNIT OF MEASURE "meter" TYPE PLANAR ...'

SAP DBTech JDBC: [257]: sql syntax error: incorrect syntax near "SRS_ID": line 2 col 1 (at pos 48)

 

 

While the definition of the statement is. see : SAP HANA Spatial Reference - SAP Library

 

CREATE SPATIAL REFERENCE SYSTEM <srs-name>

[ srs-attribute ] [ srs-attribute ... ]

 

srs-attribute - (back to Syntax)

SRID <srs-id>

  | DEFINITION { <definition-string> | NULL }

  | ORGANIZATION

  { <organization-name> IDENTIFIED BY <organization-srs-id> | NULL }

  | TRANSFORM DEFINITION { <transform-definition-string> | NULL }

  | LINEAR UNIT OF MEASURE <linear-unit-name>

  | ANGULAR UNIT OF MEASURE { <angular-unit-name> | NULL }

  | TYPE { ROUND EARTH | PLANAR }

  | COORDINATE <coordinate-name>

  { UNBOUNDED | BETWEEN <low-number> AND <high-number> }

  | ELLIPSOID SEMI MAJOR AXIS <semi-major-axis-length>

  { SEMI MINOR AXIS <semi-minor-axis-length> |

  INVERSE FLATTENING <inverse-flattening-ratio> }

  | TOLERANCE { <tolerance-distance> | DEFAULT }

  | SNAP TO GRID { grid-size | DEFAULT }

  | AXIS ORDER axis-order

  | POLYGON FORMAT polygon-format

  | STORAGE FORMAT storage-format

 

grid-size - (back to srs-attribute)

DOUBLE : usually between 0 and 1

 

axis-order - (back to srs-attribute)

{ 'x/y/z/m' | 'long/lat/z/m' | 'lat/long/z/m' }

 

polygon-format - (back to srs-attribute)

  { 'CounterClockWise' | 'Clockwise' | 'EvenOdd' }

 

storage-format - (back to srs-attribute)

{ 'Internal' | 'Original' | 'Mixed' }


Viewing all articles
Browse latest Browse all 6412

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>