Advertisement
Guest User

Untitled

a guest
May 27th, 2019
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 KB | None | 0 0
  1. TASK 2
  2. mxd = arcpy.mapping.MapDocument("D:/GIS_EXAM/Giorgi_Abuladze/ddtc_unit_1-20190527T131937Z-001/ddtc_unit_1/ddtc_unit_1.mxd")
  3. arcpy.mapping.ExportToPDF(mxd, "out.pdf")
  4.  
  5. TASK 3
  6. mxd = arcpy.mapping.MapDocument("D:/GIS_EXAM/Giorgi_Abuladze/ddtc_unit_1-20190527T131937Z-001/ddtc_unit_1/ddtc_unit_1.mxd")
  7. layer = arcpy.mapping.ListLayers(mxd)[0]
  8. for att in attributes: print(att.name);
  9.  
  10. # OUTPUT:
  11. OBJECTID
  12. SHAPE
  13. FeatureID
  14. ZOrder
  15. AnnotationClassID
  16. Element
  17. SymbolID
  18. Status
  19. TextString
  20. FontName
  21. FontSize
  22. Bold
  23. Italic
  24. Underline
  25. VerticalAlignment
  26. HorizontalAlignment
  27. XOffset
  28. YOffset
  29. Angle
  30. FontLeading
  31. WordSpacing
  32. CharacterWidth
  33. CharacterSpacing
  34. FlipAngle
  35. Override
  36. SHAPE_Length
  37. SHAPE_Area
  38.  
  39. TASK 4
  40. with arcpy.da.SearchCursor("Latitude Labels", ("Status", "FontName"), 'FontSize = 10') as cursor:
  41. ... for row in sorted(cursor):
  42. ... print("Font Name: " + row[1]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement