Skip to content

IO and Recorder

elwina edited this page Jan 21, 2023 · 1 revision

IO and Recorder

jsonIO

general

处理json输入

config

name type require description
outListConf bool no listConf类型 define自带
outJson bool no json类型 define自带
inFile bool no 是否以文件形式输入
inFilepath string yes if inFile 文件输入路径

rasterIO

general

本IO用于文件输入Raster类实例

config

name type require description
outRasterBase bool no RasterBase define 自带,提供RasterBase输出
inFilePath string yes 栅格文件位置
inDriver string yes 确定栅格文件格式(gdal):推荐为"AAIGrid"格式,将使用自解码。其他格式采用gdal解码,通过测试的格式有:"GTiff"

geojsonVectorIO

general

本IO用于将geojson格式输入Vector类实例

config

name type require description
outVectorBase bool no VectorBase define 自带
inFilePath string yes 输入矢量文件路径
inGeoType string yes 矢量类型,目前支持"MultiLineString"

fileListIO

general

用于file类型输入

config

name type require description

data

类型为词典,包含文件类列表,形如:

{
    "filename1": "data/file1.txt",
    "filename2": "data/file2.json"
}

jsonRecorder

把data的数据直接转换成json数据dump

config

| name | type | require | description | | ------------- | ------ | ------- |

rasterRecorder

把栅格实例记录

config

| name | type | require | description | | ------------- | ------ | ------- |

vectorRecorder

把矢量数据记录

config

| name | type | require | description | | ------------- | ------ | ------- |

fileRecorder

把file类型的每个文件复制到output中

config

name type require description
all bool no 是否记录全部的文件
filelist string[] yes if all false 记录哪些文件,仅仅在没有all或者all为false是生效

Clone this wiki locally