# -*- coding: utf-8 -*-
"""
Modul definiujacy naglowki drzewa xml
"""
from enum import Enum

"""Nazwy pól bazy danych"""
class Tags(Enum):
    ROOT='swdl'
    HEADER='header'
    SWDL_VERSION='swdlVersion'
    DATA_SOURCE='dataSource'
    UNIT_NAME='unitName'
    UNIT_ADDRESS='unitAddress'
    RESPONSIBLE_PERSON='responsiblePerson'
    POSITION='position'
    NAME='name'
    PHONE_NAMBER='phoneNumber'
    EMAIL='email'
    EXPORT_DATE='exportDate'
    FOREST_DATA_SET='forestDataSet'
    UID='uid'
    FOREST_DATA_DESC='forestDataDesc'
    INVENTORY_OBJECT_NAME='inventoryObjectName'
    INVENT_YEAR='inventYear'
    ADRESS_FOREST='adressForest'
    INVENT_EXECUTOR='inventExecutor'
    SUPERVISION='supervision'
    SUPERVISOR='supervisor'
    ORGANIZATION_NAME='organizationName'
    ORGANIZATION_INFO='organizationInfo'
    STREET='street'
    CITY='city'
    POSTAL_CODE='postalCode'
    COUNTRY='country'
    PHONE='phone'
    FAX='fax'
    DELEGATE_SUPERVISOR='delegatedSupervisor'
    STATE_DATE='stateDate'
    FOREST_DATA='forestData'
    SUBAREA_DATA='subareaData'
    ACCORD_CD='accordCd'
    DAMAGE_DEGREE='damageDegree'
    CAUSE_CD='causeCd'
    AREA_TYPE_CD='areaTypeCd'
    POSITION_CD='positionCd'
    RELIEF_CD='reliefCd'
    SITE_TYPE_CD='siteTypeCd'
    DEGRADATION_CD='degradationCd'
    VEG_COVER_CD='vegCoverCd'
    SILVICULTURE_CD='silvicultureCd'
    FOREST_FUNC_CD='forestFuncCd'
    STAND_STRUCT_CD='standStructCd'
    SLOPE_CD='slopeCd'
    EXPOSURE_CD='exposureCd'
    MOISTURE_CD='moistureCd'
    SOIL_PEC_CD='soilPecCd'
    SOIL_SUB_TYPE_CD='soilSubTypeCd'
    PLANT_COMM_CD='plantCommCd'
    ROTATION_AGE='rotationAge'
    SUB_AREA='subArea'
    RECONSTR_PERIOD='reconstrPeriod'
    SUBAREA_INFO='subareaInfo'
    ALTITUDE_MAX='altitudeMax'
    ALTITUDE_MIN='altitudeMin'
    SEED_BASE_NR='seedBaseNr'
    CONTROL_UNIT_CD='controlUnitCd'
    RECONSTR_CD='reconstrCd'
    PHASE_CD='phaseCd'
    DAMAGES='damages'
    DONE_MEASURES='doneMeasures'
    RANDOM_SAMPLES='randomSamples'
    AROD_STAND_PEC='arodStandPec'
    FOREST_PEC_DIC='forestPecDic'
    AROD_CATEGORIES='arodCategories'
    AROD_CATEGORY='arodCategory'
    CATEGORY_CD='categoryCd'
    CATEGORY_RANK_ORDER='categoryRankOrder'
    AROD_CUE='arodCue'
    CUE='cue'
    SITE_NR='siteNr'
    MEASURE_CD='measureCd'
    URGENCY='urgency'
    CUTTING_AREA='cuttingArea'
    LARGE_TIMBER_PERC='largeTimberPerc'
    CUTTING_NR='cuttingNr'
    LARGE_TIMBER='largeTimber'
    AROD_PHENOMENA='arodPhenomena'
    PHENOMENA='phenomena'
    AROD_PROT_SITE='arodProtSite'
    PROT_SITE='protSite'
    AROD_SOIL_SPEC='arodSoilSpec'
    SOIL_SPEC='soilSpec'
    SOIL_SPECIES_CD='soilSpeciesCd'
    SOIL_SPEC_RANK_ORDER='soilSpecRankOrder'
    SOIL_LEVEL_DIC_CD='soilLevelDicCd'
    AROD_SPEC_AREA='arodSpecArea'
    SPEC_AREA='specArea'
    TREE_LAYERS='treeLayers'
    TREE_LAYER='treeLayer'
    STOREY_CD='storeyCd'
    STOREY_RANK_ORDER='storeyRankOrder'
    STAND_DENSITY_INDEX='standDensityIndex'
    MIXTURE_CD='mixtureCd'
    DENSITY_CD='densityCd'
    LOCATION_CD='locationCd'
    TREE_STOCK_CD='treeStockCd'
    SILV_QUALITY_CD='silvQualityCd'
    LAYER_SPECIES='layerSpecies'
    TREE_SPECIES='treeSpecies'
    SPECIES_CD='speciesCd'
    SPECIES_RANK_ORDER='speciesRankOrder'
    PART_CD='partCd'
    SPECIES_AGE='speciesAge'
    DBH='dbh'
    HEIGHT='height'
    VOLUME='volume'
    VOLUME_HA='volumeHa'
    INCREMENT='increment'
    INCREMENT_HA='incrementHa'
    TECH_QUALITY_CD='techQualityCd'
    SITE_CLASS_CD='siteClassCd'
    SUBAREA_PARCELS='subareaParcels'
    SUBAREA_PARCEL='subareaParcel'
    PARCEL_NR='parcelNr'
    COUNTY_CD='countyCd'
    DISTRICT_CD='districtCd'
    MUNICIPALITY_CD='municipalityCd'
    COMMUNITY_CD='communityCd'
    OWNERSHIP_CD='ownershipCd'
    PARCEL_AREA='parcelArea'
    PARCELS_LAND_USE='parcelsLandUse'
    PARCEL_LAND_USE='parcelLandUse'
    AREA_USE_DIC='areaUseDic'
    SOIL_QUALITY_DIC='soilQualityDic'
    LAND_USE_AREA='landUseArea'
    AROD_LAND_USE_AREA='arodLandUseArea'
    SUBAREA_OWNERSHIP_STRUCTURE='subareaOwnershipStructure'
    GEOMETRY='geometry'
    PHENOMENA_CD='phenomenaCd'
    PLANT_CD='plantCd'
    PHEN_NUM='phenNum'
    PHEN_AREA='phenArea'
    NATURE_MON_FL='natureMonFl'
    FOREST_GLOBAL_DATA='forestGlobalData'
    COUNTIES='counties'
    COUNTY='county'
    COUNTY_NAME='countyName'
    DISTRICTS='districts'
    DISTRICT='district'
    DISTRICT_NAME='districtName'
    MUNICIPALITIES='municipalities'
    MUNICIPALITY='municipality'
    MUNICIPALITY_NAME='municipalityName'
    COMMUNITIES='communities'
    COMMUNITY='community'
    COMMUNITY_NAME='communityName'
    OWNERSHIP_SHARE='ownershipShare'
    OWNERSHIP_CATEGORY_GUS='ownershipCategoryGUS'
    SHARE='share'
    SHARE_AREA='shareArea'
    SPECIAL_AREA_CD='specialAreaCd'
    SPECIAL_AREA='specialArea'
    SPECIAL_AREA_NUM='specialAreaNum'
    SPECIAL_AREA_YEAR='specialAreaYear'
    SPECIES_SPEC_AREA='speciesSpecArea'
    GOAL_TYPE_FL='goalTypeFl'
    GOAL_RANK_ORDER='goalRankOrder'
    GOAL='goal'
    GOAL_SPECIES_PERC='goalSpeciesPerc'
    AROD_GOAL='arodGoal'
    MEASURES='measures'
    MEASURE='measure'
    MEASURE_NR='measureNr'
    MEASURE_NAME='measureName'
    COST_CENTRE_CD='costCentreCd'
    FOREST_MAP_NO_SF='forestMapNoSF'
    COUNTY_LAYER='countyLayer'
    COUNTY_GEOM='countyGeom'
    BASIC_OBJECTS_LAYER='basicObjectsLayer'
    BASIC_OBJECT_GEOM='basicObjectGeom'
    AREA_USE_DIC_CONT_NUM='areaUseDicContNum'
    SUBAREA_LABELS_LAYER='subareaLabelsLayer'
    SUBAREA_LABEL_GEOM='subareaLabelGeom'
    COUNTY_LABEL_LAYER='countyLabelLayer'
    COUNT_LABEL_GEOM='countyLabelGeom'
    LINE_LAYER='lineLayer'
    LINE_GEOM='lineGeom'
    WIDTH='lineWidth'
    AREA_TYPE_CD_LINE='areaTypeCdLine'
    FOR_AFFORESTATION='forAfforestation'
    SHAPE_NR='shapeNr'
    LAND_USE_MEASURES='landUseMeasures'
    LAND_USE_MEASURE='landUseMeasure'
    LARGE_TIMBER_NETTO='largeTimberNetto'
    CUE_AREA_DIV='cueAreaDIV'
    CUE_RANK_ORDER='cueRankOrder'
    GEOMETRIES='geometries'
    SPAREA_ORDER='spareaOrder'
    PROTECT_AREAS='protectAreas'
    PROTECT_AREA='protectArea'
    PROTECT_AREA_CD='protectAreaCD'
    PROTECT_AREA_NAME='protectAreaName'
    FOREST_NATURAL_VALUES='forestNaturalValues'
    NATURAL_VALUE='naturalValue'
    ENV_COUNT='naturalValueCount'
    NATURAL_VALUE_CD='naturalValueCd'
    TOTAL_AREA='naturalValueArea' 
    PUL_AREA='naturalValueAreaSFMP'
    FOREST_AREA='naturalValueForestArea'
    FOREST_AREA_P='naturalValueForestAreaP'
    NFOREST_AREA_P='naturalValueNoForestAreaP'
    NFOREST_AREA='naturalValueNoForestArea'
    ALLOW_CUT_LCA='allowCutLCA'
    ALLOW_CUT_PCA='allowCutPCA'
    ALLOW_CUT_CN='allowCutCN'
    ALLOW_CUT_ADOPTED='allowCutAdopted'
    ALLOW_CUT_OTHER_CUT='allowCutOtherCut'
    ALLOW_CUT_MAX_VOL='allowCutMaxVol'
    REG_SHEET_NR2='regSheetNr2'
"""Nazwy pól warstw"""
class TagsLayer(Enum):
    SURFACE = 'POW'
    SURFACE_SINGULARITIES = 'OS_POW'
    POINT_SINGULARITIES = 'OS_PKT'
    PNSW = 'PNSW'
    ADDRESS = 'ADR_BDL'
    NR_PNSW = 'NR_PNSW'
    NR_SINGULARITY = 'NR_OSOBL'
    CODE_PNSW='KOD_PNSW'
    ADMINISTRATIVE_ADDRESS='ADR_ADM'
    SINGULARITY_CODE='KOD_OSOBL'
    SINGULARITY_AREA='POW_OSOBL'
    PARCEL_NR='NR_EW'
    AREA_USE_DIC_CONT_NUM='NR_KONT'
    WIDTH='SZER'
    TYPE_CD='KOD'
    LINE_RECORD='L_EWID'
    COUNTY='ODDZIAL'
    BASIC_OBJECTS='O_PODST'
    SUBAREA_LABELS='OP_POW'
    COUNTY_LABELS='OP_ODDZ'
    LINES='LINIE'
    SUBAREA_PARCEL='DZ_EWID'
    PARCEL_LAND_USE='UZYTKI'
    
    
