Create data sources for feature analysis

Learn how to create, import, and enrich hosted feature layers for use in feature analysis.

To perform feature analysis, you need an input data source that contains feature data. The easiest format to use is data stored in ArcGIS as a hosted feature layer.

This tutorial shows you how to prepare data for feature analysis using the developer dashboard, ArcGIS Online, and ArcGIS Map Viewer. You can create a hosted feature layer by importing your own data, defining a new layer from scratch, or generating one programmatically. After creating a dataset, you can use Map Viewer to enrich it with information from the ArcGIS enrichment service.

Prerequisites

How to create data

There are different ways to create and enhance your data for use in feature analysis:

  1. Import data
  2. Create data
  3. Generate data
  4. Enrich data

1. Import your data

You can convert existing data into a hosted feature layer by uploading it using ArcGIS Online or the developer dashboard. This will allow you to use the data for spatial analysis and share it publicly with other users.

You can define the feature geometry of your data using either coordinate locations or street addresses. Supported file formats include CSV, GeoJSON, GPX, GeoDatabase, Shapefile, and Scene Layer Package.

The general steps to import your data are:

  1. Format your data as CSV, GeoJSON, or one of the other supported formats.

  2. Go to your developer dashboard.

  3. Click Layers > Import data and upload your data from your computer.

  4. If necessary, identify the location information in your data by selecting fields containing coordinates or street addresses.

  5. Provide a title, tags, and description for your layer in the Item Details pane.

  6. Click Create layer to create a new hosted feature layer.

  7. Set the access permissions under Settings on the new item page.

  8. Copy the Layer URL from the layer's item page to use the feature layer in a feature analysis.

See the examples below to learn how to import specific file types.

Import a store location CSV file

This example explains how to create a new hosted feature layer containing Atlanta store locations from a CSV file. It uses street addresses to provide location information, rather than spatial coordinates.

Steps

  1. Download the Atlanta stores CSV file.

  2. Go to your developer dashboard.

  3. Click Layers > Import data and upload the CSV from your computer.

  4. Select Use address columns to geocode the addresses present in the file. Match the ADDRESS, CITY, STATE, and ZIP CSV columns to the Address or Place, CITY, Region, and Postal address parts.

  5. Define the data types of each CSV column. You can leave these values at the default settings.

  6. Provide a title, tags, and description for the new customers layer in the Item Details pane.

  7. Click Create layer to create a new hosted feature layer.

  8. Copy the Layer URL from the layer's item page to use the feature layer in a feature analysis.

Result

The Atlanta stores feature layer is displayed in the application below. To learn how to use the layer in a feature analysis, go to How to perform feature analysis.

Stores and restaurants in the Atlanta metropolitan area

Import a trail route GPX file

This example explains how use ArcGIS Map Viewer to create a new hosted feature layer of the Santa Monica backbone trail from a GPX file. You can only import GPX files using Map Viewer Classic.

Steps

  1. Download the Backbone trail GPX file.

  2. Go to ArcGIS Online and sign in.

  3. In the top navigation bar, click Map to open Map Viewer. Move to Map Viewer Classic by clicking Open in Map Viewer Classic.

  4. Click Add > Add layer from file > Choose file and upload the GPX file from your computer. Click Import Layer to add the trail route to your map.

  5. Save the imported layer as an item by clicking the ellipsis under the layer name and selecting Save Layer.

  6. In the Create Item dialog, set the following parameters:

    • Title: Backbone Trail
    • Tags: Trails
  7. Click Create Item to create a new feature collection.

  8. Open the item page of the new layer by clicking the ellipsis under the layer name and selecting Show Item Details.

  9. In the item page, click Publish and set the following parameters:

    • Title: Backbone Trail
    • Tags: Trails
  10. Click Save to publish a new hosted feature layer containing your data.

  11. In the item page of the hosted feature layer, copy the URL at the bottom to use the layer in a feature analysis.

Result

The Backbone trail feature layer is displayed in the application below. To learn how to use the layer in a feature analysis, go to How to perform feature analysis.

2. Create new data

You can use ArcGIS tools to create a new feature layer and populate it with data interactively in your browser. To do this, use ArcGIS Online or the developer dashboard to make an empty feature layer, then edit it using ArcGIS Map Viewer to add features. This method of data creation is a great way to make personalized datasets, such as trail photoshoot locations or countries that you've visited.

The following steps explain how to create an empty feature layer and populate it with data:

Create an empty feature layer

Use data management tools to create a new feature layer that is powered by a feature service. The feature service will not initially contain geometries or attributes.

  1. Sign in to your ArcGIS account.

  2. In the developer dashboard, click Layers > Create data > New hosted layer (Feature layer).

  3. Set the Geometry type and Coordinate system of the layer in the Data Structure pane.

  4. Add attribute fields in the Fields window. Fields require a name and data type.

  5. Click Create Layer to create a new hosted feature layer.

  6. Go to Settings on the item page of the new layer.

  7. Check Allow editing under Editing settings to enable editing on the layer.

Add features with Map Viewer

