Penmetrics Grd Reader / Writer

Penmetrics Grd Reader / Writer允许FME访问Penmetrics图形绘图(GRD)32位格式文件。

GRD文件由绘图设置和配置组成,以及组织成层的一系列向量或图形元素。FME为GRD矢量类型和选项提供广泛支持。另外,当输出GRD数据时,可以从提供的模板或原型文件复制报头信息。

Overview

GRD 32位文件格式是Penmetrics向量图形的本机文件格式,用于诸如FieldNotes等应用程序。

GRD文件可能包含二维(2D)和三维(3D)功能。GRD文件存储功能几何和用户定义的属性。有11种功能如下:点,线条,折线(包括多边形),矩形,圆形,椭圆,弧形,插入,文本,墨水和多分段折线。

FME寻找延伸。grd对于输入GRD文件,但无论文件名或扩展名如何,都会接受任何GLD文件。FME认为GRD数据集是单个Penmetrics GRD文件。GRD文件是二进制文件,该文件包含固定和可变长度二进制记录的组合。

The information held within the GRD file itself is contained in five separate sections:

  • 标题
  • 线型
  • 层数
  • Layer Vectors

GRD文件的组织与AutoCAD文件的相似性紧密相似。

GRD Entity Types and Descriptions

The GRD reader and writer use symbolic names for different entity types stored within a data file. This simplifies feature type specification. The following table gives a brief description of each of the different GRD entity types currently supported by the reader and writer. The entities are described in detail in subsequent sections.

fme grd_entity.

描述

grd_line

将GRD文件中的线性功能作为线路或未临时的折线。

grd_point.

点特征。

grd_ellipse.

具有椭圆形表示的功能。

grd_circle

具有圆形表示的功能。

grd_polygon.

几何由封闭的折线表示的特征。

grd_arc.

几何形状代表圆弧的一部分的特征。

grd_rectangle

具有封闭矩形几何的功能。边缘仅垂直和水平 - 没有旋转。

grd_text

文本功能。

grd_ink.

Ink features that store images in binary form in a text attribute.

grd_mspline

A group of associated lines are stored as a multi-segmented polyline feature.

grd_insert.

点携带插入实体或块数据的点功能。

层数

接地的文件使用一个层的概念来组织所有的有限元分析tures they contain. Every feature lies on one of the many layers that may be defined. Each layer has a unique name and defines colors, line styles, font styles, etc. for use with all features on that layer that do not have overriding settings. Layers may be either Drawing or Markup types. Every GRD file has the following强制层:

  • Layer “0” — the drawing layer
  • 层“标记0” - 标记或墨水,层

可以由用户定义任何数量的其他层。

线型

线型用于定义符号工作的方式。从GRD文件读取时,将给出每个特征的几个不同的特定属性。它们在一起定义了它意味着与之显示的线型。在编写GRD文件时,这些LINETYPE特定属性(如果存在)将存储为要使用的LINETYPE。默认情况下,一个线型连续的编写GRD文件时使用。

线型定义具有名称和显示给用户的描述。通常,该描述显示了通过使用下划线('_')和空格('')(例如:“”__ __ ______)来显示线型的样子。__ __“。实际的线型定义由一系列破折号组成。最多12个破折号可以构成一个线型。以下是线型的代表方式:

  • 短跑: Positive dash length where the length is the length of the dash.
  • 空间: Negative space length where the length is the absolute value of the space.
  • : Dash length of zero.

代表这种线型“”__ __ ______。__ __“,将需要以下破折号:2,-2,2,-2,4,-2,0,-2,2,-2,2,-2

The details of how this information is represented in FME attributes is found in this section under the heading线型表示

GRD数字颜色关联

GRD文件中引用的数值颜色值具有以下关联:

GRD Numeric
颜色值

描述

0.

黑色的

1

蓝色的

2

green

3.

青色

4.

红色的

5.

magenta

6.

brown

7.

浅灰

8.

灰色的

9.

浅蓝

10.

浅绿色

11.

light cyan

12.

红灯

13.

灯洋红色

14.

黄色的

15.

白色的

16.

visible (pen) or transparent (brush)

17.

使用图层的颜色

18.

use block’s color (valid only for block entities)