Borrar filtros
Borrar filtros

Mapping toolbox: how to find the lenth unit of a shape file

1 visualización (últimos 30 días)
Espen Donali
Espen Donali el 2 de Dic. de 2019
Editada: Espen Donali el 5 de Dic. de 2019
How can I use the Matlab mapping toolbox to determine the length unit for a shape file? Which functions to use?
When using the "shapeinfo" function on the "boston_roads.shp" file, a data file wich is a part of the Mapping Toolbox distribution, I dont get any info on the length unit used in the shape file.
info = shapeinfo('boston_roads.shp')
So, how can I find the length unit used in a shape file?
  3 comentarios
Espen Donali
Espen Donali el 4 de Dic. de 2019
Thanks for your attempt to answer my question, but as I wrote, the shapeinfo function dont give me any info on length unit. I have tried it in practice.
info = shapeinfo('boston_roads.shp')
info = struct with fields:
Filename: [3×67 char]
ShapeType: 'PolyLine'
BoundingBox: [2×2 double]
NumFeatures: 2795
Attributes: [5×1 struct]
none of theses struct fields contains info on the length unit used for the shape file data
Adam Danz
Adam Danz el 4 de Dic. de 2019
Editada: Adam Danz el 4 de Dic. de 2019
"Thanks for your attempt to answer my question, but as I wrote, the shapeinfo function dont give me any info on length unit. "
That's correct - it doesn't. The length unit is not part of the info output which is what I explained in my previous comment. Please see the documentation directly.
And additional information:

Iniciar sesión para comentar.

Respuestas (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by