validate_geotiff
Validate a single file GeoTIFF.
Arguments
[Int!]!)
Array representing the bit length of each data channel in the data type of each channel (BitsPerSample in the GeoTiff header)
[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().
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.
ID!)
The Sentera ID of the field that this GeoTiff is associated with.
Return fields
GeoPosition!)
The GeoPosition of the center of the extents of the Geotiff.
[GeoPosition!]!)
An array of GeoPositions representing the extents of the Geotiff.
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:
- bits_per_sample - an array pulled from BitsPerSample GeoTiff header.
- epsg_key - pulled from ProjectedCSTypeGeoKey, GeographTypeGeoKey, or GeocentricTypeGeoKey depending on the value of GTModelTypeGeoKey in the GeoTiff header.
- bounding_box - an array of the form [x_min, y_min, x_max, y_max] in the original coordinate system). API users wishing to use this endpoint are strongly urged to use Geotiff.js to extract these values.
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
}
}
}
}