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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>Get dem from GSI dem tile</title> | |
| <!-- leaflet.js --> | |
| <link rel="stylesheet" href="https://unpkg.com/leaflet@1.0.3/dist/leaflet.css" | |
| integrity="sha512-07I2e+7D8p6he1SIM+1twR5TIrhUQn9+I6yjqD53JQjFiMf8EtC93ty0/5vJTZGF8aAocvHYNEDJajGdNx1IsQ==" | |
| crossorigin=""/> | |
| <script src="https://unpkg.com/leaflet@1.0.3/dist/leaflet.js" |
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
| { | |
| "version": 8, | |
| "name": "OSM Liberty", | |
| "metadata": { | |
| "mapbox:type": "template" | |
| }, | |
| "sources": { | |
| "natural_earth_shaded_relief": { | |
| "maxzoom": 6, | |
| "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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>GSI Tiles on Leaflet</title> | |
| <link rel="stylesheet" href="https://unpkg.com/leaflet@1.0.2/dist/leaflet.css" /> | |
| <script src="https://unpkg.com/leaflet@1.0.2/dist/leaflet.js"></script> | |
| <script src="https://cdn.rawgit.com/mapbox/wellknown/master/wellknown.js"></script> | |
| <style> |
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
| import re | |
| def parse(input_file): | |
| f = open(input_file) | |
| lines = f.readlines() | |
| f.close() | |
| longitudes = [] | |
| latitudes = [] | |
| for line in lines: | |
| r = re.match("\s+([\w\.\+]+)\s+([\w\.\+]+)", line) |
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": "GSI ORT 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": { | |
| "gsi-ort": { | |
| "type": "raster", | |
| "tiles": [ | |
| "https://cyberjapandata.gsi.go.jp/xyz/ort/{z}/{x}/{y}.jpg" |
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
| --- tmp/ConfigDialog.py 2016-11-02 21:53:40.000000000 +0900 | |
| +++ /Applications/QGIS.app/Contents/MacOS/../Resources/python/plugins/processing/gui/ConfigDialog.py 2016-11-02 22:15:03.000000000 +0900 | |
| @@ -248,8 +248,9 @@ | |
| try: | |
| setting.setValue(unicode(self.items[setting].text())) | |
| except ValueError as e: | |
| + msg = 'Wrong value for parameter "%s"\n\n%s' % (setting.description, unicode(e)) | |
| QMessageBox.warning(self, self.tr('Wrong value'), | |
| - self.tr('Wrong value for parameter "%s":\n\n%s' % (setting.description, unicode(e)))) | |
| + msg) |
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
| tell application "System Events" | |
| set frontmostProcess to name of first process where it is frontmost | |
| end tell | |
| tell application "Preview" to activate | |
| tell application "System Events" | |
| key code 125 | |
| end tell |
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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>leaflet + template tag</title> | |
| <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0" /> | |
| <link rel="stylesheet" href="https://npmcdn.com/leaflet@1.0.0-rc.1/dist/leaflet.css" /> | |
| <script src="https://npmcdn.com/leaflet@1.0.0-rc.1/dist/leaflet.js"></script> | |
| <script type="riot/tag" src="my-popup.tag"></script> |