Skip to content

Instantly share code, notes, and snippets.

View alexgleith's full-sized avatar

Alex Leith alexgleith

View GitHub Profile
@alexgleith
alexgleith / SimpleLoadS2.ipynb
Last active March 17, 2024 19:41
Simplest example for finding and loading Sentinel-2 data using Python
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@alexgleith
alexgleith / GeoServer GWC REST Example
Created March 18, 2015 21:33
Truncate and Seed GWC cached layers in GeoServer
import json
import urllib2
import base64
baseURL = "https://domain.example:8080/geoserver/gwc/rest/seed/"
descURL = "https://domain.example:8080/geoserver/gwc/rest/layers/"
un = 'username'
pw = 'biglongtrickypassword'
def truncateLayer(layer):
@alexgleith
alexgleith / Seed-Truncate Python
Created May 4, 2014 23:07
Python Truncate or Seed GeoWebCache GeoServer Layers Python Code
import json
import urllib2
import base64
un='username'
pw='password'
baseURL = "https://URL/geoserver/gwc/rest/seed/"
descURL = "https://URL/geoserver/gwc/rest/layers/"
@alexgleith
alexgleith / index.html
Last active March 29, 2023 17:24
Simple Leaflet GeoServer Example
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="initial-scale=1,user-scalable=no,maximum-scale=1,width=device-width">
<title>Example Leaflet</title>
<link rel="stylesheet" href="https://cdn.leafletjs.com/leaflet-0.7.3/leaflet.css">
</head>
  graph TD;
      A-->B;
      A-->C;
      B-->D;
      C-->D;
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@alexgleith
alexgleith / esri_mess.ipynb
Created June 26, 2021 04:40
Find all the possible ESRI Land Cover scene and put them in a big list.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@alexgleith
alexgleith / africa_geobox_20.ipynb
Created September 29, 2020 05:58
Africa geobox
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.