Skip to content

Instantly share code, notes, and snippets.

Avatar
🛰️
Remote sensing

Guillaume Lostis glostis

🛰️
Remote sensing
View GitHub Profile
View multipolygon.geojson
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@glostis
glostis / .travis.yml
Created Nov 26, 2019
Example of a .travis.yml with addons, several stages, and PyPI deploy
View .travis.yml
os: linux
dist: xenial
language: python
python: 3.7
addons:
apt:
sources:
- sourceline: 'ppa:ubuntugis/ppa'
packages:
- gdal-bin
View planet_permissions.py
from planet.api import ClientV1, filters
from simplekml import Kml, Style, Color
def get_items(item_type="SkySatScene", permission="assets.basic_panchromatic_dn:download"):
client = ClientV1()
query = filters.and_filter(filters.permission_filter(permission))
request = filters.build_search_request(query, item_types=[item_type])
result = client.quick_search(request)
You can’t perform that action at this time.