Codota Logo
OutputType.getGridCRS
Code IndexAdd Codota to your IDE (free)

How to use
getGridCRS
method
in
net.opengis.wcs11.OutputType

Best Java code snippets using net.opengis.wcs11.OutputType.getGridCRS (Showing top 13 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Dictionary d =
  • Codota Iconnew Hashtable()
  • Codota IconBundle bundle;bundle.getHeaders()
  • Codota Iconnew Properties()
  • Smart code suggestions by Codota
}
origin: org.geoserver/wcs1_1

private OutputType parseOutputElement(Map kvp) throws Exception {
  final OutputType output = Wcs111Factory.eINSTANCE.createOutputType();
  output.setGridCRS(Wcs111Factory.eINSTANCE.createGridCrsType());
  // check and set store
  Boolean store = (Boolean) kvp.get("store");
  if (store != null)
    output.setStore(store.booleanValue());
  // check and set format
  String format = (String) kvp.get("format");
  if (format == null)
    throw new WcsException("format parameter is mandatory", MissingParameterValue, "format");
  output.setFormat(format);
  // set the other gridcrs properties
  final GridCrsType gridCRS = output.getGridCRS();
  gridCRS.setGridBaseCRS((String) kvp.get("gridBaseCrs"));
  gridCRS.setGridType((String) kvp.get("gridType"));
  gridCRS.setGridCS((String) kvp.get("gridCS"));
  gridCRS.setGridOrigin((Double[]) kvp.get("GridOrigin"));
  gridCRS.setGridOffsets((Double[]) kvp.get("GridOffsets"));
  return output;
}
origin: org.geoserver/gs-wcs1_1

final GridCrsType gridCRS = output.getGridCRS();
gridCRS.setGridBaseCRS((String) kvp.get("gridBaseCrs"));
origin: org.geoserver/gs-wcs1_1

@Test
public void testBasic() throws Exception {
  Map<String, Object> raw = baseMap();
  final String layerId = getLayerId(TASMANIA_BM);
  raw.put("identifier", layerId);
  raw.put("format", "image/tiff");
  raw.put("BoundingBox", "-45,146,-42,147");
  raw.put("store", "false");
  raw.put("GridBaseCRS", "urn:ogc:def:crs:EPSG:6.6:4326");
  GetCoverageType getCoverage =
      (GetCoverageType) reader.read(reader.createRequest(), parseKvp(raw), raw);
  assertEquals(layerId, getCoverage.getIdentifier().getValue());
  assertEquals("image/tiff", getCoverage.getOutput().getFormat());
  assertFalse(getCoverage.getOutput().isStore());
  assertEquals(
      "urn:ogc:def:crs:EPSG:6.6:4326",
      getCoverage.getOutput().getGridCRS().getGridBaseCRS());
}
origin: org.geoserver/wcs1_1

final GridCrsType gridCRS = request.getOutput().getGridCRS();
origin: org.geoserver/gs-wcs1_1

final GridCrsType gridCRS = request.getOutput().getGridCRS();
origin: org.geoserver/gs-wcs1_1

@Test
public void testGridCS() throws Exception {
  Map<String, Object> raw = baseMap();
  final String layerId = getLayerId(TASMANIA_BM);
  raw.put("identifier", layerId);
  raw.put("format", "image/tiff");
  raw.put("BoundingBox", "-45,146,-42,147");
  raw.put("GridCS", GridCS.GCSGrid2dSquare.getXmlConstant());
  GetCoverageType getCoverage =
      (GetCoverageType) reader.read(reader.createRequest(), parseKvp(raw), raw);
  assertEquals(
      GridCS.GCSGrid2dSquare.getXmlConstant(),
      getCoverage.getOutput().getGridCRS().getGridCS());
  raw.put("GridCS", GridCS.GCSGrid2dSquare.getXmlConstant().toUpperCase());
  getCoverage = (GetCoverageType) reader.read(reader.createRequest(), parseKvp(raw), raw);
  assertEquals(
      GridCS.GCSGrid2dSquare.getXmlConstant(),
      getCoverage.getOutput().getGridCRS().getGridCS());
  raw.put("GridCS", "Hoolabaloola");
  try {
    reader.read(reader.createRequest(), parseKvp(raw), raw);
    fail("We should have had a WcsException here?");
  } catch (WcsException e) {
    assertEquals(InvalidParameterValue.name(), e.getCode());
    assertEquals("GridCS", e.getLocator());
  }
}
origin: org.geoserver/gs-wcs1_1

GetCoverageType getCoverage =
    (GetCoverageType) reader.read(reader.createRequest(), parseKvp(raw), raw);
Double[] offsets = (Double[]) getCoverage.getOutput().getGridCRS().getGridOffsets();
assertEquals(2, offsets.length);
assertEquals(0, Double.compare(10.5, (double) offsets[0]));
origin: org.geoserver/gs-wcs1_1

final GridCrsType gridCRS = gc.getOutput().getGridCRS();
assertEquals("urn:ogc:def:crs:EPSG:6.6:4326", gridCRS.getGridBaseCRS());
assertEquals("urn:ogc:def:method:WCS:1.1:2dSimpleGrid", gridCRS.getGridType());
origin: org.geoserver/gs-wcs1_1

      "format");
final GridCrsType gridCRS = output.getGridCRS();
if (gridCRS != null) {
origin: org.geoserver/wcs1_1

      InvalidParameterValue, "format");
final GridCrsType gridCRS = output.getGridCRS();
if (gridCRS != null) {
origin: org.geoserver/gs-wcs1_1

Double[] origin = (Double[]) getCoverage.getOutput().getGridCRS().getGridOrigin();
assertEquals(2, origin.length);
assertEquals(0, Double.compare(10.5, (double) origin[0]));
origin: org.geoserver/gs-wcs1_1

assertEquals(
    GridType.GT2dGridIn2dCrs.getXmlConstant(),
    getCoverage.getOutput().getGridCRS().getGridType());
assertEquals(
    GridType.GT2dSimpleGrid.getXmlConstant(),
    getCoverage.getOutput().getGridCRS().getGridType());
assertEquals(
    GridType.GT2dSimpleGrid.getXmlConstant(),
    getCoverage.getOutput().getGridCRS().getGridType());
origin: org.geoserver/gs-wcs1_1

    Arrays.asList(90.0, 180.0), gc.getDomainSubset().getBoundingBox().getUpperCorner());
assertEquals("image/tiff", gc.getOutput().getFormat());
assertNull(gc.getOutput().getGridCRS());
net.opengis.wcs11OutputTypegetGridCRS

Javadoc

Returns the value of the 'Grid CRS' containment reference. Optional definition of the GridCRS in which the GetCoverage response shall be expressed. When this GridCRS is not included, the output shall be in the ImageCRS or GridCRS of the offered image, as identified in the CoverageDescription. To request no interpolation, this GridCRS should be omitted.

Popular methods of OutputType

  • getFormat
    Returns the value of the 'Format' attribute. Identifier of the format in which GetCoverage response
  • isStore
    Returns the value of the 'Store' attribute. The default value is "false". Specifies if the output c
  • setFormat
    Sets the value of the ' net.opengis.wcs11.OutputType#getFormat' attribute.
  • setGridCRS
    Sets the value of the ' net.opengis.wcs11.OutputType#getGridCRS' containment reference.
  • setStore
    Sets the value of the ' net.opengis.wcs11.OutputType#isStore' attribute.

Popular in Java

  • Making http post requests using okhttp
  • onCreateOptionsMenu (Activity)
  • getResourceAsStream (ClassLoader)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • StringTokenizer (java.util)
    The string tokenizer class allows an application to break a string into tokens. The tokenization met
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • JFrame (javax.swing)
  • Options (org.apache.commons.cli)
    Main entry-point into the library. Options represents a collection of Option objects, which describ
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now