how to transform files into shapefile for qgis

2 ビュー (過去 30 日間)
ELISABETTA BILLOTTA
ELISABETTA BILLOTTA 2022 年 7 月 1 日
コメント済み: Eric Sofen 2022 年 7 月 1 日
I need to extrapolate some values to then be able to plot them on QGIS over a DEM.
I wrote with che command shapewrite:
contourf(XX,YY,ZZ,100,'linecolor','none'); where XX,YY,ZZ are 181x151 double
qgis1=contourf(XX,YY,ZZ,100,'linecolor','none'); where qgis1 is 2x2479 double
shapewrite(qgis1,"contour_5km.shp");
but it doesn't work and gives me this error back
Error using shapewrite
Expected input number 1, S, to be one of these types:
struct, table, mappoint, geopoint, mapshape, geoshape
Instead its type was double.
Error in shapewrite>parseInputs (line 667)
validateattributes(S, ...
Error in shapewrite (line 82)
[S, basename, dbfspec] = parseInputs(varargin{:});
Can anyone help me?
thanksss
  3 件のコメント
ELISABETTA BILLOTTA
ELISABETTA BILLOTTA 2022 年 7 月 1 日
my problem is before. when i wrte shapefile give to me this error:
Error using shapewrite
Expected input number 1, S, to be one of these types:
struct, table, mappoint, geopoint, mapshape, geoshape
Instead its type was double.
Error in shapewrite>parseInputs (line 667)
validateattributes(S, ...
Error in shapewrite (line 82)
[S, basename, dbfspec] = parseInputs(varargin{:});
Eric Sofen
Eric Sofen 2022 年 7 月 1 日
The contour2shape function in Walter's answer to the similar question should convert the matrix to a struct that shapewrite can then handle.

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

回答 (0 件)

Community Treasure Hunt

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

Start Hunting!

Translated by