Movatterモバイル変換


[0]ホーム

URL:


Skip to content
Esri Developer

ArcGIS API for Python

Overview of the ArcGIS API for Python

The ArcGIS API for Python is a powerful, modern and easy to use Pythonic library to perform GIS visualization and analysis, spatial data management and GIS system administration tasks that can run both interactively, and using scripts.

A Pythonic GIS API

The ArcGIS API for Python provides a pythonic representation of a GIS. A pythonic API is one which corresponds to Python best practices in its design and uses standard Python constructs and data structures with clean, readable idioms. The API makes it easy and natural for a Python programmer to use ArcGIS, and conversely, an ArcGIS user to script and automate their GIS.

The ArcGIS API for Python is implemented using the online and on-premises web GIS platform provided by ArcGIS Online and ArcGIS Enterprise respectively. The API has Python modules, classes, functions, and types for managing and working with elements of the ArcGIS platform information model.

Architecture of the API

The API is distributed as thearcgis package via conda and pip. Within thearcgis package, which represents the generic GIS model, functionality is organized into a number of different modules that makes it simple to use and understand. Each module has a handful of types and functions that are focused towards one aspect of the GIS.

This diagram below depicts the modules present in the API.

Thegis module is the most important and provides the entry point into the GIS. It lets you manage users, groups and content in the GIS. GIS admins spend a lot of time on this module.

The modules in green are used to access the various spatial capabilities or geographic datasets in the GIS. These modules include a family of geoprocessing functions, types and other helper objects for working with spatial data of a particular type.

The modules in blue provide additional functionality for your workflows. They include thegeocoding module which is for finding places, thegeometry module for representing the geometries of feature data and functions for working with them, thegeoprocessing module that makes it easy to import third party geoprocessing tools and work with them and thegeoenrichment module that helps you enrich your datasets with thematic information.

The modules in orange allow you to visualize and disseminate your GIS data and analysis. Thewidgets module includes the MapView Jupyter notebook widget for visualizing maps and layers, themapping module has types and functions for working with web maps and web layers and theapps module helps you create and manage web applications built with ArcGIS.

arcgis.gis module

Thearcgis.gis module provides an information model for GIS hosted within ArcGIS Online or Portal for ArcGIS. This module provides functionality to manage (create, read, update and delete) GIS users, groups and content. This module is the most important and provides the entry point into the GIS.

arcgis.gis submodules

These submodules assist in various administrative level operations on server and server extension components of a Web GIS deployment. It also contains modules for working with auxiliary functionality such as the specific deployments for ArcGIS Notebooks and various sharing aspects to a Web GIS.

arcgis.env module

Thearcgis.env module provides a shared environment used by the different modules. It stores globals such as the currently active GIS as well as environment settings that are common among all geoprocessing tools, such as the output spatial reference.

arcgis.features module

Entities located in space with a geometrical representation (such as points, lines or polygons) and a set of properties can be represented as features. Thearcgis.features module is used for working with feature data, feature layers and collections of feature layers in the GIS. It also contains the Spatially Enabled DataFrame (SeDF) which extends the popular Pandas DataFrame to work directly with spatial data.

arcgis.features submodules

Several submodules contain spatial analysis functions which operate against feature data. Themanagers submodule includes classes for administering the definition level functionality ofFeature Layers, as well as specialized classes for managingSynchronization,Versions and serviceWebhooks.

arcgis.raster module

Raster data is made up of a grid of cells, where each cell or pixel can have a value. Raster data is useful for storing data that varies continuously, as in a satellite image, a surface of chemical concentrations, or an elevation surface. Thearcgis.raster module contains classes and raster analysis functions for working with raster data and imagery layers.

arcgis.raster submodules

These submodules contain manyanalytical functions to work with imagery services. It includes a module for theRaster Function Template andorthomapping functionality.

arcgis.network module

Thearcgis.network module contains classes and functions for network analysis. Network layers and analysis can be used for operations such as finding the closest facility, the best route for a vehicle, the best routes for a fleet of vehicles, locating facilities using location allocation, calculating an OD cost matrix, and generating service areas.

arcgis.notebook module

Thearcgis.notebook module serves to provide support functions for managing ArcGIS Notebooks that operate identically regardless of the Web GIS deployment type. These operations aid in snapshots and execution functionality.

arcgis.schematics module

Schematics are simplified representations of networks, intended to explain their structure and make the way they operate understandable. Thearcgis.schematics module contains the types and functions for working with schematic layers and datasets.

arcgis.geoanalytics module

Thearcgis.geoanalytics module provides types and functions for distributed analysis of large feature and tabular datasets. These GeoAnalytics tools work with big data registered in the GIS’s datastores as well as with feature layers.

arcgis.geocoding module

Thearcgis.geocoding module provides classes and functions for geocoding, batch geocoding and reverse geocoding. Geocoders can find point locations of addresses, business names, and so on. The output points can be visualized on a map, inserted as stops for a route, or loaded as input for spatial analysis.

arcgis.geometry module

Thearcgis.geometry module defines useful geometry types for working with geographic information and GIS functionality. It provides functions which use geometric types as input and output as well as functions for easily converting geometries between different representations.

arcgis.geoenrichment module

Thearcgis.geoenrichment module provides the ability to get facts about a location or area. Using GeoEnrichment, you can get information about the people and places in a specific area or within a certain distance or drive time from a location. You can use this data to enhance the accuracy of your predictive models or better explain the inferences you gain from them.

arcgis.geoprocessing module

Users can create and share geoprocessing tools in the GIS. Thearcgis.geoprocessing module provides helper types with dynamically created methods to invoke these tools, and provides simple types that can be used as parameters for these tools along with native Python types.

arcgis.graph module

Thearcgis.graph module contains classes and functions for working with the entities and relationships of an ArcGIS Knowledge graph. The available functions allow for searching and querying the graph data, and viewing the data model of the graph database.

arcgis.realtime module

Thearcgis.realtime module provides types and functions for receiving real-time data feeds and sensor data streamed from the GIS to perform continuous processing and analysis. It includes support for stream layers that allow Python scripts to subscribe to the streamed feature data or broadcast updates or alerts.

arcgis.mapping module

Thearcgis.mapping module provides components for visualizing GIS data and analysis. This module includes WebMap and WebScene components that enable 2D and 3D mapping and visualization in the GIS. This module includes layers like MapImageLayer and VectorTileLayer, as well as anogc submodule for working with OGC services.

arcgis.widgets module

Thearcgis.widgets module provides components for visualizing GIS data and analysis. This module includes the MapView Jupyter notebook widget for visualizing maps and layers

arcgis.apps module

Thearcgis.apps module allows you to manage some of the web based applications available in ArcGIS.

arcgis.auth module

Thearcgis.auth module provides access to customrequests authentication handlers classes used for logging into the ArcGIS Web GIS systems. Users can customize and/or use these classes for their own python applications. 

How this website is organized

Theguide pages explain each individual concept of the API and the best practices. Thesample notebooks explain how to use the API to write Python scripts, incorporating capabilities such as mapping, query, analysis, geocoding, routing, portal administration, and more to solve real world problems. If you are looking for recipes, you may find them as sample notebooks.

Theapi reference provides a reference for each class, its properties and methods in thearcgis package. TheArcGIS API for Python Community is anEsri Community where you can share your thoughts about the API, request for features, conduct polls, report bugs, ask questions and engage with the Python community in general.

Your browser is no longer supported. Please upgrade your browser for the best experience. See ourbrowser deprecation post for more details.


[8]ページ先頭

©2009-2025 Movatter.jp