Semantics Structure

Print Top page

Semantic data about an object begins with a record of the form:

.SEM number_of_characteristics

The number of characteristics is a positive integer.

 

This is followed by the description of each characteristic in the form:

Characteristic_code Characteristic_value

The characteristic code is an integer from 0 to 65535.

 

The characteristic value is any symbolic expression including numbers, letters, spaces, and special symbols (+ - . / and so on).

 

An object may not have semantic characteristics; in this case, the record with the SEM keyword may be omitted.

 

After the description of the object's semantics comes the description of the next object (.OBJ) or the end of the data set (.END).

 

Example Files

.SXF 3.0

   // EXAMPLE OF SXF FORMAT TEXT FILE

   // COORDINATES IN RECTANGULAR SYSTEM

   // TOPOGRAPHIC MAP

   P000 BERN

   P001 0.L-32-039-2-2.A

   P002 1

   P101 0.8188502 0.1287180

   P102 0.8203048 0.1287180

   P103 0.8203047 0.1308997

   P104 0.8188505 0.1308998

   P109 5199356.6 2376216.0

   P110 5208620.7 2376408.1

   P111 5208431.0 2385915.0

   P112 5199166.9 2385737.7

   P116 1

   P117 1

   P118 1

   P119 1

   P120 1

   P207 50000

   .DAT 4

   // LAKES (KEY: 3/4, 3*65536+4 = 196612)

   // WATER QUALITY - FRESH

   // COASTLINE TYPE - PERMANENT

   // ABSOLUTE HEIGHT - 546m

   .OBJ 31120000 SQR

   .KEY 196612

   8

   5202894 2378715

   5202876 2378775

   5202844 2378795

   5202784 2378790

   5202740 2378713

   5202744 2378668

   5202804 2378655

   5202894 2378715

   .SEM 3

   33 100

   36 100

   4 546

   // DENSE FORESTS (KEY: 7/41)

   // RELATIVE HEIGHT - 25m

   .OBJ 71111100 SQR

   .KEY 458793

   6

   5206181 2380839

   5206106 2380903

   5206113 2380923

   5206168 2381003

   5206265 2380961

   5206181 2380939

   .SEM 1

   1 25

   // BRIDGES (KEY: 6/434)

   .OBJ 62310000 VEC

   .KEY 393650

   2

   5207754 2379350

   5207794 2379470

   // STATIONS (KEY: 6/183)

   .OBJ 62130000 DOT

   .KEY 393399

   1

   5205731 2378440

   // CITY LABEL (KEY: 256/2)

   // FONT TYPE 5, COLOR CODE - 101, TEXT - "B E R N"

   .OBJ 88000000 TIT

   .KEY 16777218

   1

   5203728 2377794

   >B E R N

   .SEM 2

   14 5

   94 101

   .END

 

.SXF 3.0

   // EXAMPLE OF SXF FORMAT TEXT FILE

   // GEODETIC COORDINATES

   // TOPOGRAPHIC MAP

   P000 BERN

   P001 0.L-32-039-2-2.A

   P002 1

   P101 0.8188502 0.1287180

   P102 0.8203048 0.1287180

   P103 0.8203047 0.1308997

   P104 0.8188505 0.1308998

   P109 5199356.6 2376216.0

   P110 5208620.7 2376408.1

   P111 5208431.0 2385915.0

   P112 5199166.9 2385737.7

   P116 7

   P117 1

   P118 1

   P119 1

   P120 1

   P207 50000

   .DAT 4

   // LAKES (KEY: 3/4, 3*65536+4 = 196612)

   // WATER QUALITY - FRESH

   // COASTLINE TYPE - PERMANENT

   // ABSOLUTE HEIGHT - 546m

   .OBJ 31120000 SQR

   .KEY 196612

   8

   0.8194135 0.1292739

   0.8194108 0.1292878

   0.8194059 0.1292925

   0.8193964 0.1292916

   0.8193893 0.1292742

   0.8193898 0.1292638

   0.8193991 0.1292606

   0.8194135 0.1292739

   .SEM 3

   33 100

   36 100

   4 546

   // DENSE FORESTS (KEY: 7/41)

   // RELATIVE HEIGHT - 25m

   .OBJ 71111100 SQR

   .KEY 458793

   6

   0.8199360 0.1297456

   0.8199245 0.1297606

   0.8199256 0.1297652

   0.8199345 0.1297833

   0.8199496 0.1297732

   0.8199360 0.1297456

   .SEM 1

   1 25

   // BRIDGES (KEY: 6/434)

   .OBJ 62310000 VEC

   .KEY 393650

   2

   0.8201782 0.1293969

   0.8201848 0.1294242

   // STATIONS (KEY: 6/183)

   .OBJ 62130000 DOT

   .KEY 393399

   1

   0.8198578 0.1291976

   // CITY LABEL (KEY: 256/2)

   // FONT TYPE 5, COLOR CODE - 101, TEXT - "B E R N"

   .OBJ 88000000 TIT

   .KEY 16777218

   1

   0.8195414 0.1290589

   >B E R N

   .SEM 2

   14 5

   94 101

   .END