@Test public void testConvertToNonOGC_URN() { assertEquals("EPSG:4326", WCSUtil.convertCRSToNonOGC("urn:ogc:def:crs:EPSG::4326")); assertEquals("EPSG:4326", WCSUtil.convertCRSToNonOGC("urn:ogc-x:def:crs:EPSG::4326")); assertEquals("EPSG:4326", WCSUtil.convertCRSToNonOGC("urn:x-ogc:def:crs:EPSG::4326")); assertEquals("EPSG:4326", WCSUtil.convertCRSToNonOGC("urn:ogc:def:crs:EPSG::4326")); assertEquals("EPSG:4326", WCSUtil.convertCRSToNonOGC("urn:ogc-x:def:crs:EPSG:6.9:4326")); assertEquals("EPSG:4326", WCSUtil.convertCRSToNonOGC("urn:x-ogc:def:crs:EPSG:6.9:4326")); assertEquals("EPSG:4326", WCSUtil.convertCRSToNonOGC("urn:ogc:def:crs:EPSG:6.9:4326")); }
public static String convertCRSToNonOGC(String crs) { Matcher matcher = PATTERN_OGC_URN.matcher(crs); if (matcher.matches()) { return (new StringBuilder()). append(matcher.group(1)). append(':'). append(matcher.group(2)). toString(); } else { throw new IllegalArgumentException("CRS " + crs + " is not OGC URN"); } }
WCSUtil { public static String convertCRSToNonOGC(String crs) { Matcher matcher = PATTERN_OGC_URN.matcher(crs); if (matcher.matches()) { return (new StringBuilder()). append(matcher.group(1)). append(':'). append(matcher.group(2)). toString(); } else { throw new IllegalArgumentException("CRS " + crs + " is not OGC URN"); } } }
WCSUtil { public static String convertCRSToNonOGC(String crs) { Matcher matcher = PATTERN_OGC_URN.matcher(crs); if (matcher.matches()) { return (new StringBuilder()). append(matcher.group(1)). append(':'). append(matcher.group(2)). toString(); } else { throw new IllegalArgumentException("CRS " + crs + " is not OGC URN"); } }  }
WCSUtil { public static String convertCRSToNonOGC(String crs) { Matcher matcher = PATTERN_OGC_URN.matcher(crs); if (matcher.matches()) { return (new StringBuilder()). append(matcher.group(1)). append(':'). append(matcher.group(2)). toString(); } else { throw new IllegalArgumentException("CRS " + crs + " is not OGC URN"); } }  static URI extractWCSBaseURI(URI wcsURI); static File generateTIFFFile(URI wcsURI, String wcsIdentifier, ReferencedEnvelope featureBounds, boolean requireFullCoverage, String outputFileDir); static boolean isOGC(String crs); static String convertCRSToNonOGC(String crs); }
WCSUtil { public static String convertCRSToNonOGC(String crs) { Matcher matcher = PATTERN_OGC_URN.matcher(crs); if (matcher.matches()) { return (new StringBuilder()). append(matcher.group(1)). append(':'). append(matcher.group(2)). toString(); } else { throw new IllegalArgumentException("CRS " + crs + " is not OGC URN"); } }  static URI extractWCSBaseURI(URI wcsURI); static File generateTIFFFile(URI wcsURI, String wcsIdentifier, ReferencedEnvelope featureBounds, boolean requireFullCoverage, String outputFileDir); static boolean isOGC(String crs); static String convertCRSToNonOGC(String crs); final static Logger LOGGER; }