Queries for satellite images with VANE SQL v 0.2: Tiles or polygons - News

Queries for satellite images with VANE SQL v 0.2: Tiles or polygons

Queries for satellite images with VANE SQL v 0.2: Tiles or polygons

Posted on 2016-11-29 14:32 | Category: Maps, Satellite technologies, VANE Language, VANE Platform

Request an area of your interest by two ways that are tiles (XYZ) and polygons consisting of a number of geographical coordinates (lat/lon)

Parameters:

{z}/{x}/{y} query by a tile server. Z is the zoom level, and X and Y identify the tile.
{polygon} encoded GeoJSON string, contains pairs of coordinates describing all points of selected polygon.


Step 1 - Draw a polygon.

You can draw a polygon using our tool  http://owm.io/cases/create-polygon

To draw a free form polygon press here


Step 2 - Get URL

Get your GeoJson array with coordinates describing your polygon, then encode it into string using any encoder you prefer, then pass the resulting string as a parameter polygon=%7B%22type%22%3A%22Feature%22%2C%22geometry%22%3A%7B%22type%22%3A%22Polygon%22%2C%22coordinates%22%3A%5B%5B%5B-121.32%2C37.65%5D%2C%5B-121.32%2C37.72%5D%2C%5B-121.11%2C37.72%5D%2C%5B-121.11%2C37.65%5D%2C%5B-121.32%2C37.65%5D%5D%5D%7D%7D+

Step 3  - Examples of queries:

Tile:  http://sat.owm.io/sql/9/143/218?order=best&appid=..


Polygon: http://sat.owm.io/sql?select=b4,b3,b2&color=brightness(5000:15000)&where=day:2016-04-04&appid=9de243494c0b295cca9337e1e96b00e2&op=rgb&polygon=%7B%22type%22%3A%22Feature%22%2C%22properties%22%3A%7B%7D%2C%22geometry%22%3A%7B%22type%22%3A%22Polygon%22%2C%22coordinates%22%3A%5B%5B%5B132.88959503173828%2C-11.506939706884161%5D%2C%5B132.88959503173828%2C-11.433590140553276%5D%2C%5B133.00392150878906%2C-11.433590140553276%5D%2C%5B133.00392150878906%2C-11.506939706884161%5D%2C%5B132.88959503173828%2C-11.506939706884161%5D%5D%5D%7D%7D


<<< Back to news list <<<