validate_geotiff

Validate a single file GeoTIFF.

Arguments

bits_per_sample ([Int!]!)

Array representing the bit length of each data channel in the data type of
each channel (BitsPerSample in the GeoTiff header)

bounding_box ([Float!]!)

The bounding box of the GeoTiff in the original coordinate system of the
form [x_min, y_min, x_max, y_max]. Equivalent to geotiff.js
Image.getBoundingBox().

epsg_key (Int!)

The epsg key of the coordinate transform. Can refer to the value of
ProjectedCSTypeGeoKey, GeographTypeGeoKey, or GeocentricTypeGeoKey depending
on the value of GTModelTypeGeoKey in the GeoTiff header.

field_sentera_id (ID!)

The Sentera ID of the field that this GeoTiff is associated with.

Return fields

center (GeoPosition!)

The GeoPosition of the center of the extents of the Geotiff.

extents ([GeoPosition!]!)

An array of GeoPositions representing the extents of the Geotiff.

intersects_field (Boolean!)

Whether the GeoTiff intersects the Field.

Examples

Validate Geotiff

This query validates that a GeoTiff intersects a field (referred to by field_sentera_id). The query requires 3 pieces of information from the GeoTiff:

An API user can get the extents (all 4 corners as GeoPositions) of the GeoTiff and its center point from the result of the query.

Try this example in GraphiQL
query ValidateGeotiff {
  validate_geotiff(
    field_sentera_id: "3ecc3xf_AS_uz4eJakeOrg_CV_deve_d7f1aaa6_190221_183124"
    bits_per_sample: [8,8,8,8]
    epsg_key: 32615
    bounding_box: [494860.24899000005,4952808.42903,495661.54060000007,4953102.852460001]
  ) {
    intersects_field
    extents {
      latitude
      longitude
    }
    center {
      latitude
      longitude
    }
  }
}

{
  "data": {
    "validate_geotiff": {
      "intersects_field": false,
      "extents": [
        {
          "latitude": 44.731289757381,
          "longitude": -93.064909930037
        },
        {
          "latitude": 44.728639254975,
          "longitude": -93.064906965625
        },
        {
          "latitude": 44.728644557566,
          "longitude": -93.054787918815
        },
        {
          "latitude": 44.731295060458,
          "longitude": -93.054790421073
        }
      ],
      "center": {
        "latitude": 44.729967269825,
        "longitude": -93.05984880919
      }
    }
  }
}