def addLPlanJFMonitoringLayer(viewWP): #纵断面图中的接缝张开支点 layerDef = is3.LayerDef() layerDef.Name = 'MON_JF' layerDef.GeometryType = is3.GeometryType.Point layerDef.OutlineColor = Colors.Blue layerDef.Color = Colors.Black layerDef.MarkerSize = 12 layerDef.MarkerStyle = is3.SimpleMarkerStyle.Triangle layerDef.EnableLabel = True layerDef.LabelTextExpression = '[Name]' layerDef.IsVisible = False layerDef.LabelBackgroundColor = Colors.Yellow monLayerWP = is3.addGdbLayer(viewWP, layerDef) layerDef = is3.LayerDef() layerDef.Name = 'MON_JF_TJ' layerDef.GeometryType = is3.GeometryType.Point layerDef.OutlineColor = Colors.Blue layerDef.Color = Colors.Black layerDef.MarkerSize = 12 layerDef.MarkerStyle = is3.SimpleMarkerStyle.Triangle layerDef.EnableLabel = True layerDef.LabelTextExpression = '[Name]' layerDef.IsVisible = False monLayerWP = is3.addGdbLayer(viewWP, layerDef) return monLayerWP
def addPlanLQJMonitoringLayer(viewWP): #平面图中的纵向倾角传感器支点 layerDef = is3.LayerDef() layerDef.Name = 'MON_LDIP_TJ' layerDef.GeometryType = is3.GeometryType.Point layerDef.OutlineColor = Colors.Blue layerDef.Color = Colors.Black layerDef.MarkerSize = 12 layerDef.MarkerStyle = is3.SimpleMarkerStyle.Circle layerDef.EnableLabel = True layerDef.LabelTextExpression = '[Name]' layerDef.IsVisible = False layerDef.LabelBackgroundColor = Colors.Yellow monLayerWP = is3.addGdbLayer(viewWP, layerDef) layerDef = is3.LayerDef() layerDef.Name = 'MON_LDPGP' layerDef.GeometryType = is3.GeometryType.Polyline layerDef.OutlineColor = Colors.Blue layerDef.Color = Colors.Black layerDef.EnableLabel = True layerDef.LabelTextExpression = '[Name]' layerDef.IsVisible = False monLayerWP = is3.addGdbLayer(viewWP, layerDef) return monLayerWP
def addGateWaysLayer(viewWP): #网关 layerDef = is3.LayerDef() layerDef.Name = 'MON_GW_TJ' layerDef.GeometryType = is3.GeometryType.Point layerDef.OutlineColor = Colors.Blue layerDef.Color = Colors.Black layerDef.MarkerSize = 12 layerDef.MarkerStyle = is3.SimpleMarkerStyle.Circle layerDef.EnableLabel = True layerDef.LabelTextExpression = '[Name]' layerDef.IsVisible = False layerDef.LabelBackgroundColor = Colors.Yellow monLayerWP = is3.addGdbLayer(viewWP, layerDef) layerDef = is3.LayerDef() layerDef.Name = 'MON_GW' layerDef.GeometryType = is3.GeometryType.Point layerDef.OutlineColor = Colors.Blue layerDef.Color = Colors.Black layerDef.MarkerSize = 12 layerDef.MarkerStyle = is3.SimpleMarkerStyle.Circle layerDef.EnableLabel = True layerDef.LabelTextExpression = '[Name]' layerDef.IsVisible = False monLayerWP = is3.addGdbLayer(viewWP, layerDef) return monLayerWP
def addCRJFMonitoringLayer(viewWP): #横断面中的接缝张开支点 layerDef = is3.LayerDef() layerDef.Name = 'MON_JF' layerDef.GeometryType = is3.GeometryType.Point layerDef.OutlineColor = Colors.Blue layerDef.EnableLabel = True layerDef.LabelTextExpression = '[Name]' layerDef.IsVisible = False layerDef.LabelBackgroundColor = Colors.Green layerDef.MarkerSize = 12 layerDef.MarkerStyle = is3.SimpleMarkerStyle.Triangle layerWrapper = is3.addGdbLayer(viewWP, layerDef) layerDef = is3.LayerDef() layerDef.Name = 'MON_JFGP' layerDef.GeometryType = is3.GeometryType.Polyline layerDef.Color = Colors.Cyan layerDef.LineWidth = 3 layerDef.EnableLabel = True layerDef.LabelTextExpression = '[Name]' layerDef.IsVisible = False layerWrapper = is3.addGdbLayer(viewWP, layerDef) layerDef = is3.LayerDef() layerDef.Name = 'MON_JF_TJ' layerDef.GeometryType = is3.GeometryType.Point layerDef.OutlineColor = Colors.Blue layerDef.EnableLabel = True layerDef.LabelTextExpression = '[Name]' layerDef.IsVisible = False layerDef.LabelBackgroundColor = Colors.Green layerDef.MarkerSize = 12 layerDef.MarkerStyle = is3.SimpleMarkerStyle.Triangle layerWrapper = is3.addGdbLayer(viewWP, layerDef) layerDef = is3.LayerDef() layerDef.Name = 'MON_JFGP_TJ' layerDef.GeometryType = is3.GeometryType.Polyline layerDef.Color = Colors.Cyan layerDef.LineWidth = 3 layerDef.EnableLabel = True layerDef.LabelTextExpression = '[Name]' layerDef.IsVisible = False layerWrapper = is3.addGdbLayer(viewWP, layerDef) return layerWrapper
def addTunLayer(viewWP): layerDef = is3.LayerDef() layerDef.Name = 'DES_TUN' layerDef.GeometryType = is3.GeometryType.Polygon layerDef.OutlineColor = Colors.Blue layerDef.Color = Colors.Blue layerDef.FillStyle = is3.SimpleFillStyle.Solid tunLayerWP = is3.addGdbLayer(viewWP, layerDef) return tunLayerWP
def addStrLayer(viewWP): layerDef = is3.LayerDef() layerDef.Name = 'GEO_STR' layerDef.GeometryType = is3.GeometryType.Polygon layerDef.OutlineColor = Colors.Gray layerDef.Color = Colors.LightGray layerDef.FillStyle = is3.SimpleFillStyle.Solid strLayerWP = is3.addGdbLayer(viewWP, layerDef) return strLayerWP
def addStatLayer(viewWP): layerDef = is3.LayerDef() layerDef.Name = 'DES_STA' layerDef.GeometryType = is3.GeometryType.Polyline layerDef.OutlineColor = Colors.Blue layerDef.Color = Colors.Blue layerDef.FillStyle = is3.SimpleFillStyle.Solid statLayerWP = is3.addGdbLayer(viewWP, layerDef) return statLayerWP
def addAxesLayer(viewWP): layerDef = is3.LayerDef() layerDef.Name = 'DES_AXL' layerDef.GeometryType = is3.GeometryType.Polyline layerDef.OutlineColor = Colors.Green layerDef.Color = Colors.Green layerDef.FillStyle = is3.SimpleFillStyle.Solid axesLayerWP = is3.addGdbLayer(viewWP, layerDef) return axesLayerWP
def addRinLayer(viewWP): layerDef = is3.LayerDef() layerDef.Name = 'DES_RIN' layerDef.GeometryType = is3.GeometryType.Polygon layerDef.OutlineColor = Colors.Blue layerDef.Color = Colors.LightGray layerDef.FillStyle = is3.SimpleFillStyle.Solid rinLayerWP = is3.addGdbLayer(viewWP, layerDef) return rinLayerWP
def addBhLayer(viewWP): layerDef = is3.LayerDef() layerDef.Name = 'GEO_BHL' layerDef.GeometryType = is3.GeometryType.Point layerDef.OutlineColor = Colors.Black layerDef.Color = Colors.Green layerDef.FillStyle = is3.SimpleFillStyle.Solid bhLayerWP = is3.addGdbLayer(viewWP, layerDef) return bhLayerWP
def addCRQJMonitoringLayer(viewWP): #横断面中的双倾角支点 layerDef = is3.LayerDef() layerDef.Name = 'MON_DIP' layerDef.GeometryType = is3.GeometryType.Point layerDef.Color = Colors.Blue layerDef.EnableLabel = True layerDef.LabelTextExpression = '[Name]' layerDef.IsVisible = False layerDef.MarkerSize = 12 layerDef.MarkerStyle = is3.SimpleMarkerStyle.Circle layerWrapper = is3.addGdbLayer(viewWP, layerDef) layerDef = is3.LayerDef() layerDef.Name = 'MON_DPGP' layerDef.GeometryType = is3.GeometryType.Polyline layerDef.Color = Colors.Cyan layerDef.LineWidth = 3 layerDef.EnableLabel = True layerDef.LabelTextExpression = '[Name]' layerDef.IsVisible = False layerWrapper = is3.addGdbLayer(viewWP, layerDef) layerDef = is3.LayerDef() layerDef.Name = 'MON_DIP_TJ' layerDef.GeometryType = is3.GeometryType.Point layerDef.Color = Colors.Blue layerDef.EnableLabel = True layerDef.LabelTextExpression = '[Name]' layerDef.IsVisible = False layerDef.MarkerSize = 12 layerDef.MarkerStyle = is3.SimpleMarkerStyle.Circle layerWrapper = is3.addGdbLayer(viewWP, layerDef) layerDef = is3.LayerDef() layerDef.Name = 'MON_DPGP_TJ' layerDef.GeometryType = is3.GeometryType.Polyline layerDef.Color = Colors.Cyan layerDef.LineWidth = 3 layerDef.EnableLabel = True layerDef.LabelTextExpression = '[Name]' layerDef.IsVisible = False layerWrapper = is3.addGdbLayer(viewWP, layerDef) return layerWrapper
def addObjLayer(viewWP): layerDef = is3.LayerDef() layerDef.Name = 'MonPoint' layerDef.GeometryType = is3.GeometryType.Polygon layerDef.Color = Colors.Green layerDef.FillStyle = is3.SimpleFillStyle.Solid layerDef.EnableLabel = True layerDef.LabelTextExpression = '[Name]' layerWrapper = is3.addGdbLayer(viewWP, layerDef) layerDef = is3.LayerDef() layerDef.Name = 'GeoBorehole' layerDef.GeometryType = is3.GeometryType.Point layerDef.Color = Colors.Blue layerDef.LineWidth = 3 layerDef.EnableLabel = True layerDef.LabelTextExpression = '[Name]' layerWrapper = is3.addGdbLayer(viewWP, layerDef) return layerWrapper
def addStrLayer(viewWP): layerDef = is3.LayerDef() layerDef.Name = 'GEO_STR' layerDef.GeometryType = is3.GeometryType.Polygon layerDef.OutlineColor = Colors.Gray layerDef.Color = Colors.LightGray layerDef.FillStyle = is3.SimpleFillStyle.Solid layerDef.EnableLabel = True layerDef.LabelTextExpression = '[Name]' layerDef.LabelBackgroundColor = Colors.White strLayerWP = is3.addGdbLayer(viewWP, layerDef) return strLayerWP
def addMapLayer(viewWP): layerDef = is3.LayerDef() layerDef.Name = 'MonPoint' #--->注:原先ArcMap内打包时对应的图层名称 layerDef.GeometryType = is3.GeometryType.Point #--->注:图层要素的表现形式,Point(点),Polyline(线),Polygon(面) layerDef.Color = Colors.Green #--->注:图层要素的颜色 layerDef.FillStyle = is3.SimpleFillStyle.Solid layerDef.EnableLabel = True layerDef.LabelTextExpression = '[Name]' layerWrapper = is3.addGdbLayer(viewWP, layerDef) return
def addRinLayer(viewWP): layerDef = is3.LayerDef() layerDef.Name = 'DES_RIN' layerDef.GeometryType = is3.GeometryType.Polygon layerDef.OutlineColor = Colors.Blue layerDef.Color = Colors.LightGray layerDef.FillStyle = is3.SimpleFillStyle.Solid layerDef.EnableLabel = True layerDef.LabelTextExpression = '[Name]' layerDef.LabelWhereClause = "[Name] LIKE '%00' OR [Name] LIKE '%50'" layerDef.LabelBackgroundColor = Colors.Yellow rinLayerWP = is3.addGdbLayer(viewWP, layerDef) return rinLayerWP
def addCRLQJMonitoringLayer(viewWP): #横断面中的纵向倾角传感器支点 layerDef = is3.LayerDef() layerDef.Name = 'MON_LDIP_TJ' layerDef.GeometryType = is3.GeometryType.Point layerDef.OutlineColor = Colors.Blue layerDef.EnableLabel = True layerDef.LabelTextExpression = '[Name]' layerDef.IsVisible = False layerDef.LabelBackgroundColor = Colors.Green layerDef.MarkerSize = 12 layerDef.MarkerStyle = is3.SimpleMarkerStyle.Triangle layerWrapper = is3.addGdbLayer(viewWP, layerDef) return layerWrapper
def addBhLayer(viewWP): defaultsymbol = is3.SimpleMarkerSymbolDef(Colors.Blue, 12.0, is3.SimpleMarkerStyle.Circle) symbol1 = is3.SimpleMarkerSymbolDef(Colors.Green, 12.0, is3.SimpleMarkerStyle.Circle) symbol2 = is3.SimpleMarkerSymbolDef(Colors.Black, 12.0, is3.SimpleMarkerStyle.Circle) fields = ObservableCollection[str](['BoreholeType']) info1 = is3.UniqueValueInfoDef(symbol1, ObservableCollection[object](['х║ма©в'])) info2 = is3.UniqueValueInfoDef(symbol2, ObservableCollection[object](['╬╡а╕╢╔л╫©в'])) infos = ObservableCollection[is3.UniqueValueInfoDef]((info1, info2)) uniquevalue_renderer = is3.UniqueValueRendererDef(defaultsymbol, fields, infos) layerDef = is3.LayerDef() layerDef.Name = 'GEO_BHL' layerDef.GeometryType = is3.GeometryType.Point #layerDef.Color = Colors.Blue #layerDef.MarkerSize = 12 #layerDef.MarkerStyle = is3.SimpleMarkerStyle.Circle layerDef.RendererDef = uniquevalue_renderer layerDef.EnableLabel = True layerDef.LabelTextExpression = '[Name]' bhLayerWrapper = is3.addGdbLayer(viewWP, layerDef) return bhLayerWrapper
def addLayer(viewWP): layerDef = is3.LayerDef() layerDef.Name = 'HorDis_RetainingPile' layerDef.GeometryType = is3.GeometryType.Point layerDef.Color = Colors.Blue layerDef.MarkerSize = 12 layerDef.MarkerStyle = is3.SimpleMarkerStyle.Circle layerDef.EnableLabel = True layerDef.LabelTextExpression = '[Name]' layerWrapper = is3.addGdbLayer(viewWP, layerDef) layerDef = is3.LayerDef() layerDef.Name = 'Settl_RetainingPile' layerDef.GeometryType = is3.GeometryType.Point layerDef.Color = Colors.Green layerDef.MarkerSize = 12 layerDef.MarkerStyle = is3.SimpleMarkerStyle.Square layerDef.EnableLabel = True layerDef.LabelTextExpression = '[Name]' layerWrapper = is3.addGdbLayer(viewWP, layerDef) layerDef = is3.LayerDef() layerDef.Name = 'Settl_Ground' layerDef.GeometryType = is3.GeometryType.Point layerDef.Color = Colors.Green layerDef.MarkerSize = 12 layerDef.MarkerStyle = is3.SimpleMarkerStyle.Triangle layerDef.EnableLabel = True layerDef.LabelTextExpression = '[Name]' layerWrapper = is3.addGdbLayer(viewWP, layerDef) layerDef = is3.LayerDef() layerDef.Name = 'Settl_GroundGroup' layerDef.GeometryType = is3.GeometryType.Polyline layerDef.Color = Colors.Cyan layerDef.LineWidth = 3 layerDef.EnableLabel = True layerDef.LabelTextExpression = '[Name]' layerWrapper = is3.addGdbLayer(viewWP, layerDef) layerDef = is3.LayerDef() layerDef.Name = 'HorDis_1stCircularStrut' layerDef.GeometryType = is3.GeometryType.Point layerDef.Color = Colors.Red layerDef.MarkerSize = 12 layerDef.MarkerStyle = is3.SimpleMarkerStyle.Square layerDef.EnableLabel = True layerDef.LabelTextExpression = '[Name]' layerWrapper = is3.addGdbLayer(viewWP, layerDef) layerDef = is3.LayerDef() layerDef.Name = 'SoilPressure' layerDef.GeometryType = is3.GeometryType.Point layerDef.Color = Colors.Red layerDef.MarkerSize = 12 layerDef.MarkerStyle = is3.SimpleMarkerStyle.Triangle layerDef.EnableLabel = True layerDef.LabelTextExpression = '[Name]' layerWrapper = is3.addGdbLayer(viewWP, layerDef) layerDef = is3.LayerDef() layerDef.Name = 'WallDeflection' layerDef.GeometryType = is3.GeometryType.Point layerDef.Color = Colors.Cyan layerDef.MarkerSize = 12 layerDef.MarkerStyle = is3.SimpleMarkerStyle.Diamond layerDef.EnableLabel = True layerDef.LabelTextExpression = '[Name]' layerWrapper = is3.addGdbLayer(viewWP, layerDef) return layerWrapper