Skip to Content
Mastering ArcGIS Enterprise Administration
book

Mastering ArcGIS Enterprise Administration

by Chad Cooper
October 2017
Intermediate to advanced
382 pages
11h 26m
English
Packt Publishing
Content preview from Mastering ArcGIS Enterprise Administration

Overwriting the feature layer

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 ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Mastering ArcGIS Server Development with JavaScript

Mastering ArcGIS Server Development with JavaScript

Raymond Kenneth Doman

Publisher Resources

ISBN: 9781788297493Supplemental Content