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
|
Array.<ol.Coordinate>
|
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.
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.
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.
Returns:
The two extents intersect.
ol.extent.isEmpty(extent){boolean}
Determine if an extent is empty.
|
Name
|
Type
|
Description
|
|
extent
|
Extent.
|
Returns:
Is empty.
专业从事基于C#,WinForm ,WPF,Silverlight,WCF以及MS Sql Server 2000/2005/2008/2012 Oracle 9i/10g/11g数据库系统的ERP,CRM,企业进销存等各种数据库管理系统开发。Asp.net,Asp.net mvc,Webservice,WCF, Webapi等服务程序开发。
基于Oracle MySQL MSSql postgresql各种数据库的管理系统数据同步服务。以及基于MapXtreme, Arcgis Engine ,以及基于Arcgis for silverlight/Javascript的WebGIS等相关的GIS系统二次开发。基于Windows 10 Mobile的移动端开发方案。针对各种系统的二次开发维护,并提供相关开发的技术性支持,如程序BUG解决,应用系统架构,技术难题攻克等相关技术服务。
联系方式: QQ :80163278(devgis) 邮箱:devgis@qq.com

浙公网安备 33010602011771号