- 当把东经西经换成小数表示时,北正南负、东正西负
创建 axes
worldmap
%1
ax = worldmap('France')
%2
ax = worldmap({'Africa','India'})
%3
ax = worldmap([25 50],[-130 -65]);
%4
load korea % Map of terrain elevations in Korea
ax = worldmap(map, refvec);
加载数据
shaperead
%1
S = shaperead(FILENAME) returns an N-by-1 structure array,
%2
S = shaperead(filename,Name,Value, ...)
%3
[S, A] = shaperead(...)
S An N-by-1 geographic data structure array containing an element for each non-null, spatial feature in the shapefile.
A An N-by-1 attribute structure array, A, parallel to array S.
常用内置文件
文件名(.shp) | 说明 | 数据结构 |
---|---|---|
usastatelo | 美国州行政区域划分 | Polygon |
landareas | 世界的陆地形状 | Polygon |
worldcities | 世界城市 | Point |
worldrivers | 世界河流 | Line |
worldlakes | 世界湖泊 | Polygon |
参数
name | value | details |
---|---|---|
UseGeoCoords | true、false | 默认false,此时结构体中用X,Y表示坐标;若为true,结构体中用Lat、Lon表示坐标。 |
BoundingBox | [xmin,ymin;xmax,ymax] for map coordinates, [lonmin,latmin;lonmax,latmax] for geographic coordi |