<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>

<channel>
	<title>[ mkhairul.com ] &#187; GIS</title>
	<atom:link href="http://mkhairul.com/category/gis/feed/" rel="self" type="application/rss+xml" />
	<link>http://mkhairul.com</link>
	<description>Musings of a web ninja</description>
	<pubDate>Tue, 06 Jan 2009 09:57:07 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.1</generator>
	<language>en</language>
			<item>
		<title>GIS noob.. convert Degrees Minutes Seconds to Decimal for Google Maps</title>
		<link>http://mkhairul.com/2007/12/15/gis-noob-convert-degrees-minutes-seconds-to-decimal-for-google-maps/</link>
		<comments>http://mkhairul.com/2007/12/15/gis-noob-convert-degrees-minutes-seconds-to-decimal-for-google-maps/#comments</comments>
		<pubDate>Fri, 14 Dec 2007 16:16:49 +0000</pubDate>
		<dc:creator>mkhairul</dc:creator>
		
		<category><![CDATA[Development]]></category>

		<category><![CDATA[GIS]]></category>

		<category><![CDATA[blog]]></category>

		<guid isPermaLink="false">http://mkhairul.com/2007/12/15/gis-noob-convert-degrees-minutes-seconds-to-decimal-for-google-maps/</guid>
		<description><![CDATA[I started doing some stuffs on google maps for a an upcoming portal and received a list of items with GPS coordinates with it. I really don&#8217;t understand much about this coordinate and just use it as it is and inserted the data removing the spaces between the numbers and use it with Google Maps. [...]]]></description>
			<content:encoded><![CDATA[<p>I started doing some stuffs on google maps for a an upcoming portal and received a list of items with GPS coordinates with it. I really don&#8217;t understand much about this coordinate and just use it as it is and inserted the data removing the spaces between the numbers and use it with Google Maps. The marker went straigh out of the map, above the north pole into the unknown.</p>
<p>As it turns out the GPS coordinate that I used is in Degrees Minutes Seconds format. I&#8217;d have to convert it to decimal format which google uses. You can type in the google search field the DMS format and it works but the API only accepts decimal format.</p>
<p>To convert it use this:</p>
<p>DDMMSS = DD + MM/60 + SS/60/60
</p>
<blockquote><p>for example: 101 15 201.01<br />list ( $dd, $mm, $ss ) = split(&#8217; &#8216;, $gps_lat);<br />$gps_lat_dec = $dd + ( $mm / 60 ) + ( $ss / 60 / 60 );&nbsp;</p>
</blockquote>
<p></p>
]]></content:encoded>
			<wfw:commentRss>http://mkhairul.com/2007/12/15/gis-noob-convert-degrees-minutes-seconds-to-decimal-for-google-maps/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
