I would like to achieve the following functionality through arcpy:
import arcpy arcpy.env.overwriteOutput = True mxd = arcpy.mapping.MapDocument("CURRENT") df = arcpy.mapping.ListDataFrames(mxd, "*")[0] arcpy.MakeFeatureLayer_management ("base_layer", "new_layer_1","DATE_TIME" = TO_DATE('13-JUL-2010 12:40:00','DD-MON-YYYY HH24:MI:SS')) arcpy.ApplySymbologyFromLayer_management("out_time",r"C:\WIP\Shape files\KARTHIK.TEST_TABLE.lyr") arcpy.mapping.AddLayer(df,out_time) arcpy.RefreshActiveView()
أكثر...
- Querying an existing baselayer on time and create a new layer
- Apply symbology from an existing layer and add the new layer to the current session's data frame on top of the basemap
import arcpy arcpy.env.overwriteOutput = True mxd = arcpy.mapping.MapDocument("CURRENT") df = arcpy.mapping.ListDataFrames(mxd, "*")[0] arcpy.MakeFeatureLayer_management ("base_layer", "new_layer_1","DATE_TIME" = TO_DATE('13-JUL-2010 12:40:00','DD-MON-YYYY HH24:MI:SS')) arcpy.ApplySymbologyFromLayer_management("out_time",r"C:\WIP\Shape files\KARTHIK.TEST_TABLE.lyr") arcpy.mapping.AddLayer(df,out_time) arcpy.RefreshActiveView()
أكثر...