org.geotools.referencing.CRS.getGeographicBoundingBox()方法的使用及代码示例

x33g5p2x  于2022-01-18 转载在 其他  
字(2.2k)|赞(0)|评价(0)|浏览(120)

本文整理了Java中org.geotools.referencing.CRS.getGeographicBoundingBox()方法的一些代码示例,展示了CRS.getGeographicBoundingBox()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。CRS.getGeographicBoundingBox()方法的具体详情如下:
包路径:org.geotools.referencing.CRS
类名称:CRS
方法名:getGeographicBoundingBox

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

  1. final GeographicBoundingBox sourceBox = CRS.getGeographicBoundingBox(sourceCRS);
  2. final GeographicBoundingBox targetBox = CRS.getGeographicBoundingBox(targetCRS);
  3. final GeographicBoundingBox validArea;
  4. if (sourceBox == null) {

代码示例来源:origin: geotools/geotools

  1. GeographicBoundingBox bbox = CRS.getGeographicBoundingBox(targetCRS);
  2. if (bbox != null) {
  3. ReferencedEnvelope restriction =

代码示例来源:origin: geotools/geotools

  1. final GeographicBoundingBox bounds = getGeographicBoundingBox(crs);
  2. if (bounds != null && !Boolean.FALSE.equals(bounds.getInclusion())) {
  3. envelope =

代码示例来源:origin: org.geoserver.web/gs-web-demo

  1. private Geometry getGeographicBoundingBox(CoordinateReferenceSystem crs) {
  2. GeographicBoundingBox envelope = CRS.getGeographicBoundingBox(crs);
  3. if (envelope == null) {
  4. return null;

代码示例来源:origin: org.geoserver.web/gs-web-demo

  1. GeographicBoundingBox box = CRS.getGeographicBoundingBox(crs);

代码示例来源:origin: org.geoserver/gwc

  1. if (envelope.getSpan(0) < tolerance || envelope.getSpan(1) < tolerance) {
  2. GeographicBoundingBox latLonBBox = CRS.getGeographicBoundingBox(targetCrs);
  3. ReferencedEnvelope bbox = new ReferencedEnvelope(new GeneralEnvelope(latLonBBox));
  4. Polygon geometry = JTS.toGeometry(bbox);

代码示例来源:origin: org.geoserver/gs-gwc

  1. if (envelope.getSpan(0) < tolerance || envelope.getSpan(1) < tolerance) {
  2. GeographicBoundingBox latLonBBox = CRS.getGeographicBoundingBox(targetCrs);
  3. ReferencedEnvelope bbox = new ReferencedEnvelope(new GeneralEnvelope(latLonBBox));
  4. Polygon geometry = JTS.toGeometry(bbox);

相关文章