validate_multifile_geotiff

Validate a multi-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)

field_sentera_id (ID!)

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

height (Int!)

The height of the GeoTiff raster.

prj (String!)

The contents of the .prj file associated with the GeoTiff.

tfw (String!)

The contents of the .tfw file associated with the GeoTiff.

width (Int!)

The width of the GeoTiff raster.

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 Multifile Geotiff

This query validates that a multi file GeoTiff (includes .tif, .prj, .tfw files) intersects a field (referred to by field_sentera_id). API users wishing to use this endpoint are strongly urged to use Geotiff.js to extract width and height values from the main .tif file. The query requires 5 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 ValidateMultiGeotiff {
  validate_multifile_geotiff(
  field_sentera_id: "7eyfvxb_AS_oykpJakeOrg_CV_deve_c8bef271_190307_115036"
  bits_per_sample: [8,8,8,8]
  prj: "PROJCS["WGS84 / UTM zone 30N",GEOGCS["WGS 84",DATUM["WGS_1984",SPHEROID["WGS 84",6378137,298.257223563,AUTHORITY["EPSG","7030"]],AUTHORITY["EPSG","6326"]],PRIMEM["Greenwich",0,AUTHORITY["EPSG","8901"]],UNIT["degree",0.0174532925199433,AUTHORITY["EPSG","9122"]],AUTHORITY["EPSG","4326"]],PROJECTION["Transverse_Mercator"],PARAMETER["latitude_of_origin",0],PARAMETER["central_meridian",-3],PARAMETER["scale_factor",0.9996],PARAMETER["false_easting",500000],PARAMETER["false_northing",0],UNIT["Meter",1],AUTHORITY["EPSG","32630"]]"
  tfw: "0.055000000000\n0\n0\n-0.055000000000\n456651.575710000063\n4379063.335760000162\n"
  width: 6076
  height: 3424
  ) {
  intersects_field
  extents {
    latitude
    longitude
  }
  center {
    latitude
    longitude
  }
  }
}

{
  "data": {
  "validate_multifile_geotiff": {
    "intersects_field": false,
    "extents": [
      {
        "latitude": 39.591015749782,
        "longitude": -3.504832301858
      },
      {
        "latitude": 39.560165616894,
        "longitude": -3.504608567473
      },
      {
        "latitude": 39.560451182825,
        "longitude": -3.433880733314
      },
      {
        "latitude": 39.591301626971,
        "longitude": -3.434073110841
      }
    ],
    "center": {
      "latitude": 39.575738947676,
      "longitude": -3.469348764333
    }
  }
  }
}