Skip to content

Instantly share code, notes, and snippets.

View jinalfoflia's full-sized avatar

Jinal Foflia jinalfoflia

View GitHub Profile
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8' />
<title></title>
<meta name='viewport' content='initial-scale=1,maximum-scale=1,user-scalable=no' />
<script src='https://api.tiles.mapbox.com/mapbox-gl-js/v0.17.0/mapbox-gl.js'></script>
<link href='https://api.tiles.mapbox.com/mapbox-gl-js/v0.17.0/mapbox-gl.css' rel='stylesheet' />
<style>
body { margin:0; padding:0; font: 15px/20px sans-serif; }
npm is a package manager. it's a website that keeps a big catalog of software
that can be installed by anyone.
some of that software you use directly, but other software you use as parts.
software you use directly:
"bin"
software you use as a dependency:
@maning
maning / gist:11998bb29eb96c4bf38d
Last active March 9, 2021 19:55
geo-oneliners
# Some GEO oneliners that make my life easier.
# Dissolve Shapefiles using OGR from an attribute table
# http://darrencope.com/2015/01/23/dissolve-shapefiles-using-ogr/
ogr2ogr outputfile.shp inputfile.shp \
-dialect sqlite -sql “SELECT dissolvefield,ST_Union(geometry) \
as geometry FROM inputfile GROUP BY dissolvefield”
# Dissolve everything http://gis.stackexchange.com/questions/79850/merge-large-number-of-polygons-using-qgis
ogr2ogr -dialect SQLITE -sql "SELECT ST_Union(geometry) FROM input" output.shp input.shp