在Exasol中获得几何列的SRID(ST_SRID等效)

发布于 2025-02-01 02:27:42 字数 339 浏览 4 评论 0 原文

exasol 在其他dbms中类似:从采样中选择ST_SRID(GEOM)

是否有有效的解决方法来确定几何>几何>的SRID 柱子?到目前为止,我仅在解析 column_type 字符串中,来自 exa_user_columns 包含几何列的表的,这似乎有点笨拙...

It seems that there is no ST_SRID function in exasol like in other DBMS: SELECT ST_SRID(geom) FROM sampletable

Is there an efficient workaround to determine the SRID of a geometry column? So far I only had success in parsing the COLUMN_TYPE string from EXA_USER_COLUMNS of the table containing the geometry column, which seems a bit clumsy...

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

泪之魂 2025-02-08 02:27:42

在Exasol中没有特定功能。

除了使用 EXA_USER_COLUMNS 您还可以使用如果您使用的是Exasol 7.1。这是一个标量函数,返回其参数的数据类型。

例如:

create or replace table t(a geometry, b geometry(1), c geometry(2));
insert into t values (null,null,null);
select regexp_substr(typeof(a), '[\d]*'), regexp_substr(typeof(b), '[\d]*'),regexp_substr(typeof(c), '[\d]*') from t;

There is no specific function for this in Exasol.

Besides using EXA_USER_COLUMNS you can also use TYPEOF if you are using Exasol 7.1. This is a scalar function that returns the data type of it's argument.

For example:

create or replace table t(a geometry, b geometry(1), c geometry(2));
insert into t values (null,null,null);
select regexp_substr(typeof(a), '[\d]*'), regexp_substr(typeof(b), '[\d]*'),regexp_substr(typeof(c), '[\d]*') from t;
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文