from rosreestrXml.ui.tools.forest.ForestDeclaration.ForestDeclarationObj import LocationPoints, ObjLocation, \
    createOgrObject
from rosreestrXml.ui.tools.forest.ForestDeclaration.forestDeclaration import parse

path_source=r"E:\Support\SibLes\декларации\декларация_2022_0122_22-10_ООО_Салымнефть\forestDeclaration-000005320-00004\forestDeclaration.xml"
path_source=r"E:\Support\SibLes\декларации\декларация_2023_255-45-22_ПАО_Россети\forestDeclaration-000005320-00003\forestDeclaration.xml"
objForest=parse(path_source,True)
obj_row1=objForest.locationInformation.row[0].explication
objLocation=ObjLocation(objForest.locationInformation.row[0],None,None)
objPoints=objLocation.Points
list_pnt=objPoints.getPoints()
#ogr_obj=createOgrObject(list_pnt)
objLocation.Write(None)
jkl=0
#objPoints=LocationPoints(obj_row1,None)
#objPoints.build()
