openlayers 3 -ol3中的缓冲区分析依赖于ol.extent的方法

ol.extent
Methods
ol.extent.applyTransform(extent, transformFn, opt_extent){ol.Extent}
Apply a transform function to the extent.
Name
Type
Description
extent
Extent.
transformFn
Transform function. Called with [minX, minY, maxX, maxY] extent coordinates.
extent
Destination extent.
Returns:
Extent. 
ol.extent.boundingExtent(coordinates){ol.Extent}
Build an extent that includes all given coordinates.
Name
Type
Description
coordinates
Coordinates.
Returns:
Bounding extent. 
ol.extent.buffer(extent, value, opt_extent){ol.Extent}
Return extent increased by the provided value.
Name
Type
Description
extent
Extent.
value
number
The amount by which the extent should be buffered.
extent
Extent.
Returns:
Extent. 
ol.extent.containsCoordinate(extent, coordinate){boolean}
Check if the passed coordinate is contained or on the edge of the extent.
Name
Type
Description
extent
Extent.
coordinate
Coordinate.
Returns:
The coordinate is contained in the extent. 
ol.extent.containsExtent(extent1, extent2){boolean}
Check if one extent contains another.
An extent is deemed contained if it lies completely within the other extent, including if they share one or more edges.
Name
Type
Description
extent1
Extent 1.
extent2
Extent 2.
Returns:
The second extent is contained by or on the edge of the first. 
ol.extent.containsXY(extent, x, y){boolean}
Check if the passed coordinate is contained or on the edge of the extent.
Name
Type
Description
extent
Extent.
x
number
X coordinate.
y
number
Y coordinate.
Returns:
The x, y values are contained in the extent. 
ol.extent.createEmpty(){ol.Extent}
Create an empty extent.
Returns:
Empty extent. 
ol.extent.equals(extent1, extent2){boolean}
Determine if two extents are equivalent.
Name
Type
Description
extent1
Extent 1.
extent2
Extent 2.
Returns:
The two extents are equivalent. 
ol.extent.extend(extent1, extent2){ol.Extent}
Modify an extent to include another extent.
Name
Type
Description
extent1
The extent to be modified.
extent2
The extent that will be included in the first.
Returns:
A reference to the first (extended) extent. 
ol.extent.getBottomLeft(extent){ol.Coordinate}
Get the bottom left coordinate of an extent.
Name
Type
Description
extent
Extent.
Returns:
Bottom left coordinate. 
ol.extent.getBottomRight(extent){ol.Coordinate}
Get the bottom right coordinate of an extent.
Name
Type
Description
extent
Extent.
Returns:
Bottom right coordinate. 
ol.extent.getCenter(extent){ol.Coordinate}
Get the center coordinate of an extent.
Name
Type
Description
extent
Extent.
Returns:
Center. 
ol.extent.getHeight(extent){number}
Get the height of an extent.
Name
Type
Description
extent
Extent.
Returns:
Height. 
ol.extent.getIntersection(extent1, extent2, opt_extent){ol.Extent}
Get the intersection of two extents.
Name
Type
Description
extent1
Extent 1.
extent2
Extent 2.
extent
Optional extent to populate with intersection.
Returns:
Intersecting extent. 
ol.extent.getSize(extent){ol.Size}
Get the size (width, height) of an extent.
Name
Type
Description
extent
The extent.
Returns:
The extent size. 
ol.extent.getTopLeft(extent){ol.Coordinate}
Get the top left coordinate of an extent.
Name
Type
Description
extent
Extent.
Returns:
Top left coordinate. 
ol.extent.getTopRight(extent){ol.Coordinate}
Get the top right coordinate of an extent.
Name
Type
Description
extent
Extent.
Returns:
Top right coordinate. 
ol.extent.getWidth(extent){number}
Get the width of an extent.
Name
Type
Description
extent
Extent.
Returns:
Width. 
ol.extent.intersects(extent1, extent2){boolean}
Determine if one extent intersects another.
Name
Type
Description
extent1
Extent 1.
extent2
Extent.
Returns:
The two extents intersect. 
ol.extent.isEmpty(extent){boolean}
Determine if an extent is empty.
Name
Type
Description
extent
Extent.
Returns:
Is empty. 
 
posted @ 2022-06-15 09:47  devgis  阅读(725)  评论(0)    收藏  举报