www.gusucode.com > map 案例源码 matlab代码程序 > map/ReadPortionOfShapefileBasedOnBoundingBoxExample.m
%% Read portion of shapefile based on bounding box % %% % Specify a bounding box to limit the data returned by |shaperead| . % In addition, specify the names of the attributes you want to read. % Copyright 2015 The MathWorks, Inc. bbox = [2.08 9.11; 2.09 9.12] * 1e5; S = shaperead('concord_roads','BoundingBox',bbox,... 'Attributes',{'STREETNAME','CLASS'})