<?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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Rahul Vaidya's Blog &#187; maps</title>
	<atom:link href="http://www.rvaidya.com/blog/tag/maps/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.rvaidya.com/blog</link>
	<description>Development, Tech, Whatever.</description>
	<lastBuildDate>Wed, 16 Sep 2009 00:33:30 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=abc</generator>
		<item>
		<title>MapServer: Using Google Maps with PHP MapScript</title>
		<link>http://www.rvaidya.com/blog/gis/2009/02/12/mapserver-using-google-maps-with-php-mapscript/</link>
		<comments>http://www.rvaidya.com/blog/gis/2009/02/12/mapserver-using-google-maps-with-php-mapscript/#comments</comments>
		<pubDate>Fri, 13 Feb 2009 01:17:16 +0000</pubDate>
		<dc:creator>Rahul</dc:creator>
				<category><![CDATA[GIS]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[google maps]]></category>
		<category><![CDATA[map]]></category>
		<category><![CDATA[maps]]></category>
		<category><![CDATA[mapscript]]></category>
		<category><![CDATA[mapserver]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[Tile]]></category>

		<guid isPermaLink="false">http://www.rvaidya.com/blog/?p=4</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<p>Generating Google Maps tiles using MapServer is not completely intuitive.  For static map applications, a new tile mode has recently been created for MapServer CGI mode ( http://mapserver.org/output/tile_mode.html ).</p>
<p>For more dynamic mapping applications, PHP MapScript is an ideal way execute this, as it only requires a very small static component (an initial map file, which won&#8217;t even be needed when MapServer 5.4 comes).  Included is a short PHP example on how do go about doing this.  The PROJ.4 projection parameters included are for the Google Maps mercator projection.</p>
<p>The sample code includes WGS84 to Google Maps mercator projection as well as the calculation of mercator extents from Google Maps tile indices.</p>
<p>This example has been extended from the previous iteration to include dynamic layer generation and POINT geometry feature symbols via image files.  The $phplayers variable holds layer definitions that have been queried from a database table, obtained using the getLayersForSessionID($sessionID) function.  The table includes layer table name, layer geometrytype layer geometry name, and a symbol definition for the layer.  For point layers, this is an image file (ie. &#8220;image.gif&#8221;), and for polygon and line layers, this is a line color (255 0 0 for red).</p>
]]></content:encoded>
			<wfw:commentRss>http://www.rvaidya.com/blog/gis/2009/02/12/mapserver-using-google-maps-with-php-mapscript/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>
