Skip to content

Instantly share code, notes, and snippets.

View jsanz's full-sized avatar
🗺️
Mapping

Jorge Sanz jsanz

🗺️
Mapping
View GitHub Profile
@jsanz
jsanz / aprilwebinars.md
Last active December 15, 2015 16:39
Eventos de abril
@jsanz
jsanz / gist:5373513
Created April 12, 2013 17:04
Tissot circles like calculation
<html>
<head>
<script src="http://code.jquery.com/jquery-1.9.1.min.js"></script>
<script src="http://coffeescript.org/extras/coffee-script.js"> </script>
<script src="http://svn.osgeo.org/metacrs/proj4js/trunk/lib/proj4js-compressed.js"> </script>
<script type="text/coffeescript">
Proj4js.defs["EPSG:4326"] = "+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs";
Proj4js.defs["EPSG:3042"] = "+proj=utm +zone=30 +ellps=WGS84 +units=m +no_defs";
Proj4js.defs["EPSG:900913"]= "+title=GoogleMercator +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +no_defs";
@jsanz
jsanz / introduccion-georreferencias.rst
Last active December 21, 2015 11:38
Post de escuela de datos sobre temas Geo

Introducción a las georreferencias

Note

Este gist tiene como objetivo mejorar el texto del curso de Escuela de datos. Si tienes sugerencias o mejoras no dudes en comentar o hacer un fork del mismo y proponer tus cambios.

To read
----------
The moon is a harsh mistress - Robert A. Heinlein
A canticle for Leibowitz - Walter M. Miller
Flowers for Algernon - Daniel Keyes
The Forever War - Joe Haldeman
God is Dead - Ron Currie Jr.
The world without us - Alan Weisman (not really sci fi, but interesting, anyways)
Animal Farm - George Orwell
@jsanz
jsanz / london-subways.xml
Last active December 28, 2015 07:39
Overpass Turbo query, run it at http://overpass-turbo.eu/ to get a map of the London subways
<!--
paste this XML at http://overpass-turbo.eu/
-->
<osm-script output="json">
<query type="way">
<has-kv k="railway" v="subway"/>
<bbox-query s="51.34004940750071" w="-0.5033111572265625" n="51.75466513020617" e="0.2197265625"/>
</query>
<print mode="body"/>
@jsanz
jsanz / distance-geoms.py
Created December 17, 2013 10:06
Compute the distance between selected or all geoms on QGis 2
import processing
layer = qgis.utils.iface.activeLayer()
# Get all or selected features
features = processing.getfeatures(layer)
# Store all the features on a list
list = [feat for feat in features]
# Get the index of a identifier field
id = layer.fieldNameIndex('ID')
@jsanz
jsanz / all
Last active August 29, 2015 13:56
MailingListStats of OSGeo lists as per 2014/02/19
(removing tld and domain reports)
MLStats report
--------------
Total messages by year:
Mailing list Year #
---------------- ----------- ----
announce 2007 63
announce 2008 44
@jsanz
jsanz / sus-dev-links.md
Last active October 16, 2023 10:27
Sustainable Development links
@jsanz
jsanz / elhackaton-osm-links.md
Last active August 29, 2015 13:57
Enlaces de la charla de El Hackatón sobre OSM

Keybase proof

I hereby claim:

  • I am jsanz on github.
  • I am jsanz (https://keybase.io/jsanz) on keybase.
  • I have a public key whose fingerprint is 86F8 3EA0 BD19 0CA2 801D 4FB2 6B45 68E4 6FB2 D89D

To claim this, I am signing this object: