2010-09-01から1ヶ月間の記事一覧

SVG to PNG conversion using Ruby + cairo + rsvg on Mac OS X Snow Leopard + MacPorts

A way to convert a SVG file to PNG file using Ruby + cairo + rsvg on Mac OS X Snow Leopard + MacPorts is confirmed.

A quick way to get tiled images 'untiled'.

A way to get tlled images 'untiled', using RMagick. An experiment on OpenStreetMap tiles for Pacifico Yokoyama.

A way to remove pairs of the same (but with different orientation) geometries from a (small) LineString collection

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

Yet another way to keep Java classes in Ruby, using OpenStruct;

What is the actual mathematical expression for Google Mercator? Confirm it through Safari's Web Inspector on OpenLayers and Proj4js

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…

経緯度とGoogle Mercatorとの変換式を確認してみる(OpenLayers & Proj4js)。

既存の JavaScript プログラムに埋め込まれた、経緯度とGoogle Mercatorとの変換式(特にメルカトルから経緯度への逆変換式)を確認してみました。Safari の Web インスペクタを使って簡単に調べてみます。

ST_AsSVG も魔法ではない。(ST_AsSVG がポリゴンに対してやっていること)

PostGIS に含まれている便利な関数 ST_AsSVG ですが、魔法ではないので特別なことはしていません。穴あきポリゴンに対する ST_AsSVG の動きを追ってみます。

位置参照情報を正規化っぽくして SQLite3 に入れたらずいぶんコンパクトにできたけど、町字の 10% くらいについて町字コードを探せてない。

d:id:hfu:20100831 の帰結として、データベースのサイズと町字コードのマッチ度合いについてまとめます。