필터 지우기
필터 지우기

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

조회 수: 1 (최근 30일)
Espen Donali
Espen Donali 2019년 12월 2일
편집: Espen Donali 2019년 12월 5일
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
Espen Donali
Espen Donali 2019년 12월 4일
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 2019년 12월 4일
편집: Adam Danz 2019년 12월 4일
"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:

댓글을 달려면 로그인하십시오.

답변 (0개)

Community Treasure Hunt

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

Start Hunting!

Translated by