org.opengis.metadata.extent.Extent.getDescription()方法的使用及代码示例

x33g5p2x  于2022-01-19 转载在 其他  
字(4.6k)|赞(0)|评价(0)|浏览(117)

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

Extent.getDescription介绍

[英]Returns the spatial and temporal extent for the referring object.
[中]返回引用对象的空间和时间范围。

代码示例

代码示例来源:origin: Geomatys/geotoolkit

/**
   * Method use for xml.
   *
   * @return {@linkplain Extent#getDescription() extend description} from
   * {@linkplain #getDomainOfValidity() super class domaine of validity}
   */
  @XmlElement(name = "domainOfValidity", required = true)
  protected InternationalString getdomaineOfValidity() {
    return super.getDomainOfValidity().getDescription();
  }
}

代码示例来源:origin: apache/sis

final InternationalString description = domain.getDescription();
if (description != null) {
  String text = description.toString(locale);

代码示例来源:origin: apache/sis

/**
 * Constructs a new instance initialized with the values from the specified metadata object.
 * This is a <cite>shallow</cite> copy constructor, since the other metadata contained in the
 * given object are not recursively copied.
 *
 * @param  object  the metadata to copy values from, or {@code null} if none.
 *
 * @see #castOrCopy(Extent)
 */
public DefaultExtent(final Extent object) {
  super(object);
  if (object != null) {
    description        = object.getDescription();
    geographicElements = copyCollection(object.getGeographicElements(), GeographicExtent.class);
    temporalElements   = copyCollection(object.getTemporalElements(),   TemporalExtent.class);
    verticalElements   = copyCollection(object.getVerticalElements(),   VerticalExtent.class);
  }
}

代码示例来源:origin: org.apache.sis.core/sis-metadata

/**
 * Constructs a new instance initialized with the values from the specified metadata object.
 * This is a <cite>shallow</cite> copy constructor, since the other metadata contained in the
 * given object are not recursively copied.
 *
 * @param  object  the metadata to copy values from, or {@code null} if none.
 *
 * @see #castOrCopy(Extent)
 */
public DefaultExtent(final Extent object) {
  super(object);
  if (object != null) {
    description        = object.getDescription();
    geographicElements = copyCollection(object.getGeographicElements(), GeographicExtent.class);
    temporalElements   = copyCollection(object.getTemporalElements(),   TemporalExtent.class);
    verticalElements   = copyCollection(object.getVerticalElements(),   VerticalExtent.class);
  }
}

代码示例来源:origin: org.opengis/geoapi-conformance

/**
   * Validates the given extent.
   *
   * @param object The object to validate, or {@code null}.
   */
  public void validate(final Extent object) {
    if (object == null) {
      return;
    }
    validateOptional(object.getDescription());
    validateCollection(GeographicExtent.class, object.getGeographicElements());
    validateCollection(VerticalExtent.class,   object.getVerticalElements());
    validateCollection(TemporalExtent.class,   object.getTemporalElements());
  }
}

代码示例来源:origin: org.apache.sis.core/sis-metadata

checkWritePermission();
ArgumentChecks.ensureNonNull("other", other);
final InternationalString od = other.getDescription();
if (od != null && !(description instanceof NilObject)) {
  if (description == null || (od instanceof NilObject)) {

代码示例来源:origin: apache/sis

checkWritePermission(isNonEmpty());
ArgumentChecks.ensureNonNull("other", other);
final InternationalString od = other.getDescription();
if (od != null && !(description instanceof NilObject)) {
  if (description == null || (od instanceof NilObject)) {

代码示例来源:origin: opengeospatial/geoapi

/**
   * Validates the given extent.
   *
   * @param  object  the object to validate, or {@code null}.
   */
  public void validate(final Extent object) {
    if (object == null) {
      return;
    }
    validateOptional(object.getDescription());
    for (GeographicExtent e : toArray(GeographicExtent.class, object.getGeographicElements())) dispatch(e);
    for (VerticalExtent   e : toArray(VerticalExtent  .class, object.getVerticalElements  ())) validate(e);
    for (TemporalExtent   e : toArray(TemporalExtent  .class, object.getTemporalElements  ())) validate(e);
  }
}

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

if (domainOfValidity != null) {
  areaOfValidity =
      domainOfValidity.getDescription() == null
          ? ""
          : domainOfValidity.getDescription().toString(locale);
  Collection<? extends GeographicExtent> geographicElements =
      domainOfValidity.getGeographicElements();

代码示例来源:origin: org.apache.sis.core/sis-metadata

appendOnNewLine(WKTKeywords.Scope, scope, ElementKind.SCOPE);
if (area != null) {
  appendOnNewLine(WKTKeywords.Area, area.getDescription(), ElementKind.EXTENT);
  append(Extents.getGeographicBoundingBox(area), BBOX_ACCURACY);
  appendVerticalExtent(Extents.getVerticalRange(area));

代码示例来源:origin: apache/sis

appendOnNewLine(WKTKeywords.Scope, scope, ElementKind.SCOPE);
if (area != null) {
  appendOnNewLine(WKTKeywords.Area, area.getDescription(), ElementKind.EXTENT);
  append(Extents.getGeographicBoundingBox(area), BBOX_ACCURACY);
  appendVerticalExtent(Extents.getVerticalRange(area));

相关文章