congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
OutputType.getGridCRS
Code IndexAdd Tabnine 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)

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

  • Reading from database using SQL prepared statement
  • setRequestProperty (URLConnection)
  • getExternalFilesDir (Context)
  • notifyDataSetChanged (ArrayAdapter)
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • URLConnection (java.net)
    A connection to a URL for reading or writing. For HTTP connections, see HttpURLConnection for docume
  • DecimalFormat (java.text)
    A concrete subclass of NumberFormat that formats decimal numbers. It has a variety of features desig
  • HashSet (java.util)
    HashSet is an implementation of a Set. All optional operations (adding and removing) are supported.
  • Hashtable (java.util)
    A plug-in replacement for JDK1.5 java.util.Hashtable. This version is based on org.cliffc.high_scale
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
  • Top 17 Plugins for Android Studio
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