Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- TASK 2
- mxd = arcpy.mapping.MapDocument("D:/GIS_EXAM/Giorgi_Abuladze/ddtc_unit_1-20190527T131937Z-001/ddtc_unit_1/ddtc_unit_1.mxd")
- arcpy.mapping.ExportToPDF(mxd, "out.pdf")
- TASK 3
- mxd = arcpy.mapping.MapDocument("D:/GIS_EXAM/Giorgi_Abuladze/ddtc_unit_1-20190527T131937Z-001/ddtc_unit_1/ddtc_unit_1.mxd")
- layer = arcpy.mapping.ListLayers(mxd)[0]
- for att in attributes: print(att.name);
- # OUTPUT:
- OBJECTID
- SHAPE
- FeatureID
- ZOrder
- AnnotationClassID
- Element
- SymbolID
- Status
- TextString
- FontName
- FontSize
- Bold
- Italic
- Underline
- VerticalAlignment
- HorizontalAlignment
- XOffset
- YOffset
- Angle
- FontLeading
- WordSpacing
- CharacterWidth
- CharacterSpacing
- FlipAngle
- Override
- SHAPE_Length
- SHAPE_Area
- TASK 4
- with arcpy.da.SearchCursor("Latitude Labels", ("Status", "FontName"), 'FontSize = 10') as cursor:
- ... for row in sorted(cursor):
- ... print("Font Name: " + row[1]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement