This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# coding: utf-8 | |
# convert.rb | |
require 'json' | |
# Meshcode is probably Japanese English. | |
module Meshcode | |
def self.width(code) | |
case code.size | |
when 8 | |
45.0 / 60 / 60 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var std = L.tileLayer( | |
'http://cyberjapandata.gsi.go.jp/xyz/std/{z}/{x}/{y}.png', { | |
attribution: "地理院タイル(標準地図)", | |
maxNativeZoom: 17, maxZoom: 22, | |
filter: function() { | |
new L.CanvasFilter(this, { | |
channelFilter: function(img) { | |
for(var y = 0; y < 256; y++) { | |
for(var x = 0; x < 256; x++) { | |
var r = img.data[(x + y * 256) * 4 + 0]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" /> | |
<title></title> | |
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.7.2/leaflet.css"/> | |
<script src="http://cdn.leafletjs.com/leaflet-0.7.2/leaflet.js"></script> | |
<script src="http://handygeospatial.github.io/mapsites/js/leaflet-hash.js"></script> | |
<script src="http://handygeospatial.github.io/mapsites/js/TileLayer.GeoJSON.js"></script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"ryakugo": [ | |
{"code": "DEM", "title": "DEM区画", "kkj": false, "fgd": true}, | |
{"code": "DEM5A", "title": "5mメッシュ(航空レーザ測量)", "kkj": true, "fgd": false}, | |
{"code": "DEM5B", "title": "5mメッシュ(写真測量)", "kkj": true, "fgd": false}, | |
{"code": "DEM10B", "title": "10mメッシュ", "kkj": true, "fgd": false}, | |
{"code": "DEM50", "title": "50mメッシュ", "kkj": true, "fgd": false}, | |
{"code": "DEMPt", "title": "DEM構成点", "kkj": false, "fgd": true}, | |
{"code": "DGHM", "title": "DGHM区画", "kkj": false, "fgd": true}, | |
{"code": "DGHMPt", "title": "DGHM構成点", "kkj": false, "fgd": true}, | |
{"code": "NRPt", "title": "居住地名", "kkj": true, "fgd": false}, |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# coding: utf-8 | |
require 'georuby-ext' # gem install georuby-ext | |
require 'geo_ruby/shp' | |
require 'fileutils' | |
require 'json' | |
include GeoRuby::Shp4r | |
module Math | |
def self.sec(x) | |
1.0 / cos(x) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# coding: utf-8 | |
require 'georuby-ext' # gem install georuby-ext | |
require 'geo_ruby/shp' | |
require 'fileutils' | |
require 'json' | |
include GeoRuby::Shp4r | |
module Math | |
def self.sec(x) | |
1.0 / cos(x) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"resolutions": [ | |
{"number": 1, "title": "Election of chairman", "result": "abstention", "by": "France"}, | |
{"number": 2, "title": "Title and scope of ISO/TC 211", "result": "unanimous"}, | |
{"number": 3, "title": "Establishment of Ad hoc groups", "result": "unanimous"}, | |
{"number": 4, "title": "", "result": ""}, | |
{"number": 5, "title": "", "result": ""}, | |
{"number": 6, "title": "", "result": ""}, | |
{"number": 7, "title": "", "result": ""}, | |
{"number": 8, "title": "", "result": ""}, | |
{"number": 9, "title": "", "result": ""}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<title></title> | |
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.7.2/leaflet.css"/> | |
<script src="http://cdn.leafletjs.com/leaflet-0.7.2/leaflet.js"></script> | |
<script src="http://handygeospatial.github.io/mapsites/js/leaflet-hash.js"></script> | |
<style> | |
body {padding: 0; margin: 0} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# coding: utf-8 | |
# CC0 | |
require 'find' | |
Find.find('地図記号') {|path| | |
next unless /svg$/.match path | |
[12, 18, 24].each {|width| | |
fn = "#{File.basename(path, File.extname(path))}_#{width}" | |
cmd = "/Applications/Inkscape.app/Contents/Resources/bin/inkscape --export-width=#{width} --export-png=dst/#{fn}.png #{path}" | |
print cmd, "\n" |