フィルターのクリア

Shpewrite error using Matlab example

4 ビュー (過去 30 日間)
Tim
Tim 2019 年 7 月 19 日
編集済み: Tim 2019 年 7 月 22 日
EDIT: Resolved- duplicate function names, I had thought Matlab would use its own first...
When i try to use shapewrite, by following the example, i get the following error;
>> shapewrite(S, 'main_concord_roads.shp')
Error using shapewrite (line 83)
Unknown shape identification: main_concord_roads.shp
I've happily read a file in and want to ammend that before wiring it out, but its not happy? ANysuggestions?
Using R2017b.
Cheers, Tim

回答 (1 件)

KALYAN ACHARJYA
KALYAN ACHARJYA 2019 年 7 月 19 日
編集済み: KALYAN ACHARJYA 2019 年 7 月 19 日
May be your code is partial, have you defined S before it is used? If yes, you have to share the complete code, so that people can try on it.
Try this way as example detail
shapeinfo('concord_roads');
S = shaperead('concord_roads','Selector',{@(roadclass) roadclass < 4, 'CLASS'});
shapewrite(S,'main_concord_roads.shp')
This is Mathworks documentation example.
  2 件のコメント
Tim
Tim 2019 年 7 月 19 日
Hi thanks for the response, alas i am following the example- as you ahve also provided, and the error remains;
>> shapeinfo('concord_roads');
S = shaperead('concord_roads','Selector',{@(roadclass) roadclass < 4, 'CLASS'});
shapewrite(S,'main_concord_roads.shp')
Error using shapewrite (line 83)
Unknown shape identification: main_concord_roads.shp
Tim
Tim 2019 年 7 月 19 日
I would imagine since i can use shaperead that i have the right toolboxes. Maybe i need to install a new version of Matlab. Seems odd!

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

カテゴリ

Help Center および File ExchangeIntroduction to Installation and Licensing についてさらに検索

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by