geoquadline
Geographic quadrangle bounding multi-part line
Description
Examples
Bounding Quadrangle for the Brahmaputra River
Read shape data and then create a bounding box around the line.
brahmaputra = shaperead('worldrivers.shp','Selector', ... {@(name) strcmp(name,'Brahmaputra'), 'Name'}, 'UseGeoCoords',true); [latlim, lonlim] = geoquadline(brahmaputra.Lat, brahmaputra.Lon)
latlim = 23.8285 30.3831 lonlim = 81.8971 95.4970
Input Arguments
lat
— Latitudes along a line
vector
Latitudes along a line, specified as a vector representing an ordered sequences of vertices,
in units of degrees. The line may be broken into multiple parts, delimited by
values of NaN
.
Data Types: single
| double
lon
— Longitudes along a line
vector
Longitudes along a line, specified as a vector representing an ordered sequences of vertices,
in units of degrees. The line may be broken into multiple parts, delimited by
values of NaN
.
Data Types: single
| double
Output Arguments
latlim
— Latitude limits
1–by-2 vector
Latitude limits of a geographic quadrangle, returned as a 1-by-2
vector of the form [southern_limit northern_limit]
,
in units of degrees. The elements are in ascending order, and both
lie in the closed interval [-90 90].
lonlim
— Longitude limits
1–by-2 vector
Longitude limits of a geographic quadrangle, returned as a 1-by-2
vector of the form [western_limit eastern_limit]
,
in units of degrees. The limits are wrapped to the interval [-180
180]. They are not necessarily in numerical ascending order.
Version History
Introduced in R2012b
See Also
Comando de MATLAB
Ha hecho clic en un enlace que corresponde a este comando de MATLAB:
Ejecute el comando introduciéndolo en la ventana de comandos de MATLAB. Los navegadores web no admiten comandos de MATLAB.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)