2010-09-01から1ヶ月間の記事一覧
A way to convert a SVG file to PNG file using Ruby + cairo + rsvg on Mac OS X Snow Leopard + MacPorts is confirmed.
A way to get tlled images 'untiled', using RMagick. An experiment on OpenStreetMap tiles for Pacifico Yokoyama.
Say you have a small collection of LineString geometries, and you want to remove pairs of same geometries with different directions. Here are some solutions using JTS (JTS Topology Suite) from Ruby, using Rjb (Ruby Java Bridge.)
Yet another way to keep Java classes in Ruby, using OpenStruct;
Thanks to http://www.spatialreference.org/ , it is very easy to check the WKT definitions for WGS84 and "Google Mercator" projection. But the actual mathematical expression to convert Google Mercator to WGS84 is not so easy to check, altho…
既存の JavaScript プログラムに埋め込まれた、経緯度とGoogle Mercatorとの変換式(特にメルカトルから経緯度への逆変換式)を確認してみました。Safari の Web インスペクタを使って簡単に調べてみます。
PostGIS に含まれている便利な関数 ST_AsSVG ですが、魔法ではないので特別なことはしていません。穴あきポリゴンに対する ST_AsSVG の動きを追ってみます。
d:id:hfu:20100831 の帰結として、データベースのサイズと町字コードのマッチ度合いについてまとめます。