from axipy import CoordSystem

from GridMarker.toolprocessing.BuildGrid import buildGridRun, buildGridRun1

property_grid={}
property_grid['xmin']=7323702.95997447
property_grid['xmax']=7669838.06848797
property_grid['ymin']=6009889.59407669
property_grid['ymax']=6292595.56964494
'''
property_grid['xmin']=35.056472
property_grid['xmax']=42.178203
property_grid['ymin']=54.212031
property_grid['ymax']=56.830857
property_grid['step']=1000
property_grid['step']=0.25
'''
property_grid['step']=1000
property_grid['step']=100000
property_grid['table_grid']="E:\\Support\\AxiomaTesting\\СеткаZ_XG.tab"
#cs=CoordSystem.from_string('prj: Earth Projection 8, 1001, "m", 39, 0, 1, 7500000, 0')
cs=CoordSystem.from_string('prj: Earth Projection 1,104')
property_grid['out_cs']=cs
property_grid={'add_interval': 4, 'format': 0, 'out_cs': 'epsg:4326', 'step_x': 20.0, 'step_y': 30.0, 'style': 'Pen (2, 2, 5592320)', 'table_grid': 'E:/Support/AxiomaTesting/Сетка.TAB', 'xmax': 360.0, 'xmin': -360.0, 'ymax': 90.0, 'ymin': -90.0}
cs=CoordSystem.from_string('prj: Earth Projection 1,104')
property_grid['out_cs']=cs
property_grid['table_grid']="E:\\Support\\AxiomaTesting\\СеткаZ_XG.tab"
#dop_point=property_grid['dop_poin']
#path_out_tab=property_grid['table_grid']
buildGridRun1(property_grid)