ArcGIS Desktop

  • ArcGIS Pro
  • ArcMap

  • My Profile
  • Help
  • Sign Out
ArcGIS Desktop

ArcGIS Online

The mapping platform for your organization

ArcGIS Desktop

A complete professional GIS

ArcGIS Enterprise

GIS in your enterprise

ArcGIS for Developers

Tools to build location-aware apps

ArcGIS Solutions

Free template maps and apps for your industry

ArcGIS Marketplace

Get apps and data for your organization

  • Documentation
  • Support
Esri
  • Sign In
user
  • My Profile
  • Sign Out

ArcMap

  • Home
  • Get Started
  • Map
  • Analyze
  • Manage Data
  • Tools
  • Extensions

ST_PointFromText

  • Definition
  • Syntax
  • Return type
  • Example
Note:

Used in Oracle and SQLite only; for PostgreSQL, use ST_Point.

Definition

ST_PointFromText takes a well-known text representation of type point and a spatial reference ID and returns a point.

Syntax

Oracle

sde.st_pointfromtext (wkt varchar2, srid integer)

sde.st_pointfromtext (wkt varchar2)

If you do not specify an SRID, the spatial reference defaults to 4326.

SQLite

st_pointfromtext (wkt text, srid int32)

st_pointfromtext (wkt text)

If you do not specify an SRID, the spatial reference defaults to 4326.

Return type

ST_Point

Example

The point_test table is created with the single ST_Point column pt1.

The ST_PointFromText function converts the point text coordinates to the point format before the INSERT statement inserts the point into the pt1 column.

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)
);

Related topics

  • Load the SQLite ST_Geometry library

ArcGIS Desktop

  • Home
  • Documentation
  • Support

ArcGIS Platform

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

About Esri

  • About Us
  • Careers
  • Esri Blog
  • User Conference
  • Developer Summit
Esri
Tell us what you think.
Copyright © 2019 Esri. | Privacy | Legal