ArcGIS Desktop

  • 文档
  • 支持

  • My Profile
  • 帮助
  • Sign Out
ArcGIS Desktop

ArcGIS Online

专为贵组织打造的制图平台

ArcGIS Desktop

全面的专业性 GIS

ArcGIS Enterprise

面向企业的 GIS

ArcGIS for Developers

用于构建位置感知应用程序的工具

ArcGIS Solutions

适用于行业的免费模板地图和应用程序

ArcGIS Marketplace

获取适用于组织的应用程序和数据

  • 文档
  • 支持
Esri
  • 登录
user
  • 我的个人资料
  • 登出

ArcMap

  • 主页
  • 入门
  • 地图
  • 分析
  • 管理数据
  • 工具
  • 扩展模块

ST_PointFromText

  • 定义
  • 语法
  • 返回类型
  • 示例
注:

仅适用于 Oracle 和 SQLite;对于 PostgreSQL,请使用 ST_Point。

定义

在 Oracle 中,ST_PointFromText 以点类型的熟知文本表示和空间参考 ID 作为输入参数,返回点对象。

语法

Oracle

sde.st_pointfromtext (wkt varchar2, srid integer)

SQLite

st_pointfromtext (wkt text, srid int32)

返回类型

ST_Point

示例

创建包含单个 ST_Point 列 pt1 的 point_test 表。

在调用 INSERT 语句将点插入到 pt1 列之前,首先使用 ST_Point 函数将点文本坐标转换为点格式。

Oracle

CREATE TABLE point_test (pt1 sde.st_geometry);
INSERT INTO POINT_TEST VALUES (
 sde.st_pointfromtext ('point (10.01 20.03)', 4326)
);

SQLite

CREATE TABLE pt_test (id integer);

SELECT AddGeometryColumn(
 NULL,
 'pt_test',
 'pt1',
 4326,
 'point',
 'xy',
 'null'
);
INSERT INTO pt_test VALUES (
 1,
 st_pointfromtext ('point (10.01 20.03)', 4326)
);

相关主题

  • 加载 SQLite ST_Geometry 库

ArcGIS Desktop

  • 主页
  • 文档
  • 支持

ArcGIS 平台

  • ArcGIS Online
  • ArcGIS Desktop
  • ArcGIS Enterprise
  • ArcGIS for Developers
  • ArcGIS Solutions
  • ArcGIS Marketplace

关于 Esri

  • 关于我们
  • 招贤纳士
  • Esri 博客
  • 用户大会
  • 开发者峰会
Esri
分享您的想法。
Copyright © 2018 Esri. | 隐私政策 | 法律声明