Upcoming SlideShare
×

# How Matlab Helps

862 views

Published on

Matlab and Geosptial data

Published in: Technology, Art & Photos
0 Likes
Statistics
Notes
• Full Name
Comment goes here.

Are you sure you want to Yes No
• Be the first to comment

• Be the first to like this

Views
Total views
862
On SlideShare
0
From Embeds
0
Number of Embeds
369
Actions
Shares
0
4
0
Likes
0
Embeds 0
No embeds

No notes for slide

### How Matlab Helps

1. 1. HOW MATLAB HELPS Zhang Xiaohu
2. 2. WHY MATLAB  Fast prototyping  Toolbox  IDE  Warning:  Fortran, LAPACK  Efficiency -- Vectorization  Alternative Option  Octave http://www.gnu.org/software/octave/  M_Map
3. 3. DATA FORMATS SUPPORTED  Vector Data  ESRI Shapfile  KML  …  Raster Data  GeoTIFF  Arc ASCII Grid  …  Relevant Data  Image file formats  NetCDF, HDF*, and Multband files (BIP,BIL,BSQ)  …  WMS
4. 4. OUTLINE  Matlab and Geospatial Data  Vector Data Manipulation  Raster Data Manipulation  Distribution Figures  1-D Distribution  2-D Distribution
5. 5. VECTOR DATA MANIPULATION  Read  Structures  Display  Write  Point, Polyline, Polygon
6. 6. READ VECTOR DATA  S = shaperead(filename, Name,Value, ...) Field Name Data Type Description Comments Geometry String One of the following shape types: 'Point', 'MultiPoint', 'Line', or 'Polygon'. For a 'PolyLine', the value of the Geometry field is simply 'Line'. BoundingBox 2-by-2 numerical array Specifies the minimum and maximum feature coordinate values in each dimension in the following form: Omitted for shape type 'Point'. X, Y, Lon, or Lat 1-by-N array of classdouble Coordinate vector. Attribute String or scalar number Attribute name, type, and value. Optional. There are usually multiple attributes.
7. 7. READ VECTOR DATA  Example Point Polyline Polygon Geometry 'Polygon' BoundingBox [2x2 double] Lon [1x5785 double] Lat [1x5785 double] AREA 54.447 PERIMETER 68.489 BOU2_4M_ 2 BOU2_4M_ID 23 ADCODE93 230000 ADCODE99 230000 NAME '黑龙江省' Geometry 'Point' Lon 116.3809 Lat 39.9236 AREA 0 PERIMETER 0 RES1_4M_ 1 RES1_4M_ID 61 GBCODE 31010 NAME '北京' ADCODE93 110100 ADCODE99 110100 ADCLASS 1 PINYIN 'Beijing' Geometry 'Line' BoundingBox [2x2 double] Lon [1x11 double] Lat [1x11 double] FNODE_ 18 TNODE_ 18 LPOLY_ 6 RPOLY_ 4 LENGTH 0.075 HYD1_4M_ 1 HYD1_4M_ID 1359 GBCODE 23010 NAME '克鲁伦河' LEVEL_RIVE 3 EVEL_LAKE 1
8. 8. DISPLAY VECTOR DATA  worldmap [construct map axes]  mapshow [without projection]  geoshow [with projection]  scaleruler  northarrow
9. 9. WRITE VECTOR DATA  Write Point data
10. 10. WRITE VECTOR DATA  Write Line data
11. 11. WRITE VECTOR DATA  Write Polygon data