2009-08-11から1日間の記事一覧

PostGISを利用してみる。

使用するのは PostgreSQL8.2.3 PostGIS1.2PostgreSQLとPostGISのインストール手順は省きます。 PostGISを利用するにはデータベース作成時に「template_postgis」をテンプレートに指定します。 createdb -U postgres -E UTF-8 -T template_postgis SampleDB …

GoogleMapsの右上、左下の緯度経度を取得する。

var map; ・ ・ ・ function sample() { var bounds = map.getBounds(); var ne = bounds.getNorthEast(); var sw = bounds.getSouthWest(); window.alert("右上緯度:" + ne.lat()); window.alert("右上経度:" + ne.lng()); window.alert("左下緯度:" + s…