Tuesday, January 29, 2008

Transformation from one Coordinate System to Another

The Problem
We had some data that we knew was some kind of geographical data. But we didn't know which coordinate system it was in! We needed to convert it into the GPS coordinate system which refers to the longitudes and latitudes of that location.

Someone made a very reasonable guess that the data may be in the NY Plane coordinate system with SRID 2263. Now I needed to figure out how to transform the data from one coordinate system to another using PostGIS.

(1) Used the function makepoint to group x and y of the unknown coordinate system.
(2) setsrid of that point to 2263 to tell the system the (supposed) coordinate system to 2263.
(3) transform-ed the point to 4326 coordinates. 4326 is the srid for the GPS Coordinate system.

The resulting query was
select transform(setsrid(makepoint(unknownx, unknowny), 2263), 4326) as the_point from location_tbl;

Yippee!

Monday, January 21, 2008

प्रभु अजि गमला, मनी तोषला

 
एक मराठी नाट्य गीत, पंडित कुमार गन्धर्व की आवाज़ में सुनिए|

प्रभु अजि गमला, मनी तोषला ॥ 
कोपे बहु माझा । तो प्रभुराजा ।
आता हासला । मनी तोषला ॥
मृतचि हृदय होते नाथ, हे पूर्ण झाले ।
परि वचनसुधेने त्यासि जिवंत केले ॥
अमृतमधुर शब्द त्या पुन्हा ऐकण्याते । 
श्रवणि सकल माझी शक्ति एकत्र होते ॥

a marathi natya-geet - prabhu aji gamala, mhane thoshala... beautifully rendered by pandit kumar gandharv<-->

Sunday, January 20, 2008

a song by sahir

साहिर लुधियान्वी की यह कविता सुनिए

चलो इक बार फिर से अजनबी बन जाएं हम दोनों

मैं तुम से कोइ उम्मीद रखूँ दिल-नवज़ी की
तुम मेरी तरफ देखो ग़लत-अंदाज नजरों से
मेरे दिल की धड़कन लड़खड़ाए मेरी बातों में
ज़ाहिर हो तुम्हारी कश्म-कश का राज़ नज़रों में

तुम्हें भी कोई उलझन रोकती है पेश्कद्मी से

मुझे भी लोग कहते हैं, की यह जलवे पराये हैं

मेरे हमराह भी रुसवाइयां हैं मेरे माझी की

तुम्हारे साथ भी गुजरी हुई रातों के साए हैं