# This file is part of survey2gis (http://www.survey-tools.org).


[Parser]
name = 4_Positon_Code_End_Parser
tagging_mode = end
tag_field = objekt
key_field = nummer
# "key_unique=Yes" not strictly required but good for data integrity
key_unique = no
tag_strict = yes
no_data = -1
geom_tag_line = "$"
geom_tag_poly = "@"
geom_tag_point = "."
coor_x = COORX
coor_y = COORY
coor_z = COORZ
comment_mark = #

# Field definitions

# Index field
[Field]
name = IDX
info = Field with measurement index [0..n]
type = integer
empty_allowed = No
unique = No
separator = space
merge_separators = Yes

# Vorgang
[Field]
name = VORGANG
info = N/A
type = TEXT
empty_allowed = No
separator = space
merge_separators = no

# Level
[Field]
name = SCHNITT
info = N/A
type = TEXT
empty_allowed = No
separator = _
merge_separators = Yes

# Level
[Field]
name = PLANUM
info = N/A
type = TEXT
empty_allowed = No
separator = _
merge_separators = Yes

# Pseudo field project number
[Field]
name = VORGANGSNR
info = BW-PROJEKTR
type = Text
value = 0000_0000

# NUMMER
[Field]
name = NEGNUMMER
info = N/A
type = Text
empty_allowed = no
separator = _
merge_separators = yes

# NUMMER
[Field]
name = NUMMER
info = N/A
type = Text
empty_allowed = no
separator = _
merge_separators = yes


# Objekt
[Field]
name = OBJEKT
info = N/A
type = Text
empty_allowed = No
separator = space
merge_separators = Yes
change_case = upper

@ABG = Ausbruchgrubenverfuellung 
@AG = Brandgrabverfuellung 
@AH = Abbruchhorizont 
@AM = aufgehendes Mauerwerk 
@B  = Befund, unspezifiziert Verfuellung
@BG = Baugrubenverfuellung 
@BH = Bauhorizont 
@BRU = Brunnenverfuellung 
@BS = Brandschicht 
@BT = Brandstelle
@BU = Befund, unsicher Verfuellung
@ES = Estrich
@F = Fund, unspezifiziert
@FB = Fussboden 
@FM = Fundament 
@FS = Feuerstelle 
@G = Grubenverfuellung 
@GA = Grabhuegel 
@GB = Grabverfuellung
@GBN = Graebchenverfuellung 
@GD = Gebaeude 
@GE = gewachsener Boden 
@GEO = Geologie 
@GG = Grabgrubenverfuellung 
@GH = Grubenhausverfuellung 
@GN = Grabenverfuellung
@GR = Grabungsgrenze 
@GW = Gewoelbe 
@HE = Herd 
@HS = Herdstelle 
@KA = Kanalverfuellung
@KG = Krpergrabverfllung
@KR = Kellerverfllung 
@LH = Laufhorizonz 
@LT = Latrinenverfuellung 
@M = Mauer 
@M = Mauerwerk 
@MO = Mrtel
@OF = Ofen 
@P = Pfostengrubenverfuellung 
@PF = Pflaster 
@PS = Planierschicht 
@R = Rollierung
@S = Pfostenstandspurverfuellung 
@SH = Schicht 
@ST = Steinsetzung 
@STO = Stoerung 
@T = Tenne 
@GRU = untere Grabungsgrenze
@WG = Wandgrbchenverfuellung 
@ZM = Ziegelmauer 

# X Label field: simply contains "X"
[Field]
name = XLABEL
info = Useless field
type = text
empty_allowed = No
separator = space
merge_separators = Yes
skip = Yes

# X Coordinates
[Field]
name = COORX
info = Holds X coordinate
type = double
empty_allowed = No
separator = space
merge_separators = Yes

# Y Label field: simply contains "Y"
[Field]
name = YLABEL
info = Useless field
type = text
empty_allowed = No
separator = space
merge_separators = Yes
skip = Yes

# Y Coordinate
[Field]
name = COORY
info = Holds Y coordinate
type = double
empty_allowed = No
separator = space
merge_separators = Yes

# Z Label field: simply contains "Z"
[Field]
name = ZLABEL
info = Useless field
type = text
empty_allowed = No
separator = space
merge_separators = Yes
skip = Yes

# Z Coordinates
[Field]
name = COORZ
info = Holds Z coordinate
type = double
empty_allowed = No
# last field: must have no separator
