Tabnine Logo
CoverageDataResults.getValues
Code IndexAdd Tabnine to your IDE (free)

How to use
getValues
method
in
mil.nga.geopackage.extension.coverage.CoverageDataResults

Best Java code snippets using mil.nga.geopackage.extension.coverage.CoverageDataResults.getValues (Showing top 9 results out of 315)

origin: mil.nga.geopackage/geopackage-core

/**
 * Get the coverage data value at the coordinate
 * 
 * @param latitude
 *            latitude
 * @param longitude
 *            longitude
 * @return coverage data value
 */
public Double getValue(double latitude, double longitude) {
  CoverageDataRequest request = new CoverageDataRequest(latitude,
      longitude);
  CoverageDataResults values = getValues(request, 1, 1);
  Double value = null;
  if (values != null) {
    value = values.getValues()[0][0];
  }
  return value;
}
origin: ngageoint/geopackage-android

    .getValues(requestBoundingBox);
TestCase.assertNotNull(values);
TestCase.assertNotNull(values.getValues());
TestCase.assertEquals(values.getValues()[0].length,
    values.getWidth());
TestCase.assertEquals(values.getValues().length,
    values.getHeight());
TestCase.assertNotNull(values.getTileMatrix());
TestCase.assertTrue(values.getZoomLevel() >= 0);
TestCase.assertTrue(values.getValues().length > 0);
TestCase.assertTrue(values.getValues()[0].length > 0);
for (int y = 0; y < values.getValues().length; y++) {
  for (int x = 0; x < values.getValues()[y].length; x++) {
    TestCase.assertEquals(values.getValues()[y][x],
        values.getValue(y, x));
TestCase.assertNotNull(values.getValues());
TestCase.assertEquals(values.getValues()[0].length,
    values.getWidth());
TestCase.assertEquals(values.getValues().length,
    values.getHeight());
TestCase.assertNotNull(values.getTileMatrix());
TestCase.assertTrue(values.getZoomLevel() >= 0);
TestCase.assertTrue(values.getValues().length > 0);
TestCase.assertTrue(values.getValues()[0].length > 0);
TestCase.assertEquals(specifiedHeight, values.getHeight());
TestCase.assertEquals(specifiedWidth, values.getWidth());
for (int y = 0; y < specifiedHeight; y++) {
  for (int x = 0; x < specifiedWidth; x++) {
origin: ngageoint/geopackage-android

TestCase.assertNotNull(values.getValues());
TestCase.assertEquals(values.getValues()[0].length,
    values.getWidth());
TestCase.assertEquals(values.getValues().length,
    values.getHeight());
TestCase.assertNotNull(values.getTileMatrix());
TestCase.assertTrue(values.getZoomLevel() >= 0);
TestCase.assertTrue(values.getValues().length > 0);
TestCase.assertTrue(values.getValues()[0].length > 0);
TestCase.assertEquals(specifiedHeight, values.getHeight());
TestCase.assertEquals(specifiedWidth, values.getWidth());
  boolean secondNullsFound = false;
  for (int x = 0; x < specifiedWidth; x++) {
    TestCase.assertEquals(values.getValues()[y][x],
        values.getValue(y, x));
    if (!allowNulls) {
      if (values.getValues()[y][x] != null) {
        TestCase.assertFalse(secondNullsFound);
        nonNullFound = true;
  boolean secondNullsFound = false;
  for (int y = 0; y < specifiedHeight; y++) {
    TestCase.assertEquals(values.getValues()[y][x],
        values.getValue(y, x));
    if (!allowNulls) {
      if (values.getValues()[y][x] != null) {
        TestCase.assertFalse(secondNullsFound);
        nonNullFound = true;
origin: ngageoint/geopackage-android

if (coverageDataValues != null) {
  TestCase.assertEquals(coverageDataValues.coverageData.length,
      coverageDataResults.getValues().length);
  TestCase.assertEquals(coverageDataValues.coverageData[0].length,
      coverageDataResults.getValues()[0].length);
  TestCase.assertEquals(
      coverageDataValues.coverageDataFlat.length,
      coverageDataResults.getValues().length
          * coverageDataResults.getValues()[0].length);
  for (int y = 0; y < coverageDataResults.getValues().length; y++) {
    for (int x = 0; x < coverageDataResults.getValues()[0].length; x++) {
      switch (algorithm) {
        case BICUBIC:
                  coverageDataResults.getValues()[y][x]);
            } else {
                  .getValues()[y][x];
              if (value1 == null ? value2 != null : !value1
                  .equals(value2)) {
                  coverageDataResults.getValues()[y][x]);
            } else {
                  .getValues()[y][x];
              if (value1 == null ? value2 != null : !value1
                  .equals(value2)) {
            TestCase.assertEquals(
origin: ngageoint/geopackage-android

if (coverageDataValues != null) {
  TestCase.assertEquals(coverageDataValues.coverageData.length,
      coverageDataResults.getValues().length);
  TestCase.assertEquals(coverageDataValues.coverageData[0].length,
      coverageDataResults.getValues()[0].length);
  TestCase.assertEquals(
      coverageDataValues.coverageDataFlat.length,
      coverageDataResults.getValues().length
          * coverageDataResults.getValues()[0].length);
  for (int y = 0; y < coverageDataResults.getValues().length; y++) {
    for (int x = 0; x < coverageDataResults.getValues()[0].length; x++) {
      switch (algorithm) {
        case BICUBIC:
                  coverageDataResults.getValues()[y][x]);
            } else {
                  .getValues()[y][x];
              if (value1 == null ? value2 != null : !value1
                  .equals(value2)) {
                  coverageDataResults.getValues()[y][x]);
            } else {
                  .getValues()[y][x];
              if (value1 == null ? value2 != null : !value1
                  .equals(value2)) {
            TestCase.assertEquals(
origin: ngageoint/geopackage-android

      + results.getZoomLevel());
Double[][] values = results.getValues();
TestCase.assertEquals(height, values.length);
TestCase.assertEquals(width, values[0].length);
origin: ngageoint/geopackage-android

  System.out.println(algorithm.name());
Double[][] values = results.getValues();
TestCase.assertEquals(height, values.length);
TestCase.assertEquals(width, values[0].length);
origin: ngageoint/geopackage-android

      + results.getZoomLevel());
Double[][] values = results.getValues();
for (int y = 0; y < values.length; y++) {
  if (PRINT) {
      values = results.getValues();
      for (int y = 0; y < values.length; y++) {
        if (PRINT) {
origin: ngageoint/geopackage-android

  System.out.println(algorithm.name() + " Full Bounding Box");
Double[][] values = results.getValues();
for (int y = 0; y < values.length; y++) {
  if (PRINT) {
      values = results.getValues();
      for (int y = 0; y < values.length; y++) {
        if (PRINT) {
mil.nga.geopackage.extension.coverageCoverageDataResultsgetValues

Javadoc

Get the double array of coverage data values stored as [row][column]

Popular methods of CoverageDataResults

  • <init>
    Constructor
  • getHeight
    Get the results height
  • getTileMatrix
    Get the tile matrix used to find the coverage data values
  • getValue
    Get the coverage data value at the row and column
  • getWidth
    Get the results width
  • getZoomLevel
    Get the zoom level of the results

Popular in Java

  • Creating JSON documents from java classes using gson
  • requestLocationUpdates (LocationManager)
  • setContentView (Activity)
  • getSystemService (Context)
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • StringTokenizer (java.util)
    Breaks a string into tokens; new code should probably use String#split.> // Legacy code: StringTo
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
  • JPanel (javax.swing)
  • FileUtils (org.apache.commons.io)
    General file manipulation utilities. Facilities are provided in the following areas: * writing to a
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
  • Top 12 Jupyter Notebook extensions
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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