NGA Advanced Python Programming for GIS, GLGI 3001-1

Lesson 2 Assignment

PrintPrint

In this homework assignment, the task is to use requests and any other packages you may need to query the service and parse the features out of the returned JSON and save as a csv file or shapefile. You can select a service from esri, you can be adventurous and select a service from the Pennsylvania Spatial Data Access PASDA hub, or test your skill and see if you can extract vector data from one of NGA's visualizationScaled Mapservers.

The url for the services are:

esri fire related services https://services3.arcgis.com/T4QMspbfLg3qTGWY/ArcGIS/rest/services/_BLM_...

Pennsylvania Spatial Data Access (PASDA) https://www.pasda.psu.edu/

NGA https://geonames.nga.mil/gn-ags/rest/services/

Hint to return all features of the service, you still need to provide a valid sql query. For this assignment, you can use OBJECTID IS NOT NULL or 1=1 for the where clause. If you want to try other sql statements for other results, please feel free to do so.

If you are having issues with the url string, you can use the service query UI to see how it should be formatted.

Write-up

Produce a 400-word write-up on how the assignment went for you; reflect on and briefly discuss the issues and challenges you encountered and what you learned from the assignment.

Deliverable

Submit a single .zip file to the corresponding drop box on Canvas; the zip file should contain:

• The script

• Your 400-word write-up