org.geoserver.wms.WMS.version()方法的使用及代码示例

x33g5p2x  于2022-02-03 转载在 其他  
字(2.2k)|赞(0)|评价(0)|浏览(231)

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

WMS.version介绍

[英]Returns a version object for the specified version string.

Calls through to #version(String,boolean) with exact set to false.
[中]返回指定版本字符串的版本对象。
调用#version(String,boolean),精确设置为false.

代码示例

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

/**
 * Returns a version object for the specified version string.
 * <p>
 * Calls through to {@link #version(String, boolean)} with exact set to <code>false</false>.
 * </p>
 */
public static Version version(String version) {
  return version(version, false);
}

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

String wmtver = (String) rawKvp.get("WMTVER");
  if (WMS.version(ver, true) != null && WMS.version(wmtver, true) == null) {
    version = ver;
  } else if (WMS.version(ver, true) == null && WMS.version(wmtver, true) != null) {
    version = wmtver;
Version requestedVersion = WMS.version(version);
Version negotiatedVersion = wms.negotiateVersion(requestedVersion);
request.setVersion(negotiatedVersion.toString());

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

private boolean isWms13FlippedCRS(CoordinateReferenceSystem crs) {
  try {
    String code = CRS.lookupIdentifier(crs, false);
    if (!code.contains("EPSG:")) {
      code = "EPGS:" + code;
    }
    code = WMS.toInternalSRS(code, WMS.version("1.3.0"));
    CoordinateReferenceSystem crs13 = CRS.decode(code);
    return CRS.getAxisOrder(crs13) == AxisOrder.NORTH_EAST;
  } catch (Exception e) {
    LOGGER.log(Level.WARNING, "Failed to determine CRS axis order, assuming is EN", e);
    return false;
  }
}

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

epsgCode = WMS.toInternalSRS(epsgCode, WMS.version(getMap.getVersion()));
getMap.setSRS(epsgCode);

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

final Version version = WMS.version(request.getVersion());
if (version == null) {
  throw new IllegalArgumentException("version not supplied.");

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

return;
Version version = WMS.version(request.getVersion(), true);
if (!WMS.VERSION_1_1_1.equals(version) || !isTiled(request)) {
  return;

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

return;
Version version = WMS.version(request.getVersion(), true);
if (!WMS.VERSION_1_1_1.equals(version) || !isTiled(request)) {
  return;

相关文章