Arcgis In Python

less than 1 minute read

How to use arcgis in python

Installation

conda install -c esri arcgis

Test installation

from arcgis.gis import GIS

my_gis = GIS()
m = my_gis.map()
m

image-title-here

Working with imagery

set item type to: Imagery Layer

import arcgis
from arcgis.gis import GIS
from IPython.display import display

gis = GIS()
items = gis.content.search("Landsat 8 Views", item_type="Imagery Layer", max_items=3)
for item in items:
    display(item)

image-title-here

Obtaining imagery based on their item id

l8_views = gis.content.get('4ca13f0e4e29403fa68c46d188c4be73')
l8_views

image-title-here

Accessing ImageryLayer from Imagery Layer items

Updated: