validate_multifile_geotiff
Validate a multi-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)
ID!)
The Sentera ID of the field that this GeoTiff is associated with.
Int!)
The height of the GeoTiff raster.
String!)
The contents of the .prj file associated with the GeoTiff.
String!)
The contents of the .tfw file associated with the GeoTiff.
Int!)
The width of the GeoTiff raster.
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 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:
- bits_per_sample - an array pulled from BitsPerSample GeoTiff header.
- width - the raster width of the Geotiff.
- height - the raster height of the Geotiff.
- prj - the contents of the .prj file which includes wkt projection information.
- tfw - the contents of the .tfw file which includes the affine transformation for the GeoTiff.
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
}
}
}
}