Skip to content

Latest commit

 

History

History

DDLCreateDeleteAttributeAndSpatialIndexes

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

DDLCreateDeleteAttributeAndSpatialIndexes

This sample shows how to use the DDL APIs to generate and delete Spatial Indexes and Attribute Indexes.

View it live

Language:              C#
Subject:               Framework
Contributor:           ArcGIS Pro SDK Team <arcgisprosdk@esri.com>
Organization:          Esri, https://www.esri.com
Date:                  04/04/2024
ArcGIS Pro:            3.3
Visual Studio:         2022
.NET Target Framework: net8.0-windows

Resources

Community Sample Resources

Samples Data

  • Sample data for ArcGIS Pro SDK Community Samples can be downloaded from the Releases page.

How to use the sample

Using the sample:

  1. Open this solution in Visual Studio.
  2. Click the build menu and select Build Solution.
  3. Click the Start button to open ArCGIS Pro. ArcGIS Pro will open.
  4. Open any project.
  5. Click on the Add-in tab and verify that a "Feature Indexing" group was added.
  6. Notice the buttons in the FeatureIndexing group.
  7. Tap the "Create Feature With Index" button.
    UI
  8. Add the new Database into the Catalog pane.
    UI
  9. Expand the newly added database.
  10. Right click on the "Buildings" Feature class.
  11. Open the table
    UI
  12. Notice the "*" denotes indexing which can be seen on the name and address name fields.
    UI
  13. Tap the "Add Indexs To An Existing Data Set" button.
    UI
  14. Refresh the database
  15. Right click on the "Building" Feature class.
  16. Open the table.
    UI
  17. Notice the "*" can be seen on buildingUsage and buildingColor name fields.
    ![UI] (Screenshots/Screen5.png)
  18. Notice when hovering over a field name it displays information regarding whether or not a field is indexed.
    UI
  19. In order to delete the SpatialIndex Tap the "Remove Spatial Index" button.
    UI
  20. This will delete the indexing on the Shape field.
    UI
  21. In order to delete the Attribute index Tap the "Remove Attribute Index" button.
    UI
  22. Notice the attribute "name" and "address" are no longer indexed.
    UI

      ArcGIS Pro SDK for Microsoft .NET Framework              Home | API Reference | Requirements | Download | Samples