Buffer problem Vector Data

2 ビュー (過去 30 日間)
Xun Wun
Xun Wun 2019 年 11 月 6 日
回答済み: Hiroki Okawa 2019 年 11 月 8 日
Hi.
I try to add buffer to outside of this polygon shape file in Matlab.
But Matlab give me error "Undefined variable "data_in" or class "data_in.Y".
How to solve this?
[map_outline, att_map_outline] = ...
shaperead('../data/addbuffertothis.shp','UseGeoCoords',true);
% Add buffer
km = 20;
bufwidth = km2deg(km); % convert km to degrees of arc
[buffer.latb, buffer.lonb] = bufferm(data_in.Y, ...
data_in.X, bufwidth, 'out', 20);
  1 件のコメント
Xun Wun
Xun Wun 2019 年 11 月 6 日
Bump!

サインインしてコメントする。

回答 (1 件)

Hiroki Okawa
Hiroki Okawa 2019 年 11 月 8 日
Hi,
I've never used these functions. However, It seems that data_in is not exist. Isn't it possible that data_in should be map_outline or att_map_outline?
ex) data_in.Y => map_outline.Y or data_in.Y => att_map_outline.Y

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by