跳转至

Extract rows from a GeoJSON file(从 GeoJSON 文件中提取行(Extract rows from a GeoJSON file))

Supported in: Batch

Reads a dataset of files and parses each GeoJSON file into rows. The output dataset will have a geometry column, and a column for each property listed by the user, apart from the _error and _file columns. If the user provides no properties to extract, the entire properties struct will be extracted into a properties column as a string. All GeoJSONs in the files must either be: a) multiline FeatureCollection: an entire file with one GeoJSON of type FeatureCollection b) single-line Feature: a file where every line is a fully valid GeoJSON of type Feature.

Transform categories: File, Geospatial

Declared arguments

  • Dataset: Dataset of GeoJSON files to process.
    Files
  • Multiline: If every line in each file is a fully valid GeoJSON of type Feature, set this to false. If the entire file is a valid GeoJSON of type FeatureCollection, set this to true.
    Literal\
  • optional List of properties: List of properties and their types that need to be extracted from these GeoJSON files. If no value or an empty struct is provided, extracts all 'properties' in one properties column as a string.
    Type\
  • optional Source coordinate system: Coordinate system identifier formatted as "authority:id". For example, UTM zone 18N could be identified by EPSG:32618. If not specified, will default to WGS84 which is EPSG:4326.
    Literal\

中文翻译


从 GeoJSON 文件中提取行(Extract rows from a GeoJSON file)

支持模式:批处理(Batch)

读取文件数据集并将每个 GeoJSON 文件解析为行。输出数据集将包含一个几何列(geometry column),以及用户列出的每个属性对应的列(不包括 _error_file 列)。如果用户未提供要提取的属性,则整个属性结构(properties struct)将以字符串形式提取到 properties 列中。文件中的所有 GeoJSON 必须满足以下条件之一: a) 多行 FeatureCollection:整个文件为一个类型为 FeatureCollection 的 GeoJSON b) 单行 Feature:文件中每一行都是一个类型为 Feature 的完整有效 GeoJSON。

转换类别:文件、地理空间(Geospatial)

声明的参数(Declared arguments)

  • 数据集(Dataset): 待处理的 GeoJSON 文件数据集。
    文件(Files)
  • 多行(Multiline): 如果每个文件中的每一行都是类型为 Feature 的完整有效 GeoJSON,请设置为 false。如果整个文件是类型为 FeatureCollection 的有效 GeoJSON,请设置为 true。
    字面量\
  • 可选 属性列表(List of properties): 需要从这些 GeoJSON 文件中提取的属性及其类型的列表。如果未提供值或提供了空结构,则将所有 'properties' 以字符串形式提取到一个 properties 列中。
    类型\
  • 可选 源坐标系(Source coordinate system): 格式为 "authority:id" 的坐标系标识符。例如,UTM 18N 区可通过 EPSG:32618 标识。如果未指定,则默认为 WGS84(即 EPSG:4326)。
    字面量\