python

Add/Update Feature Layer Filter in ArcGIS Online with the ArcGIS API For Python

We are going to look at how we update/apply a filter for a layer in a WebMap in ArcGIS Online using the ArcGIS API for Python. The commented codeblock below will achieve this. from arcgis.gis import GIS from arcgis.mapping import WebMap ## access AGOL agol = GIS(“home”) ## access the WebMap Item wm_item = agol.content.get(“WebMap_Item_ID”) …

Add/Update Feature Layer Filter in ArcGIS Online with the ArcGIS API For Python Read More »

Export ArcGIS Online Layer to Feature Class Without Attachments using the ArcGIS API for Python

Today’s blog post is inspired by a question posed on Esri Communities. The question asks how to export hosted feature layers using only the ArcGIS API for Python, and specifically states not to use ArcPy. The usual method to extract data from ArcGIS Online is to export an item (a feature service) to a file …

Export ArcGIS Online Layer to Feature Class Without Attachments using the ArcGIS API for Python Read More »

Retrieving Domain Information from ArcGIS Online with the ArcGIS API for Python

The ArcGIS API for Python has a query_domains() method for a Feature Layer Collection object. A Feature Layer Collection object represents a Feature Service. In previous versions of the documentation it stated that this method was only available for Portal (Enterprise), but this has since been removed (in 2.2.0.1). Calling the query_domains() method on a …

Retrieving Domain Information from ArcGIS Online with the ArcGIS API for Python Read More »

Update ArcGIS Online WebMap Extent Based on Feature Geometry with the ArcGIS API for Python

If you have ever had to reset the extent of a WebMap after it has been let out in the wild for a while, then this workflow is for you. Here, we will focus in updating the extent for one WebMap, but you could certainly iterate through as many as required and update each extent …

Update ArcGIS Online WebMap Extent Based on Feature Geometry with the ArcGIS API for Python Read More »

Delete Identical Geometries based on OID with ArcPy & ArcGIS Pro

Why create this workflow… Every week I put time towards answering questions on three main platforms; GIS StackExchange, Esri Communities, and Reddit. I go under the alias Clubdebambos on each of them. This week I helped g3odood on Reddit who was looking to remove duplicate records based on geometry, but needed to keep the records …

Delete Identical Geometries based on OID with ArcPy & ArcGIS Pro Read More »

Book Review: Learning Geospatial Analysis with Python by Joel Lawhead

A decade ago I purchased the first edition of Learning Geospatial Analysis with Python by Joel Lawhead. I was fresh from graduating from the MSc in Geocomputation at Maynooth University where our lecturer, Martin Charlton, gave us a term I will always remember, “buttonology”. Buttonology, he described, was the pushing of buttons in ArcGIS (or …

Book Review: Learning Geospatial Analysis with Python by Joel Lawhead Read More »

Add Table from Hosted Service to Another and Create Relationship in ArcGIS Online using the ArcGIS API for Python

Data can often be provided as a Shapefile with an accompanying file containing the attribute information, or surplus attributes to compliment those in the Shapefile, such as a CSV for example. This is the case for Census Data in Ireland, provided by the Central Statistics Office (CSO), results are available in CSV format and can be related to various boundary types in …

Add Table from Hosted Service to Another and Create Relationship in ArcGIS Online using the ArcGIS API for Python Read More »

Extracting from an ArcGIS Online Feature Service to a File Geodatabase

In this blog post we will assess the options for extracting layers and tables from an ArcGIS Online Feature Service to Feature Classes and Tables in a File Geodatabase. We will use ArcPy, the ArcGIS API for Python, and a combination of both. If you are interested in learning ArcPy, then check out this course! …

Extracting from an ArcGIS Online Feature Service to a File Geodatabase Read More »