Intersect a layer from AGOL and a layer from a local GDB

465
1
03-17-2017 09:16 AM
by Anonymous User
Not applicable

Hi all,

First of all sorry because I am not well versed in python. I am trying to learn as I go. I am trying to intersect a layer from AGOL and a layer from one of my local GDB. How would I achieve this? 

Thanks,

Alex

Tags (2)
0 Kudos
1 Reply
JonathanQuinn
Esri Frequent Contributor

You'll first need to access the geometry and attributes of the service and store it in a feature set, or save it to disk as a feature class.  After a quick search, this can be done using a few tools that are available:

http://epro.maps.arcgis.com/home/item.html?id=16e5cc64178941839eca62837f168ec9 

Download ArcGIS Online Feature Service or ArcGIS Server Feature/Map Service 

You don't really need to store the feature class on disk.  Simply make a request to the query endpoint of the service, and store the results in a feature set.  If there are more than 1000 features and the maximum number of records returned by a query is 1000, (which is the default), you'll need to make additional query requests to get all of the data.  Once you have the feature set, you can use that as input with your other feature class to run the intersect.

0 Kudos