COORDENADAS DE UN ARCHIVO SHAPEFILE
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Carlos Escamilla León
am 28 Mär. 2024
Beantwortet: Avni Agrawal
am 2 Apr. 2024
Hello community, I am trying to read the coordinates from a .shp file, however, I am getting an error that says it does not recognize the "Lat" variable that I read from my .shp
My question is, how can I fix it?
I hope someone can help me, I would greatly appreciate it.
2 Kommentare
Dyuman Joshi
am 28 Mär. 2024
How are you reading the shp file? Is the variable name correct?
Could you share the file? Use the paperclip button to attach.
Akzeptierte Antwort
Avni Agrawal
am 2 Apr. 2024
I understand that you are trying to read the co-ordinates from the above mentioned .shp file. To ensure the .shp file functions as expected, there are several important considerations to keep in mind.You might have encountered several warnings regarding missing .shx and .dbf files.
Regarding the .shx file warning:
- The .shx file is an index file that accompanies the .shp file. MATLAB is warning you that it couldn't find this file. It's not critical for reading the shapefile since MATLAB can rebuild the index from the .shp file, but having the .shx file can speed up the reading process.
Regarding the .dbf file warning:
- The .dbf file contains attribute data for each shape in the shapefile. The warning indicates that MATLAB couldn't find this file, so it will read the geometric data from the .shp file, but it won't be able to attach any attribute data to the shapes. Ensure that the .dbf file is in the same directory as the .shp file and that its name matches the .shp file name (except for the extension).
Note: Make sure that the .shp, .shx, and .dbf files for 07ent are all in the same directory and that they are accessible (not corrupted or locked by another program).
I hope this helps!
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Bounding Regions finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!