COORDENADAS DE UN ARCHIVO SHAPEFILE
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Carlos Escamilla León
el 28 de Mzo. de 2024
Respondida: Avni Agrawal
el 2 de Abr. de 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 comentarios
Dyuman Joshi
el 28 de Mzo. de 2024
How are you reading the shp file? Is the variable name correct?
Could you share the file? Use the paperclip button to attach.
Respuesta aceptada
Avni Agrawal
el 2 de Abr. de 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 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Bounding Regions en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!