From the course: Python Scripting Using the ArcGIS API for Python
Unlock this course with a free trial
Join today to access over 24,700 courses taught by industry experts.
Searching for content in your portal
From the course: Python Scripting Using the ArcGIS API for Python
Searching for content in your portal
- [Instructor] The ArcGIS API has a lot of capabilities for working with geospatial data in ArcGIS notebooks. But how do I actually get to the data and start working with the feature services, and the points, and the lines, and the polygons, and the rasters? Well, you do that using a search to grab hold of the data you want to work with. Actually, there are several different ways. Search is the first way we'll look at. Let's see how that search works. I've got a notebook already open here, and I've run this first cell that connects me to my ArcGIS Online account. If I want to actually find a map that's sitting out in ArcGIS Online or my Portal, I can use the .search method on this GIS Objects ContentManager property. Let me show you. So I'll add another cell and I'll use g.content.search. Inside the parentheses go the parameters for the search, and there's several different things you can specify. Usually, the first thing we specify is a query string. So I'll say query equal. Now this…