Create GeoPoint from coordinate system(从坐标系创建地理点(Create GeoPoint from coordinate system))¶
Supported in: Batch, Streaming
Takes a pair of coordinates from a source coordinate system and transforms them into WGS 84 latitude/longitude values. Coordinate systems (also know as coordinate reference systems or spatial reference systems) represent different systems for identifying the location of a point on the globe and are often identified by key in standardized databases such as EPSG. If the given projection is not supported or either coordinate is null, returns null. This expression is for advanced users. It is recommended to use the "Create GeoPoint" expression if you do not need to deal with coordinate systems.
Expression categories: Geospatial
Declared arguments¶
- Source coordinate system: Coordinate system identifier formatted as "authority:id". For example, UTM zone 18N could be identified by EPSG:32618.
Literal\ - X coordinate: X coordinate (often "easting") in the source coordinate system.
Expression\ - Y coordinate: Y coordinate (often "northing") in the source coordinate system.
Expression\
Output type: GeoPoint
Examples¶
Example 1: Base case¶
Argument values:
- Source coordinate system: EPSG:32618
- X coordinate:
x_coordinate - Y coordinate:
y_coordinate
| x_coordinate | y_coordinate | Output |
|---|---|---|
| 322190.2233952965 | 4306505.703879281 | { latitude -> 38.88944258, longitude -> -77.05014581, } |
| 323243.1361536059 | 4318298.06539618 | { latitude -> 38.99585379643137, longitude -> -77.04105678275415, } |
| 407063.63465300016 | 4764873.719585404 | { latitude -> 43.03086518778498, longitude -> -76.14077251822197, } |
Example 2: Base case¶
Argument values:
- Source coordinate system: EPSG:28992
- X coordinate:
x_coordinate - Y coordinate:
y_coordinate
| x_coordinate | y_coordinate | Output |
|---|---|---|
| 142735.75 | 470715.91 | { latitude -> 52.22438577, longitude -> 5.20771293, } |
| 92891.44163 | 437357.50015 | { latitude -> 51.9212285, longitude -> 4.4843492, } |
| 81047.96352 | 454913.24287 | { latitude -> 52.0775512, longitude -> 4.3084213, } |
中文翻译¶
从坐标系创建地理点(Create GeoPoint from coordinate system)¶
支持:批处理(Batch)、流处理(Streaming)
从源坐标系获取一对坐标,并将其转换为 WGS 84 纬度/经度值。坐标系(coordinate system,也称为坐标参考系统或空间参考系统)是用于标识地球表面点位置的不同系统,通常通过 EPSG 等标准化数据库中的键值进行标识。如果给定的投影不受支持,或者任一坐标为空,则返回空值。此表达式适用于高级用户。如果不需要处理坐标系,建议使用"创建地理点(Create GeoPoint)"表达式。
表达式类别: 地理空间(Geospatial)
声明的参数¶
- 源坐标系(Source coordinate system): 格式为"authority:id"的坐标系标识符。例如,UTM 18N 区可通过 EPSG:32618 标识。
Literal\ - X 坐标(X coordinate): 源坐标系中的 X 坐标(通常为"东向")。
Expression\ - Y 坐标(Y coordinate): 源坐标系中的 Y 坐标(通常为"北向")。
Expression\
输出类型: GeoPoint
示例¶
示例 1:基本情况¶
参数值:
- 源坐标系: EPSG:32618
- X 坐标:
x_coordinate - Y 坐标:
y_coordinate
| x_coordinate | y_coordinate | 输出 |
|---|---|---|
| 322190.2233952965 | 4306505.703879281 | { latitude -> 38.88944258, longitude -> -77.05014581, } |
| 323243.1361536059 | 4318298.06539618 | { latitude -> 38.99585379643137, longitude -> -77.04105678275415, } |
| 407063.63465300016 | 4764873.719585404 | { latitude -> 43.03086518778498, longitude -> -76.14077251822197, } |
示例 2:基本情况¶
参数值:
- 源坐标系: EPSG:28992
- X 坐标:
x_coordinate - Y 坐标:
y_coordinate
| x_coordinate | y_coordinate | 输出 |
|---|---|---|
| 142735.75 | 470715.91 | { latitude -> 52.22438577, longitude -> 5.20771293, } |
| 92891.44163 | 437357.50015 | { latitude -> 51.9212285, longitude -> 4.4843492, } |
| 81047.96352 | 454913.24287 | { latitude -> 52.0775512, longitude -> 4.3084213, } |