shaperead
Read vector features and attributes from shapefile
Description
reads the shapefile, S
= shaperead(filename
)filename
, and returns an
N-by-1 geographic data structure array in projected map coordinates (a
mapstruct). The geographic data structure combines geometric and feature attribute
information. shaperead
supports the ordinary 2-D shape types:
'Point'
, 'Multipoint'
,
'PolyLine'
, and 'Polygon'
.
returns a subset of the shapefile contents in S
= shaperead(filename
,Name,Value
)S
, as determined
by the name-value pair arguments. Use RecordNumbers
,
BoundingBox
, and Selector
to select
which features to read. If you use more than one of these parameters in the same
call, you receive the intersection of the records that match the individual
specifications. For instance, if you specify values for both
RecordNumbers
and BoundingBox
, you import
only those features with record numbers that appear in your list and that also have
bounding boxes intersecting the specified bounding box.
If you do not specify any parameters, shaperead
returns an
entry for every non-null feature and creates a field for every attribute.
Examples
Input Arguments
Output Arguments
Tips
To get information about the coordinate reference system (CRS) associated with a
shapefile, use the shapeinfo
function.
Version History
Introduced before R2006a