gpt4 book ai didi

org.geotools.data.ows.WMSRequest.getGetFeatureInfo()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-21 18:19:05 25 4
gpt4 key购买 nike

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

WMSRequest.getGetFeatureInfo介绍

[英]DOCUMENT ME!
[中]记录我!

代码示例

代码示例来源:origin: org.geotools/gt-wms

/**
 * Creates a GetFeatureInfoRequest that can be configured and then passed to issueRequest().
 *
 * @param getMapRequest a previous configured GetMapRequest
 * @return a GetFeatureInfoRequest
 * @throws UnsupportedOperationException if the server does not support GetFeatureInfo
 */
public GetFeatureInfoRequest createGetFeatureInfoRequest(GetMapRequest getMapRequest) {
  if (getCapabilities().getRequest().getGetFeatureInfo() == null) {
    throw new UnsupportedOperationException(
        "This Web Map Server does not support GetFeatureInfo requests");
  }
  URL onlineResource = findURL(getCapabilities().getRequest().getGetFeatureInfo());
  GetFeatureInfoRequest request =
      getSpecification().createGetFeatureInfoRequest(onlineResource, getMapRequest);
  return request;
}

代码示例来源:origin: org.geotools/gt2-wms

/**
 * Creates a GetFeatureInfoRequest that can be configured and then passed to
 * issueRequest(). 
 * 
 * @param getMapRequest a previous configured GetMapRequest
 * @return a GetFeatureInfoRequest
 * @throws UnsupportedOperationException if the server does not support GetFeatureInfo
 */
public GetFeatureInfoRequest createGetFeatureInfoRequest( GetMapRequest getMapRequest ) {
  if (getCapabilities().getRequest().getGetFeatureInfo() == null) {
    throw new UnsupportedOperationException("This Web Map Server does not support GetFeatureInfo requests");
  }
  URL onlineResource = findURL(getCapabilities().getRequest().getGetFeatureInfo());
  
  GetFeatureInfoRequest request = getSpecification().createGetFeatureInfoRequest(onlineResource,
      getMapRequest);
  return request;
}

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

/** Returns true if the layer can be queried */
public boolean isQueryable(LayerInfo layer) {
  try {
    if (layer.getResource() instanceof WMSLayerInfo) {
      WMSLayerInfo info = (WMSLayerInfo) layer.getResource();
      Layer wl = info.getWMSLayer(null);
      if (!wl.isQueryable()) {
        return false;
      }
      WMSCapabilities caps = info.getStore().getWebMapServer(null).getCapabilities();
      OperationType featureInfo = caps.getRequest().getGetFeatureInfo();
      if (featureInfo == null
          || !featureInfo.getFormats().contains("application/vnd.ogc.gml")) {
        return false;
      }
    } else if (layer.getResource() instanceof WMTSLayerInfo) {
      return false;
    }
    return layer.isQueryable();
  } catch (IOException e) {
    LOGGER.log(
        Level.INFO,
        "Failed to determine if the layer is queryable, assuming it's not",
        e);
    return false;
  }
}

代码示例来源:origin: org.geomajas/geomajas-project-deskmanager

info.setName(owsLayer.getName());
info.setDescription(owsLayer.getTitle());
OperationType operationTypeFeatureInfo = wmsMapServer.getCapabilities().getRequest().getGetFeatureInfo();

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

infoFormats = wms.getCapabilities().getRequest().getGetFeatureInfo().getFormats();
if (!infoFormats.contains("application/vnd.ogc.gml")) {
  return null;

代码示例来源:origin: org.geomajas.plugin/geomajas-plugin-deskmanager

info.setName(owsLayer.getName());
info.setDescription(owsLayer.getTitle());
OperationType operationTypeFeatureInfo = wmsMapServer.getCapabilities().getRequest().getGetFeatureInfo();

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com