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 / 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 / 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:

@jsanz
jsanz / ogr2ogr.sh
Last active August 29, 2015 14:02
ogr2ogr 23030->25830
# Command to use the NTV2 grid file correctly to convert
# from 23030 (ED50) to 25830 (ETRS89), both in UTM30N
# hint: define all the f$cking SRS params
ogr2ogr \
-t_srs "+proj=utm +zone=30 +ellps=GRS80 +units=m +nadgrids=/path/to/sped2et.gsb" \
-s_srs "epsg:23030" \
-a_srs "epsg:25830" \
-f "ESRI Shapefile" output_shp_25830.shp input.shp
@jsanz
jsanz / README.md
Last active August 29, 2015 14:02
Charla sobre perspectivas profesionales para TIG 2014
@jsanz
jsanz / README.md
Last active August 29, 2015 14:03
HTML example
@jsanz
jsanz / map-styling.html
Created July 8, 2014 21:04
Styling on the Open Layers workshop
<!DOCTYPE html>
<html>
<head>
<title>My Map</title>
<link rel="stylesheet" href="openlayers/theme/default/style.css" type="text/css">
<style>
#map-id {
width: 512px;
height: 256px;
}
@jsanz
jsanz / charter-members-scrapping.py
Created August 1, 2014 18:49
Scrap Charter Members lines for electronic voting
# Simple script to take from the OSGeo wiki the data to
# print on the console the lines to be used on the
# electronic voting system to produce meaninful
# questions with links and info.
from BeautifulSoup import BeautifulSoup
import urllib
nominations_url = 'http://wiki.osgeo.org/wiki/New_Member_Nominations_2014'
response = urllib.urlopen(nominations_url)
@jsanz
jsanz / index.html
Last active August 29, 2015 14:04
Minimal CartoDB visualization with the CartoDB.js library
<!DOCTYPE html>
<html>
<head>
<title>Trying to hide the layers| CartoDB.js</title>
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
<meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
<link rel="shortcut icon" href="http://cartodb.com/assets/favicon.ico" />
<style>
html, body, #map {
height: 100%;
@jsanz
jsanz / README.md
Last active August 29, 2015 14:21
Fill empty space between two polygons

Click on the space between any of the pairs of polygons to update the map.