![]() The following instructions demonstrate how to query a map service for features, write the JSON response to a file, and convert the JSON file to a shapefile using the arcpy.JSONToFeatures_conversion() function. It is possible to use the script as-is, or format them into functions that take a URL argument.Īdjust the query parameters as needed (most, but not all, of the possible parameters are included). This article describes how to do so with a publicly shared map service using ArcPy and other built-in Python libraries. However, data can be downloaded from a map service in the form of JSON and the JSON code can be converted to a shapefile or Feature Class. In some cases, users enable the Feature Access function on map services to allow easy download of data. How To: Extract data from a map service using Python Summary
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |