congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
OutputType
Code IndexAdd Tabnine to your IDE (free)

How to use
OutputType
in
net.opengis.wcs11

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

origin: org.geoserver/wcs1_1

String outputFormat = request.getOutput().getFormat();
CoverageResponseDelegate delegate = CoverageResponseDelegateFactory
    .encoderFor(outputFormat);
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/wcs1_1

@Override
public boolean canHandle(Operation operation) {
  // this one can handle GetCoverage responses where store = false
  if(!(operation.getParameters()[0] instanceof GetCoverageType))
    return false;
  
  GetCoverageType getCoverage = (GetCoverageType) operation.getParameters()[0];
  return !getCoverage.getOutput().isStore();
}
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

  return;
String format = output.getFormat();
String declaredFormat = getDeclaredFormat(meta.getSupportedFormats(), format);
if (declaredFormat == null)
      InvalidParameterValue, "format");
final GridCrsType gridCRS = output.getGridCRS();
if (gridCRS != null) {
origin: org.geoserver/wcs1_1

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

private WCS2GetCoverageRequestBuilder() {
  getCoverageType = Wcs20Factory.eINSTANCE.createGetCoverageType();
  wcs111GetCoverage = Wcs11Factory.eINSTANCE.createGetCoverageType();
  wcs111GetCoverage.setVersion("1.1.1");
  OutputType outputType = Wcs11Factory.eINSTANCE.createOutputType();
  outputType.setFormat("image/tiff");
  wcs111GetCoverage.setOutput(outputType);
  getCoverageType.setVersion("2.0.0");
  getCoverageType.setFormat("image/tiff");
}
origin: org.geoserver/gs-wcs1_1

if (output == null) return;
String format = output.getFormat();
String declaredFormat = getDeclaredFormat(meta.getSupportedFormats(), format);
if (declaredFormat == null)
      "format");
final GridCrsType gridCRS = output.getGridCRS();
if (gridCRS != null) {
origin: org.geoserver/gs-wcs1_1

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

private OutputType parseOutputElement(Map kvp) throws Exception {
  final OutputType output = Wcs111Factory.eINSTANCE.createOutputType();
  output.setGridCRS(Wcs111Factory.eINSTANCE.createGridCrsType());
  if (store != null) output.setStore(store.booleanValue());
    throw new WcsException(
        "format parameter is mandatory", MissingParameterValue, "format");
  output.setFormat(format);
  final GridCrsType gridCRS = output.getGridCRS();
  gridCRS.setGridBaseCRS((String) kvp.get("gridBaseCrs"));
origin: org.geoserver/gs-wcs1_1

assertEquals(
    Arrays.asList(90.0, 180.0), gc.getDomainSubset().getBoundingBox().getUpperCorner());
assertEquals("image/tiff", gc.getOutput().getFormat());
assertNull(gc.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

@Override
public boolean canHandle(Operation operation) {
  // this one can handle GetCoverage responses where store = false
  if (!(operation.getParameters()[0] instanceof GetCoverageType)) return false;
  GetCoverageType getCoverage = (GetCoverageType) operation.getParameters()[0];
  return !getCoverage.getOutput().isStore();
}
origin: org.geoserver/gs-wcs1_1

String outputFormat = request.getOutput().getFormat();
CoverageResponseDelegate delegate = responseFactory.encoderFor(outputFormat);
if (delegate == null)
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

@Override
public boolean canHandle(Operation operation) {
  // this one can handle GetCoverage responses where store = false
  if (!(operation.getParameters()[0] instanceof GetCoverageType)) return false;
  GetCoverageType getCoverage = (GetCoverageType) operation.getParameters()[0];
  return getCoverage.getOutput().isStore();
}
origin: org.geoserver/wcs1_1

String outputFormat = request.getOutput().getFormat();
CoverageResponseDelegate delegate = CoverageResponseDelegateFactory
    .encoderFor(outputFormat);
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/wcs1_1

@Override
public boolean canHandle(Operation operation) {
  // this one can handle GetCoverage responses where store = false
  if(!(operation.getParameters()[0] instanceof GetCoverageType))
    return false;
  
  GetCoverageType getCoverage = (GetCoverageType) operation.getParameters()[0];
  return getCoverage.getOutput().isStore();
}
origin: org.geoserver/gs-wcs1_1

String outputFormat = request.getOutput().getFormat();
CoverageResponseDelegate delegate = responseFactory.encoderFor(outputFormat);
if (delegate == null)
net.opengis.wcs11OutputType

Javadoc

A representation of the model object 'Output Type'. Asks for the GetCoverage response to be expressed in a particular CRS and encoded in a particular format. Can also ask for the response coverage to be stored remotely from the client at a URL, instead of being returned in the operation response.

The following features are supported:

  • net.opengis.wcs11.OutputType#getGridCRS
  • net.opengis.wcs11.OutputType#getFormat
  • net.opengis.wcs11.OutputType#isStore

Most used methods

  • getFormat
    Returns the value of the 'Format' attribute. Identifier of the format in which GetCoverage response
  • getGridCRS
    Returns the value of the 'Grid CRS' containment reference. Optional definition of the GridCRS in whi
  • 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

  • Reactive rest calls using spring rest template
  • findViewById (Activity)
  • onCreateOptionsMenu (Activity)
  • getSharedPreferences (Context)
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • ConcurrentHashMap (java.util.concurrent)
    A plug-in replacement for JDK1.5 java.util.concurrent.ConcurrentHashMap. This version is based on or
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • Collectors (java.util.stream)
  • Top 17 Free Sublime Text Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now