why has one of the attribute names been changed by MATLAB when using the shaperead function to read a point shp file?
4 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
I have a point shp file 'ULS170527All.shp' with eleven attributes. The attributes are shown as follows in ArcGIS:

Then, I used the following expression to read it:
Tree = shaperead('ULS170527All.shp');
The following image shows the field names and data of the 'Tree' variable:

Is this a bug of MATLAB?
Did anyone have the similar problem?
6 commentaires
Réponse acceptée
Walter Roberson
le 18 Avr 2018
The code for shaperead contains,
reservedNames = {'Geometry', 'X', 'Y', 'Lat', 'Lon', ...
'BoundingBox', 'Height', 'INDEX'};I have not yet been able to figure out why Height and INDEX are reserved, but we can see from the code that it is deliberate.
1 commentaire
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Historical Contests dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!