Changeset 25455 for issm/trunk-jpl/src/m/shp/shpread.m
- Timestamp:
- 08/25/20 00:32:13 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/m/shp/shpread.m
r25125 r25455 2 2 %SHPREAD - read a shape file and build a struct 3 3 % 4 % This routine reads a shape file .shp and builds a structure array 5 % containing the fields x and y corresponding to the coordinates, one for the 6 % filename of the shp file, for the density, for the nodes, and a field 7 % closed to indicate if the domain is closed. If this initial shapefile is 8 % point only, the fields closed and points are omitted. 9 % The first argument is the .shp file to be read and the second one 10 % (optional) indicates if the last point shall be read (1 to read it, 0 not 11 % to). 4 % This routine reads a shape file .shp and builds a structure array 5 % containing the fields x and y corresponding to the coordinates, one for the 6 % filename of the shp file, for the density, for the nodes, and a field 7 % closed to indicate if the domain is closed. If this initial shapefile is 8 % point only, the fields closed and points are omitted. 12 9 % 13 % Usage: 14 % Struct=shpread(filename) 10 % The first argument is the .shp file to be read and the second one 11 % (optional) indicates if the last point shall be read (1 to read it, 0 not 12 % to). 15 13 % 16 % Example:17 % Struct=shpread('domainoutline.shp')14 % Usage: 15 % Struct=shpread(filename) 18 16 % 19 % See also EXPDOC, EXPWRITEASVERTICES 17 % Example: 18 % Struct=shpread('domainoutline.shp') 20 19 21 20 %recover options
Note:
See TracChangeset
for help on using the changeset viewer.