在创建引用制表符分隔值 (.tsv) 文件的矢量层时,可通过从 .tsv 文件中检索绘制说明以及经纬度数据来获取矢量数据。
To define a vector layer that references a .tsv files, you must have the following:
包含.tsv 用于在地球上绘制矢量(包括经度和纬度数据)的数据的文件。 For more information about the required format of the .tsv file, see Vector TSV File Format.
指定文件位置的图层文件.tsv 。 有关层文件所需格式的详细信息,请参阅矢量层文件格式。
The .tsv file must contain the following three tab separated columns:
将忽略任何其他列。
Following is a sample .tsv file that contains data for a vector layer:
Each vector layer file referencing .tsv files must be formatted using the following template:
Layer = VectorLayer:
TSV Files = vector: n items
0 = string: Maps\\File Name.tsv
1 = string: Maps\\File Name.tsv
. . .
n-1 = string: Maps\\File Name.tsv
Color = v3d: color vector
Alpha = double: alpha
Width = double: width
Error Factor = double: error factor
参数 | 描述 |
---|---|
TSV Files(TSV 文件) | 包含矢量数据的 .tsv 文件的路径。 示例:Maps\\USVectorData.tsv |
Color(颜色) | RGB 颜色矢量,表达为 (红,绿,蓝)。有关矢量中的每种颜色,您可以输入 0.0 到 1.0 之间的值。例如,(1.0, 0.0, 0.0) 是大红,(0.5, 0.5, 0.5) 是灰色。 |
Alpha(透明度) | 控制地球上显示的矢量的透明度。范围为 0 到 1,其中 0 表示最透明。 |
Width(宽度) | 可选。设置数据的宽度(以像素为单位)。建议的范围为 1 到 4。 |
Error Factor(误差因子) | 控制矢量的绘制精度。值越大,矢量的绘制精度越低,速度越快。默认值为 5。 |