hana_ml.spatial package

Spatial Package

This package contains specific spatial functions.

The following functions are available:

hana_ml.spatial.create_predefined_srs(connection_context, srid: int)

Creates a predefined spatial reference system. If a SRS is already installed, the function exits without action.

This functionality is only supported since HANA 2 SP05. For older systems the function will fail with an exception.

Parameters
connection_contextConnectionContext

A connection to the SAP HANA system.

sridint

The spatial reference id that shall be created.

hana_ml.spatial.is_srs_created(connection_context, srid: int) bool

Checks if a SRS is already created in the system.

Parameters
connection_contextConnectionContext

A connection to the SAP HANA system.

sridint

The spatial reference id that should be checked.

Returns
bool

True, if the SRS is already created, False if the SRS is not yet created.

hana_ml.spatial.get_created_srses(connection_context) DataFrame

Creates a dataframe containing all created SRSes in the system.

Parameters
connection_contextConnectionContext

A connection to the SAP HANA system.

Returns
DataFrame

Pandas dataframe with the created SRSes in the system.