Skip to content

Instantly share code, notes, and snippets.

View KMR-zoar's full-sized avatar

Zoar KMR-zoar

  • Kawagoe, Japan
View GitHub Profile
@tohka
tohka / README.md
Last active March 12, 2025 11:54
lem ファイルを GeoTIFF に変換するスクリプト

lem2gtif.py

概要

lem ファイルを GeoTIFF に変換するスクリプトです。

使い方

@tohka
tohka / layer_spec.json
Last active May 13, 2020 04:49
基盤地図情報の PackDLMap.zip を全ファイル展開し、種別ごとにマージするやつ
{
"common_fields" : [
["gml_id", "String"],
["fid", "String"],
["lfSpanFr", "Date"],
["lfSpanTo", "Date"],
["devDate", "Date"],
["orgGILvl", "String"],
["orgMDId", "String"],
["vis", "String"]
<?xml version="1.0"?>
<presets xmlns="http://josm.openstreetmap.de/tagging-preset-1.0" author="Maripo GODA and contributors" description="日本で使われる決済手段です" shortdescription="日本の決済手段" version="20220727">
<item name="日本の決済手段" icon="presets/money/dollar.svg" type="node,way,closedway,multipolygon" preset_name_label="true">
<link wiki="Key:payment" />
<combo key="payment:cash" text="現金" values="no" match="keyvalue" />
<checkgroup columns="1">
<check key="payment:coins" text="硬貨"/>
<check key="payment:notes" text="紙幣"/>
</checkgroup>
<space />
@cquest
cquest / mapillary2exif.sh
Created August 22, 2016 15:44
Bash script to copy Mapillary pictures from an iPhone, and update the EXIF data
#!/bin/bash
# This bash script copies pictures from Mapillary folders stored on an iPhone
# then update the pictures EXIF data to get the GPS and timestamp
# written by Christian Quest - August 2016
# requires jq and exiftool, if missing: apt install jq exiftool
# tested on Ubuntu 16.04
# copy Mapillary internal json data (contains GPS info, and more)
rsync /run/user/1000/gvfs/afc*/com.mapillary.app/cameras/internal/ internal -a
@penguin2716
penguin2716 / auto_favorite_sushi514_shio.rb
Last active August 29, 2015 14:18
@sushi514 のツイートがしょっぱかったら即座にふぁぼるmikutterプラグイン
#-*- coding: utf-8 -*-
Plugin.create :auto_favorite_sushi514_shio do
@target_username = "sushi514"
@regexp = /しお|塩|sh?io|salt/
on_appear do |messages|
messages.each do |m|
next unless m.user.to_s == @target_username
@rclark
rclark / Issues.md
Last active July 9, 2024 20:16
Leaflet WMS + GetFeatureInfo

There are a bunch of reasons why this is convoluted, mostly in building the URL to make the request:

  1. You have to rely on an AJAX request, this example uses jQuery
  2. To make a GetFeatureInfo request, you must provide a BBOX for a image, and the pixel coordinates for the part of the image that you want info from. A couple of squirrely lines of Leaflet code can give you that.
  3. Output formats. The info_format parameter in the request. We don't know a priori which will be supported by a WMS that we might make a request to. See Geoserver's docs for what formats are available from Geoserver. That won't be the same from WMS to WMS, however.
  4. WMS services return XML docs when there's a mistake in the request or in processing. This sends an HTTP 200, which jQuery doesn't think is an error.
@seraphy
seraphy / mkvfd.bat
Created October 2, 2013 00:30
VirtualBox用の空の仮想フロッピーディスクを作成する方法
rem VirtualBox用の空の仮想フロッピーディスクを作成する方法
fsutil file createnew myimage.vfd 1474560