View on GitHub

Read a shapefile and display its metadata.

Image of show shapefile metadata sample

Use case

Display metadata for the shapefile currently being viewed—such as tags, credits, and a summary.

How to use the sample

Open the sample to automatically view the shapefile’s metadata.

How it works

  1. Load the shapefile using the ShapefileFeatureTable with the assets URL.
  2. Access the shapefile metadata through the info property of the feature table.
  3. Retrieve and display the thumbnail image from fileInfo.thumbnail.
  4. Display the shapefile’s summary, credits, and tags from the metadata.

Relevant API

  • ShapefileFeatureTable
  • ShapefileFeatureTable.info
  • ShapefileInfo
  • ShapefileInfo.credits
  • ShapefileInfo.summary
  • ShapefileInfo.tags
  • ShapefileInfo.thumbnail

Offline data

Aurora Colorado Shapefiles is available as an item hosted on ArcGIS Online.

About the data

This sample uses a shapefile showing bike trails in Aurora, CO. The Aurora Colorado Shapefiles are available as an item on ArcGIS Online.

Tags

credits, description, metadata, package, shape file, shapefile, summary, symbology, tags, visualization