필터 지우기
필터 지우기

Acquiring Connectivity of Points from Shape File

조회 수: 3 (최근 30일)
czeslaw
czeslaw 2018년 5월 20일
답변: KSSV 2018년 5월 21일
Hi All,
I have this shape file that contains: Lat, Lon, Geometry, BegMP, EndMP, RouteNumber... Using the Lat Lon, I can plot the points as below:
However, I cannot acquire the information related to the line path that connect the neighboring points. The Geometry contains a set of string written as "Line". I suspect there is a way to get the connectivity since I can view the line or in arcgis. The arcgis see these as polyline.
Please suggestions. Thank you.

답변 (1개)

KSSV
KSSV 2018년 5월 21일
As it is a shape file..I guess already you have the connectivity in hand. You see the below code..I am plotting data of shape file into lines with different colors for each line.
figure
hold on
S = shaperead('concord_roads.shp') ;
for i = 1:length(S)
plot(S(i).X,S(i).Y,'color',rand(1,3)) ;
end
The same, should be applicable for you.

카테고리

Help CenterFile Exchange에서 Surface and Mesh Plots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by