필터 지우기
필터 지우기

How to create a buffer zone around a line?

조회 수: 6 (최근 30일)
Kelly Kyriakou
Kelly Kyriakou 2017년 4월 14일
I want to create a buffer zone around the line and then to export the points that are located into the buffer zone to a shapefile. This is my code but the buffer zone isn't created:
readshp = shaperead('dT1_09_2015Bo2.shp')
surveyMeter = unitsratio('m','meter');
x1= surveyMeter*[readshp.X1];
y1= surveyMeter*[readshp.Y1];
mapshow(x1',y1','LineStyle','none','Marker','o','MarkerSize',3,'MarkerEdgeColor','b','MarkerFaceColor','b')
hold on
% Data for line
xspmod = [409880:200:415000];
yspmod=4856877.288147-0.873729*xspmod;
% plot the line
m = plot(xspmod',yspmod');
hold on
[lati,loti] = bufferm(xspmod',yspmod',1,'outPlusInterior');
mapshow(lati,loti, 'DisplayType','polygon','FaceColor', 'magenta')

답변 (0개)

카테고리

Help CenterFile Exchange에서 Map Display에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by