October 2017
Intermediate to advanced
382 pages
11h 26m
English
The Excel spreadsheet of our stations is updated daily, so the feature service needs to be as well.
First, import our usual libraries, but this time we will also import the FeatureLayerCollection class from the arcgis.features module. This class will allow us to update our existing feature layer:
import pandas as pd
from arcgis.gis import GIS
from arcgis.features import FeatureLayerCollection
Connect to our Portal as follows:
gis = GIS("https://www.masteringageadmin.com/portal",
"portaladmin", "password")
We know the item ID of our feature service and it doesn't change, so let's use that to search for the item. We then take that item and pass it into FeatureLayerCollection.fromitem() to create a feature layer ...