Why do I receive errors when I use the code described in the documentation for the SHAPEREAD function in Mapping Toolbox 2.0 (R13SP1+)?

When I use the following code that uses the 'GeoCoords' parameter as in the documentation for the SHAPEREAD function:
shaperead('concord_roads','GeoCoords',false)
I receive the following error:
??? Function SHAPEREAD expected its second input argument,
PARAM1, to match one of these strings:
RecordNumbers, BoundingBox,
Selector, Attributes, UseGeoCoords
The input, 'GeoCoords', did not match
any of the valid strings.
Error in ==> shaperead>parseInputs at 525
parName = checkstrs(varargin{k},
validParameterNames, mfilename, ...
Error in ==> shaperead at 187
[filename, recordNumbers, boundingBox,
selector, attributes, useGeoCoords] ..

 Accepted Answer

The R13SP1+ documentation for the SHAPEREAD function in the Mapping Toolbox contains an error; it should have said 'UseGeoCoords' instead of 'GeoCoords'. The correct command is:
shaperead('concord_roads', 'UseGeoCoords', false)
This was fixed in Release 14 (R14).

More Answers (0)

Products

Community Treasure Hunt

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

Start Hunting!