This file contains hidden or 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", | |
| "glyphs": "https://smellman.github.io/creating_tiles_with_global_map_support_files/2015/mapbox_vector_tile_demo/demosites/fonts/{fontstack}/{range}.pbf", | |
| "sprite": "https://smellman.github.io/creating_tiles_with_global_map_support_files/2015/mapbox_vector_tile_demo/demosites/maki-sprites/sprite", | |
| "sources": { | |
| "osm": { | |
| "type": "raster", | |
| "tiles": [ | |
| "https://a.tile.openstreetmap.org/{z}/{x}/{y}.png", |
This file contains hidden or 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
| # patternEntry to stop(value, color) | |
| grep paletteEntry test1.qml|sed -e "s/^.*<paletteEntry value=//g"|sed -e "s/label=.*$//g"|sed -e "s/color=//g"|sed -e "s/^\"/stop\(/g"|sed -e "s/\"\ \"/,\ /g"|sed -e "s/\".*$/\)/g" | |
| # item to stop(value, color) (not support alpha value) | |
| grep item test2.qml|sed -e "s/^.*<item.* value=//g"|sed -e "s/label=.*\ //g"|sed -e "s/color=//g"|sed -e "s/^\"/stop\(/g"|sed -e "s/\"\ \"/,\ /g"|sed -e "s/\"\/\>.*$/\)/g" |
This file contains hidden or 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 |
This file contains hidden or 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 hidden or 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 hidden or 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) |
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 hidden or 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(); |
This file contains hidden or 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:]]*//' \ |