Filter löschen
Filter löschen

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

1 Ansicht (letzte 30 Tage)
Espen Donali
Espen Donali am 2 Dez. 2019
Bearbeitet: Espen Donali am 5 Dez. 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 Kommentare
Espen Donali
Espen Donali am 4 Dez. 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 am 4 Dez. 2019
Bearbeitet: Adam Danz am 4 Dez. 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:

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Community Treasure Hunt

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

Start Hunting!

Translated by