Shapefile Labels - or how to access the shapefile attribute database

4354
1
07-23-2014 01:26 AM
Labels (1)
LeeColclough
New Contributor

I'm loading various shapefiles using ArcGIS for WPF and displaying them on a map (the mechanism for doing this is taken from the ArcGIS WPF runtime examples - see http://www.arcgis.com/home/item.html?id=953a530ada30477d95cc69e788268bc9).

I have a shapefile that contains Point information, and contained in it's attributes are the text labels that apply to those points. I cannot see how to access that information. I know the DBF file is being used as if I delete that file the shapefile will not render as it has no symbol information. Despite this, I cannot see when debugging the provided example how to access this information.

Obviously I could simply open the .dbf file manually but that seems awfully clunky. Does anyone have any help or pointers for me?

Many thanks in advance.

Lee.

0 Kudos
1 Reply
nakulmanocha
Esri Regular Contributor

If you use ArcGIS Runtime for .NET which supersedes WPF API. Then you can add and query a shapefile to get its attributes. I don't think its possible with ArcGIS Runtime for WPF.

0 Kudos