intro to feature analysis guide#2526
Conversation
|
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
| @@ -0,0 +1,321 @@ | |||
| { | |||
There was a problem hiding this comment.
Feature analysis is the process of performing server-side spatial analysis operations on feature data, such as points, lines, and polygons. These operations can be used to find features, merge or overlay features, calculate statistics, and identify patterns or relationships in feature data. The operation you choose depends on the problem you are trying to solve.
Feature analysis can help solve different types of spatial problems. For example, you can use it to:
- Understand where features are located or where multiple features exist.
- Measure the size, shape, and distribution of features.
- Analyze relationships and interactions between features.
- Detect and quantify patterns in feature data.
- Make predictions based on existing or theoretical patterns and relationships.
Reply via ReviewNB
| @@ -0,0 +1,321 @@ | |||
| { | |||
There was a problem hiding this comment.
To perform feature analysis, you can use a hosted feature layer as input to an analysis tool. The feature analysis service accesses the hosted data, executes the operation, and stores the result as either a hosted feature layer or an in-memory feature collection.
In the ArcGIS API for Python, feature analysis tools are available in the features.analysis module and other features submodules. Unless otherwise noted in the API reference for a specific tool, analysis tools support the following input formats:
FeatureCollection— An in-memory collection ofFeatureobjects with rendering information.FeatureLayer— An individual layer in a feature service.FeatureLayerCollection— A collection of feature layers and tables that represents a feature service in the Python API.Item— An item of typeFeatureCollectionorFeatureLayerCollection. Only the first layer is used.
Feature analysis tools usually return one of the following output formats, unless otherwise noted for a specific tool:
FeatureLayer— A hosted feature layer in the ArcGIS organization you are authenticated to. This is returned whenoutput_nameis provided.FeatureCollection— An in-memory result that can be accessed directly.
Reply via ReviewNB
| @@ -0,0 +1,321 @@ | |||
| { | |||
There was a problem hiding this comment.
Let’s look at an example that finds specific data of interest, identifies hot spots within that data, and displays the analysis results on a map.
Reply via ReviewNB
| @@ -0,0 +1,321 @@ | |||
| { | |||
There was a problem hiding this comment.
gis = GIS(profile = 'your_online_profile')
This is extremely nitpick but below you add spaces between parameters, the equal sign, and the value.
Reply via ReviewNB
| @@ -0,0 +1,321 @@ | |||
| { | |||
There was a problem hiding this comment.
We access crime incident data for Washington, DC, for the first half of 2026 using the item ID of the feature layer collection.
or maybe FeatureLayerCollection ? The next statement down you do FeatureLayer so it would follow same format.
Reply via ReviewNB
| @@ -0,0 +1,321 @@ | |||
| { | |||
There was a problem hiding this comment.
We verify that a FeatureLayer object was extracted from the item. Then, we run the tool and provide the name to use for the output layer that will be created in our GIS organization.
Reply via ReviewNB
| @@ -0,0 +1,321 @@ | |||
| { | |||
There was a problem hiding this comment.
I would add code comments:
# Create a map centered on Washington DC
map1 = gis.map("Washington, DC")
# Add results and change basemap
map1.content.add(hot_spots_result)
map1.basemap.basemap = 'arcgis-dark-gray'
# Display
map1
Reply via ReviewNB
| @@ -0,0 +1,321 @@ | |||
| { | |||
There was a problem hiding this comment.
Feature analysis tools provide an easy and effective way to analyze data hosted in your Web GIS organization.
To learn more, explore the following feature analysis guides and samples.
Guides:
.
.
.
Samples:
.
.
.
Reply via ReviewNB
|
@ManushiM The code looks good in the guide but I left comments on the wording. Feel free to change as you see fit. I just found the language to be a bit colloquial at times for a guide. |
closes https://github.com/ArcGIS/geosaurus/issues/13316
Checklist
Please go through each entry in the below checklist and mark an 'X' if that condition has been met. Every entry should be marked with an 'X' to be get the Pull Request approved.
imports are in the first cell?arcgisimports? Note that in some cases, for samples, it is a good idea to keep the imports next to where they are used, particularly for uncommonly used features that we want to highlight.GISobject instantiations are one of the following?gis = GIS()gis = GIS('home')orgis = GIS('pro')gis = GIS(profile="your_online_portal")gis = GIS(profile="your_enterprise_portal")./misc/setup.pyand/or./misc/teardown.py?api_data_owneruser?api_data_owneraccount and change the notebook to first download and unpack the files.<img src="base64str_here">instead of<img src="https://some.url">? All map widgets contain a static image preview? (Callmapview_inst.take_screenshot()to do so)os.path.join()? (Instead ofr"\foo\bar",os.path.join(os.path.sep, "foo", "bar"), etc.)Export Training Data Using Deep Learningtool published on geosaurus org (api data owner account) and added in the notebook usinggis.content.getfunction?gis.content.getfunction? Note: This includes providing test raster and trained model.