Map Viewer can be used to add and edit feature layer data. Use it to populate your new feature layer with feature data. You can also use this process to edit features in existing layers.

  1. Open the ArcGIS Online item page of the hosted feature layer you created in the previous step.

  2. Click the dropdown next to Open in Map Viewer and choose Open in Map Viewer Classic with full editing control.

  3. In the Details pane, find your new feature layer and click Show Table.

  4. In the feature layer data table, click the more options button and select Add Field to create a new data field.

  5. Enter the name, display name, and data type of your new field and click Add New Field to add it to your layer. You can create as many data fields for your layer as you want.

  6. When you have finished preparing data fields, zoom to the desired extent of your map. Click Edit to open the feature editor.

  7. Click New Feature in the Add Features panel. Click on the map to create a new feature record.

  8. Populate the field values and attachments for your new feature. When you are ready to add the feature, click Close. You can create as many features for your layer using this method as you want.

  9. When you are finished adding features, Save your feature layer in order to write your changes to the feature layer.

  10. Copy the feature layer URL from its item page to use the feature layer in a feature analysis.

See the examples below to learn how to create different types of feature layers.

Create a beach access point map

This example shows a user-created feature layer that represents Los Angeles Conuty Beaches.

Steps

The steps to create this layer are explained in the Create a new feature layer tutorial.

Results

The Los Angeles County Beaches feature layer is displayed in the application below. To learn how to use the layer in a feature analysis, go to How to perform feature analysis.

The Santa Monica Backbone trail, imported from a GPX track.

3. Generate data

Another method of creating data is to generate it programmatically with the Generate Tessellations analysis tool in Map Viewer. The Generate Tessellations tool covers a specified area in tessellated geometries of equal size. The tessellated shapes can be squares, hexagons, triangles, or diamonds, and their size is customizable. You can use tessellation layers in subsequent analyses such as aggregation, summarization, enrichment, and visualization.

The general steps to generate tessellations are:

  1. Open Map Viewer Classic and log in with your ArcGIS Online account.

  2. Zoom to your desired analysis extent and add any data layers you will use as boundaries to the map.

  3. In the Analysis menu, click Manage Data > Generate Tessellations.

  4. Set the geometry shape of the analysis to Square, hexagon, triangle, or diamond.

  5. Set the extent of the operation based on a shapefile or the current map extent.

  6. Set the bin size and units of each tessellated shape.

  7. Click Show credits to view the credit estimate for the operation.

  8. Click Run Analysis to perform the operation and wait for it to complete.

  9. Open the item page of the new tessellation layer by clicking the ellipsis under the layer name and selecting Show Item Details.

  10. Copy the layer URL to use the feature layer in a feature analysis.

See the examples below for different types of tessellations you can generate.

Generate tessellations from the map extent

This example uses the Generate Tessellations tool to create a grid of square tessellations around Memphis, TN. The tessellated area is based on the extent of the map view.

Steps

  1. Open Map Viewer Classic and log in with your ArcGIS Online account.

  2. In the Find address or place search bar, search for Memphis, TN.

  3. In the Analysis menu, click Manage Data > Generate Tessellations.

  4. Set the following tool parameters:

    1. Choose shape: Square
    2. Define extent: Same as display.
    3. Define bin size by specifying: Click the Area checkbox. Enter 3 and select Square Miles.
  5. Set the Result layer name to Memphis - 3 square mile bins.

  6. Click Show credits to view the credit estimate for the operation. The analysis will consume approximately 0.42 credits.

  7. Click Run Analysis to perform the operation and wait for it to complete.

  8. Open the item page of the new tessellation layer by clicking the ellipsis under the layer name and selecting Show Item Details.

  9. Copy the layer URL to use the feature layer in a feature analysis.

Results

The Result feature layer contains 420 equally sized 3-square-mile polygons. This hosted feature layer can be used in further analysis with operations such as Summarize Within and Aggregate Points.

Generate tessellations analysis showing 3 square mile bins generated from a map extent.

Generate tessellations from a boundary feature layer

This example uses the Generate Tessellations tool to create a layer of tessellated hexagons within the city boundaries of Portland. The tessellated area is based on a provided feature layer.

Steps

  1. Open the Portland boundary feature layer in Map Viewer Classic.

  2. Save a copy of the boundary by clicking Save > Save As.

  3. In the Analysis menu, click Manage Data > Generate Tessellations.

  4. Set the following tool parameters:

    1. Choose shape: Hexagon
    2. Define extent: Portland Boundary. Click the Only keep intersecting tessellations checkbox.
    3. Define bin size by specifying: Click the Area checkbox. Enter 1 and select Square Mile.
  5. Set the Result layer name to Portland - 1 mile hexbin results.

  6. Click Show credits to view the credit estimate for the operation. The analysis will consume approximately 0.3 credits.

  7. Click Run Analysis to perform the operation and wait for it to complete.

  8. Open the item page of the new tessellation layer by clicking the ellipsis under the layer name and selecting Show Item Details.

  9. Copy the layer URL to use the feature layer in a feature analysis.

Results

The Result feature layer contains 177 one-square-mile hexbin features. This hosted feature layer can be used in further analysis with operations such as Summarize Within and Aggregate Points.

Generate tessellations analysis showing 1 square mile hexagon bins generated from a feature layer boundary.

What's next?

To learn how to perform feature analysis using the layers you created, go to a tutorial:

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