本文整理了Java中org.geotools.referencing.CRS.getGeographicBoundingBox()
方法的一些代码示例,展示了CRS.getGeographicBoundingBox()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。CRS.getGeographicBoundingBox()
方法的具体详情如下:
包路径:org.geotools.referencing.CRS
类名称:CRS
方法名:getGeographicBoundingBox
[英]Returns the valid geographic area for the specified coordinate reference system, or null if unknown.
This method fetchs the CoordinateReferenceSystem#getDomainOfValidity associated with the given CRS. Only GeographicExtent of kind GeographicBoundingBox are taken in account.
[中]返回指定坐标参照系的有效地理区域,如果未知,则返回null。
此方法获取与给定CRS关联的CoordinationReferenceSystem#getDomainOfValidity。只考虑GeographicBoundingBox类型的GeographicExtent。
代码示例来源:origin: geotools/geotools
final GeographicBoundingBox sourceBox = CRS.getGeographicBoundingBox(sourceCRS);
final GeographicBoundingBox targetBox = CRS.getGeographicBoundingBox(targetCRS);
final GeographicBoundingBox validArea;
if (sourceBox == null) {
代码示例来源:origin: geotools/geotools
GeographicBoundingBox bbox = CRS.getGeographicBoundingBox(targetCRS);
if (bbox != null) {
ReferencedEnvelope restriction =
代码示例来源:origin: geotools/geotools
final GeographicBoundingBox bounds = getGeographicBoundingBox(crs);
if (bounds != null && !Boolean.FALSE.equals(bounds.getInclusion())) {
envelope =
代码示例来源:origin: org.geoserver.web/gs-web-demo
private Geometry getGeographicBoundingBox(CoordinateReferenceSystem crs) {
GeographicBoundingBox envelope = CRS.getGeographicBoundingBox(crs);
if (envelope == null) {
return null;
代码示例来源:origin: org.geoserver.web/gs-web-demo
GeographicBoundingBox box = CRS.getGeographicBoundingBox(crs);
代码示例来源:origin: org.geoserver/gwc
if (envelope.getSpan(0) < tolerance || envelope.getSpan(1) < tolerance) {
GeographicBoundingBox latLonBBox = CRS.getGeographicBoundingBox(targetCrs);
ReferencedEnvelope bbox = new ReferencedEnvelope(new GeneralEnvelope(latLonBBox));
Polygon geometry = JTS.toGeometry(bbox);
代码示例来源:origin: org.geoserver/gs-gwc
if (envelope.getSpan(0) < tolerance || envelope.getSpan(1) < tolerance) {
GeographicBoundingBox latLonBBox = CRS.getGeographicBoundingBox(targetCrs);
ReferencedEnvelope bbox = new ReferencedEnvelope(new GeneralEnvelope(latLonBBox));
Polygon geometry = JTS.toGeometry(bbox);
内容来源于网络,如有侵权,请联系作者删除!