ArcGIS API for 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 »

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 »

ArcGIS Pro Definition Query Masterclass with ArcPy & Python: Udemy Course

Unleash the full potential of Definition Queries as you dive deep into their intricacies! Gain a profound understanding of Definition Queries and their pivotal role in data visualization and analysis within ArcGIS Pro. Explore their benefits in creating efficient maps and managing data seamlessly. Our course, ArcGIS Pro Definition Query Masterclass with ArcPy & Python, …

ArcGIS Pro Definition Query Masterclass with ArcPy & Python: Udemy Course Read More »

Content Management with the ArcGIS (Online) API for Python: Udemy Course

Discover the power of automating your ArcGIS Online Content Management with our groundbreaking course! Are you ready to revolutionize your ArcGIS Online workflows? Expand your ArcGIS Online automation capabilities with the first-ever Udemy course dedicated to the ArcGIS API for Python. Unleash the potential to streamline your tasks and elevate your career by mastering content …

Content Management with the ArcGIS (Online) API for Python: Udemy Course Read More »

Categories Schema for ArcGIS Online Items with the ArcGIS API for Python

Creating an Item Categories Schema with the ArcGIS API for Python (API) can be somewhat difficult to get your head around, hopefully this blog post will help with simplifying the process. In a nutshell, an Item Categories Schema enables an organization to categorize their items thematically. There can be 3 levels to a Category; the …

Categories Schema for ArcGIS Online Items with the ArcGIS API for Python Read More »

Update Split Policy or Merge Policy for a Domain in an ArcGIS Online Hosted Feature Service with the ArcGIS API for Python

You may come across a couple of scenarios…1. You have published a hosted feature service to ArcGIS Online (AGOL) with domains and the dataset has matured with edits. You do not want unshare, export, download, and republish to overwrite the feature service but you need to update the split/merge policy to make edits easier and …

Update Split Policy or Merge Policy for a Domain in an ArcGIS Online Hosted Feature Service with the ArcGIS API for Python Read More »