SlideServe
Menu
Préférences
© SlideServe · v2026

Arc: Getting Data

anaya avatar
6 diapositives · 248 Views · Oct 04, 2014

Arc: Getting Data. Dr Andy Evans. Getting Data/Features from Layers. Assign your Layer to an appropriate Interface. IGeoFeatureLayer : Treat as geographical data IFeatureLayer : Treat as a general Layer IAttributeTable : Treat as an attribute table

Arc: Getting Data - slide 1
01 / 6Arc: Getting Data
1 / 17

Télécharger la présentation

Arc: Getting Data
Une image / un lien ci-dessous est fourni (tel quel) pour télécharger la présentation

Politique de téléchargement : le contenu du site vous est fourni TEL QUEL pour votre information et votre usage personnel ; il ne peut être vendu, concédé sous licence ni partagé sur d’autres sites sans l’accord de son auteur.Le contenu vous est fourni TEL QUEL, pour votre information et votre usage personnel uniquement. Téléchargez la présentation en cliquant sur ce lien. Lors du téléchargement, si vous ne parvenez pas à télécharger une présentation, l’éditeur a peut-être supprimé le fichier de son serveur.Pendant le téléchargement, si vous ne parvenez pas à obtenir une présentation, le fichier a peut-être été supprimé par l’éditeur.

F I N

Plus de contenu associé

Transcription de la présentation
  1. Arc: Getting Data Dr Andy Evans

  2. Getting Data/Features from Layers Assign your Layer to an appropriate Interface. IGeoFeatureLayer: Treat as geographical data IFeatureLayer: Treat as a general Layer IAttributeTable: Treat as an attribute table Get the Attribute Table or search the Layer.

  3. Getting data Once we have our Layer, we want to get data from it. Map AttributeTable Layer Feature 234 Values

  4. Getting the Attribute Table Assuming we have a Layer Enumeration, we set the Layer to an IAttributeTable. import com.esri.arcgis.geodatabase.*; IAttributeTablepAttributeTable = (IAttributeTable) enumLayer.next(); ITable table = pAttributeTable.getAttributeTable(); IRowrow = null; for (int i = 1; i <= table.rowCount(null); i++) { row = table.getRow(i); int index = table.findField("School"); Object value = row.getValue(index); }

  5. Get Layer as AttributeTable Get actual Table Get each row Get a particular Field Getting the Attribute Table IAttributeTablepAttributeTable = (IAttributeTable) enumLayer.next(); ITable table = pAttributeTable.getAttributeTable(); IRowrow = null; for (int i = 1; i <= table.rowCount(null) ; i++) { row = table.getRow(i); int index = table.findField("School"); Object value = row.getValue(index); }

  6. Getting data Alternative is to get data from a Feature. Map AttributeTable Layer Feature 234 Values First though, we need to get only the features we are interested in. We can search for these.