Spatial description of objects

Print Previous page Top page Next page

In the geo database ArcSDE, the spatial description of objects is stored in its internal format St_Geometry. This format is not a standard and the manufacturer (ESRI) can change its structure at its own discretion. In this regard, reading and recording spatial data by external clients is carried out not directly in the format St_Geometry (ArcSDE), but through conversion to the format Well-Known Binary (WKB).

The spatial data representation format WKB is defined by the standard Open Geospatial Consortium – OGC 06-103r4: «OpenGIS® Implementation Standard for Geographic information – Simple feature access – Part 1: Common architecture».

 

 

png002

Binary representation of a geometric object (WKB) in format NDR (B = 1)

type Polygon (T = 3)

with 2 LinearRings (NR = 2)

each LinearRings consists of 3 points (NP = 3)

 

WKB-representation is the description of a geometric object as a set of bytes in a specific format. Such set consists of the header part and byte arrays, which determine the coordinates for the contours of the object.

The sequence of bytes can be represented using one of two standard binary encodings. The difference between the two encodings of geometry is that the sequence of bytes is encoded by the reverse order of the bytes (Big Endian) in XDR and by the direct order of bytes (Little Endian) in NDR.

To reduce computational costs, the program uses WKB with a direct order of bytes – NDR.

Geometry is supported with 2 (2D), 3 (Z and M) and 4 (ZM) – dimensional metric for the following localizations of objects are specified in the table below.

 

 

The geometry type

The codes of dimension metrics in the representation WKB

The example

It corresponds to the character of localization

2D

Z

M*

ZM*

Point

0001

1001

2001

3001

png003

Point (dot)

LineString

0002

1002

2002

3002

png004

Linear

Polygon

0003

1003

2003

3003

Simple

png005

With a subobject

png006

Area

MultiLineString

0005

1005

2005

3005

png007

Linear

MultiPolygon

0006

1006

2006

3006

Simple

png008

With a subobject

png009

Area

*feature «M» is not processed