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
for z in 0..2 | |
for x in 0...(2 ** z) | |
for y in 0...(2 ** z) | |
`wget -O #{z}_#{x}_#{y}.png http://a.tile.openstreetmap.org/#{z}/#{x}/#{y}.png` | |
end | |
end | |
end | |
for z in 0..2 | |
files = [] |
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
import sys | |
import struct | |
NODATAVALUE=float(32767) | |
def convert(input_file, output_file): | |
output_f = open(output_file, 'wb') | |
input_f = open(input_file, 'r') | |
a = [] | |
for line in input_f.readlines(): |
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
#!/bin/bash | |
credentials=~/.aws/credentials | |
profile=$1 | |
# ini parser: http://qiita.com/srea/items/28073bc90d65eed0856d | |
eval `sed -e 's/[[:space:]]*\=[[:space:]]*/=/g' \ | |
-e 's/;.*$//' \ | |
-e 's/[[:space:]]*$//' \ | |
-e 's/^[[:space:]]*//' \ |
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 test = function() { | |
var latitude = document.getElementsByClassName("latitude")[0].firstChild.data; | |
var longitude = document.getElementsByClassName("longitude")[0].firstChild.data; | |
return "POINT(" + longitude + " " + latitude + ")"; | |
}; | |
test(); |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
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 | |
import codecs | |
import csv | |
import geojson | |
features = [] | |
with codecs.open("kyoten.csv", 'r', 'shift_jis') as f: | |
reader = csv.reader(f) | |
header = next(reader) |
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
{ | |
"version": 8, | |
"name": "Raster Tiles", | |
"sources": { | |
"gsiStd": { | |
"type": "raster", | |
"tiles": [ | |
"http://cyberjapandata.gsi.go.jp/xyz/std/{z}/{x}/{y}.png" | |
], | |
"tileSize": 256 |
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
// | |
// ViewController.swift | |
// mapboxsdktest | |
// | |
// Created by 松澤 太郎 on 2015/09/20. | |
// Copyright © 2015年 Taro Matsuzawa. All rights reserved. | |
// | |
import UIKit | |
import Mapbox |
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
package org.smellman.mapboxsdktest | |
import android.support.v7.app.AppCompatActivity | |
import android.os.Bundle | |
import android.view.Menu | |
import android.view.MenuItem | |
import com.mapbox.mapboxsdk.api.ILatLng | |
import com.mapbox.mapboxsdk.geometry.LatLng | |
import com.mapbox.mapboxsdk.tileprovider.tilesource.WebSourceTileLayer | |
import com.mapbox.mapboxsdk.views.MapView |