Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Applies to:
Databricks SQL
Databricks Runtime 17.1 and above
Important
This feature is in Public Preview.
Note
This feature is not available on Databricks SQL Classic warehouses. To learn more about Databricks SQL warehouses, see SQL warehouse types.
Parses the Extended WKB (EWKB) description of a geometry and returns the corresponding GEOMETRY value.
The SRID value of the returned GEOMETRY value is the one prescribed in the EWKB description, or 0 if there is no SRID value in the EWKB description.
Syntax
st_geomfromewkb ( ewkbExpr )
Arguments
ewkbExpr: ABINARYvalue, representing a geometry in Extended WKB (EWKB) format.
Returns
A value of type GEOMETRY(ANY), corresponding to the input Extended WKB (EWKB) description.
The function returns NULL if the input is NULL.
Error conditions
- If the value of
ewkbExpris an invalid Extended WKB (EWKB) description, the function returns EWKB_PARSE_ERROR.
Examples
-- Simple example.
> SELECT st_asewkt(st_geomfromewkb(X'0101000060E6100000000000000000244000000000000041400000000000003740'));
SRID=4326;POINT M (10 34 23)
Related functions
st_asbinaryfunctionst_asewkbfunctionst_asewktfunctionst_asgeojsonfunctionst_astextfunctionst_geogfromgeojsonfunctionst_geogfromtextfunctionst_geogfromwkbfunctionst_geomfromgeojsonfunctionst_geomfromtextfunctionst_geomfromwkbfunctionto_geographyfunctionto_geometryfunctiontry_to_geographyfunctiontry_to_geometryfunction