Glen Bambrick

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 »

Discuss the Differences Between Geographical Information Systems & Geographical Information Science.

I was digging through some material from my MSc in Geocomputation from Maynooth University and came across this exam question. The MSc was fantastic. We had access to the brains of Chris Brunsdon the late Martin Charlton, two of the three people (Stewart Fotheringham, another stalwart in geospatial statistics was the third) that gave us …

Discuss the Differences Between Geographical Information Systems & Geographical Information Science. Read More »