Skip to content

Instantly share code, notes, and snippets.

@trolleway
Created December 30, 2019 14:39
Show Gist options
  • Save trolleway/6e4a846c33a9e5760405d027ed30835b to your computer and use it in GitHub Desktop.
Save trolleway/6e4a846c33a9e5760405d027ed30835b to your computer and use it in GitHub Desktop.
cat <<EOF >QUERY.JSON
{
"resource":{
"cls":"vector_layer",
"parent":{
"id":0
},
"display_name":"film_v4",
"keyname":null,
"description":null
},
"resmeta":{
"items":{
}
},
"vector_layer":{
"srs":{ "id":3857 },
"geometry_type": "POINT",
"fields": [
{"keyname": "RollNumber","datatype": "STRING"},
{"keyname": "RollName","datatype": "STRING"},
{"keyname": "frame","datatype": "INTEGER_FIELD"},
{"keyname": "ExposureTime","datatype": "STRING"},
{"keyname": "FNumber","datatype": "STRING"},
{"keyname": "ISO","datatype": "STRING"},
{"keyname": "DateTimeOriginal","datatype": "DATE"},
{"keyname": "FocalLength","datatype": "STRING"},
{"keyname": "GPSImgDirection","datatype": "STRING"},
{"keyname": "Description","datatype": "STRING"}
]
}
}
EOF
curl --user "administrator:demodemo" -H "Accept: */*" -X POST -d @QUERY.JSON http://sandbox.nextgis.com/api/resource/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment