nerdexam
Esri

EADP10 · Question #34

An ArcGIS user wants to create a tool that reads a Web data source from the U.S. Geological Survey site and create a feature class of earthquakes over magnitude 1 that have occurred in the last…

The correct answer is D. Write a Python script that imports urllib. reads the data with urlopen and read methods and creates. See the full explanation below for the reasoning.

Question

An ArcGIS user wants to create a tool that reads a Web data source from the U.S. Geological Survey site and create a feature class of earthquakes over magnitude 1 that have occurred in the last seven days. The data source URL is a .txt file directly usable as x, v event data, once downloaded. The goal is to have a repeatable process to be run on demand overwriting the output each time with minimal user input and easy to understand for other users to whom the tool is provided What should the user do to read and process the data?

Options

  • Ause a third party scraping application to copy the data to a local file and read it as an x, y event
  • Bmanually copy the file to local disk before running and run the Make XY Event Layer tool
  • Cwrite a NET component that reads the data presents the data to ArcObjects as an x.v event and
  • DWrite a Python script that imports urllib. reads the data with urlopen and read methods and creates

How the community answered

(67 responses)
  • A
    7% (5)
  • B
    3% (2)
  • C
    10% (7)
  • D
    79% (53)

Community Discussion

No community discussion yet for this question.

Full EADP10 Practice