Maggie Samson
Quiz von , erstellt am more than 1 year ago

Geography Quiz am GEOM 73 - Python Quiz 5, erstellt von Maggie Samson am 14/04/2019.

66
2
0
Maggie Samson
Erstellt von Maggie Samson vor etwa 5 Jahre
Schließen

GEOM 73 - Python Quiz 5

Frage 1 von 10

1

Consider the following code:

mapdoc = arpy.mapping.MapDocument("CURRENT")

What does the keyword CURRENT refer to?

Wähle eine der folgenden:

  • a variable called CURRENT in preceding lines of code in the script

  • the map document current loaded into ArcMap

  • the map document in the current workspace

  • the most recently saved map document by ArcMap

Erklärung

Frage 2 von 10

1

Which of the following is (are) not a propery of a data frame object when using the ListDataFrames function? (check all that apply)

Wähle eine oder mehr der folgenden:

  • scale

  • extent

  • showLabels

  • dataSource

  • visible

  • name

Erklärung

Frage 3 von 10

1

Which of the following is (are) a method of the DataFrame object? (check all that apply)

Wähle eine oder mehr der folgenden:

  • getExtent

  • panToExtent

  • delete

  • save

  • zoomToSelectedFeatures

  • mapUnits

Erklärung

Frage 4 von 10

1

Not all layers have the same properties. Which method is used to determine whether a particular property (such as showLabels) applies to a specific layer?

Wähle eine der folgenden:

  • supports

  • contains

  • isValid

  • exists

Erklärung

Frage 5 von 10

1

Which one of the following functions of the ArcPy mapping module allows you to to add a layer before or after an already existing layer in a data frame?

Wähle eine der folgenden:

  • AddLayer

  • InsertLayer

  • AddLayerToGroup

  • UpdateLayer

Erklärung

Frage 6 von 10

1

Which method (s) can be used on map documents to update or fix broken data sources? (check all that apply)

Wähle eine oder mehr der folgenden:

  • findAndReplaceWorkspacePath

  • replaceWorkspaces

  • ListBrokenDataSources

  • findAndReplaceWorkspacePaths

  • FixBrokenDataSources

  • replaceDataSource

Erklärung

Frage 7 von 10

1

Which of the following is (are) not a layout element type that can be used in scripting using the ListLayoutElements function of the ArcPy mapping module? (check all that apply)

Wähle eine oder mehr der folgenden:

  • GRAPHIC_ELEMENT

  • DATA_ELEMENT

  • TEXT_ELEMENT

  • LEGEND_ELEMENT

  • SCALE_ELEMENT

Erklärung

Frage 8 von 10

1

Consider the following code:

import arcpy
mapdoc = arcpy.mapping.MapDocument("C:/Project/Study.mxd")

Which of the following correctly creates a list of the all the text elements on a layout?

Wähle eine der folgenden:

  • textlist = arcpy.mapping.ListLayoutElements(mapdoc, "", "Text")[0]

  • textlist = arcpy.mapping.ListLayoutElements(mapdoc, "TEXT_ELEMENT")

  • textlist = arcpy.mapping.ListLayoutElements(mapdoc, "", "Text")

  • textlist = arcpy.mapping.ListLayoutElements(mapdoc, "TEXT_ELEMENT")[0]

Erklärung

Frage 9 von 10

1

Which of the following is the ArcPy function used to create a PDF file of a map document?

Wähle eine der folgenden:

  • SaveToPDF

  • PrintMapToPDF

  • PDFDocumentCreate

  • ExportToPDF

Erklärung

Frage 10 von 10

1

Which of the following cannot be accomplished by using the ArcPy mapping module in a Python script? (check all that apply)

Wähle eine oder mehr der folgenden:

  • Add a new data layer to a data frame

  • Add a new data frame to a map document

  • Create a new empty map document

  • Add a scale bar to a map layout

Erklärung