I hereby claim:
- I am iamlukesky on github.
- I am iamlukesky (https://keybase.io/iamlukesky) on keybase.
- I have a public key ASDzxKz0aNaCqsYzm34G3T7cShlOI8nRaDGTvaLyK_3p9Qo
To claim this, I am signing this object:
| #!/bin/bash | |
| # Johnnie Hård | |
| # https://synvinkel.org | |
| geojson=".geojson" | |
| # These are set by calling the script with arguments e.g: | |
| # ./shpfolder2geojson.sh MyShapefileDirectory MyGeojsonDirectory | |
| inputdirectory=$1 |
| (( "DEM" - zerolevel) * -1 ) * ((( "DEM" - zerolevel) * -1) > 0) |
I hereby claim:
To claim this, I am signing this object:
| { | |
| "location": { "lat": 0, "lng": 0 }, | |
| "data": [ | |
| { "date": "2018-08-31", "cloudy_pct": 23, "B1": 3645, "B2 (etc...)": 4324, "NDVI": 0.4 }, | |
| { "date": "2018-08-25", "cloudy_pct": 21, "B1": 3445, "B2 (etc...)": 4384, "NDVI": 0.3 }, | |
| "etc..." | |
| ] | |
| } |
Some quick and dirty PostGIS:
Get the longest line for your polygons
create table test.tatortlongestline as
select st_longestline(t.geom, t.geom) as geom, t.tatort
from indata.tatort as t
where lanskod = '01';
| import { render, html } from 'lit-html' | |
| class MyElement extends HTMLElement { | |
| constructor(){ | |
| super() | |
| this.state = { | |
| loading: true | |
| } | |
| } |
| <!DOCTYPE html> | |
| <meta charset="utf-8"> | |
| <title>SANKEY Experiment</title> | |
| <style> | |
| .node rect { | |
| cursor: move; | |
| fill-opacity: .9; | |
| shape-rendering: crispEdges; | |
| } |
I had a large dataset in postgis and wanted to avoid the hassle of first exporting it to a several GB geojson file before tiling it with Tippecanoe.
ogr2ogr -f GeoJSON /dev/stdout \
PG:"host=localhost dbname=postgres user=postgres password=thepassword" \
-sql "select * from a, roi where a.geom && roi.geom" \
| docker run -i -v ${PWD}:/data tippecanoe:latest tippecanoe \
--output=/data/yourtiles.mbtiles
| FROM python:3.6-slim-stretch | |
| ADD requirements.txt /tmp/requirements.txt | |
| RUN apt-get update && \ | |
| apt-get install -y \ | |
| build-essential \ | |
| make \ | |
| gcc \ | |
| locales \ |
The mongo service need to have exposed ports as per the documentation.
Then, on the Dokku server run
dokku mongo:info <name>
take note of the internal ip of the Mongo server, exposed ports and the Mongo URI.
Then run