<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="http://feeds.feedburner.com/~d/styles/rss2full.xsl" type="text/xsl" media="screen"?><?xml-stylesheet href="http://feeds.feedburner.com/~d/styles/itemcontent.css" type="text/css" media="screen"?><!-- generator="wordpress/2.3.2" --><rss 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/" version="2.0">

<channel>
	<title>Spatial Horizons</title>
	<link>http://spatialhorizons.com</link>
	<description>Exploring Geographic Technologies with GIS, GPS, C#, XNA, and Open Source Tools</description>
	<pubDate>Thu, 18 Sep 2008 19:00:31 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.2</generator>
	<language>en</language>
			<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" href="http://feeds.feedburner.com/SpatialHorizons" type="application/rss+xml" /><feedburner:emailServiceId xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0">660164</feedburner:emailServiceId><feedburner:feedburnerHostname xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0">http://www.feedburner.com</feedburner:feedburnerHostname><item>
		<title>New Version Coming Soon</title>
		<link>http://spatialhorizons.com/2008/02/09/new-version-coming-soon/</link>
		<comments>http://spatialhorizons.com/2008/02/09/new-version-coming-soon/#comments</comments>
		<pubDate>Sat, 09 Feb 2008 18:35:41 +0000</pubDate>
		<dc:creator>James</dc:creator>
		
		<category><![CDATA[Site News]]></category>

		<guid isPermaLink="false">http://spatialhorizons.com/2008/02/09/new-version-coming-soon/</guid>
		<description><![CDATA[Spatial Horizons was launched in 2006 to provide instruction and inspiration to readers interested in applications of geographic information systems (GIS). Our focus was to provide unique examples of geographic technologies in action.  For example, we learned how to use C# to read location information from a GPS device. We also took advantage of [...]]]></description>
			<content:encoded><![CDATA[<p>Spatial Horizons was launched in 2006 to provide instruction and inspiration to readers interested in applications of geographic information systems (GIS). Our focus was to provide unique examples of geographic technologies in action.  For example, we learned <a href="http://spatialhorizons.com/category/gps/">how to use C# to read location information from a GPS device</a>. We also took advantage of Microsoft&#8217;s new game development platform, XNA, to demonstrate <a href="http://spatialhorizons.com/category/xna/">how to build more powerful mapping applications</a>.</p>
<p><strong>Update:</strong> In 2008, Spatial Horizons is currently on hiatus while we work on other projects.  The future is uncertain but we hope to return in some form in 2009.  Stay tuned&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://spatialhorizons.com/2008/02/09/new-version-coming-soon/feed/</wfw:commentRss>
		</item>
		<item>
		<title>OpenLayers (1) - 10 Minute Tutorial</title>
		<link>http://spatialhorizons.com/2007/12/16/openlayers-1-10-minute-tutorial/</link>
		<comments>http://spatialhorizons.com/2007/12/16/openlayers-1-10-minute-tutorial/#comments</comments>
		<pubDate>Sun, 16 Dec 2007 15:08:51 +0000</pubDate>
		<dc:creator>James</dc:creator>
		
		<category><![CDATA[OpenLayers]]></category>

		<guid isPermaLink="false">http://spatialhorizons.com/2007/12/16/openlayers-1-10-minute-tutorial/</guid>
		<description><![CDATA[This post introduces OpenLayers as a easy way to embed dynamic maps in a web page. First-time visitors are encouraged to read our previous posts on setting up MapServer and CGI MapServer for background information.
OpenLayers is a javascript library for creating maps on a web page. In their own words,
OpenLayers is a pure JavaScript library [...]]]></description>
			<content:encoded><![CDATA[<p class="moreinfo">This post introduces <a href="http://www.openlayers.org/">OpenLayers</a> as a easy way to embed dynamic maps in a web page. First-time visitors are encouraged to read our previous posts on <a href="http://spatialhorizons.com/2007/05/19/mapserver-1-10-minute-tutorial/">setting up MapServer</a> and <a href="http://spatialhorizons.com/2007/12/09/using-mapserver-3-cgi-mapserver/">CGI MapServer</a> for background information.</p>
<p>OpenLayers is a javascript library for creating maps on a web page. In their own words,</p>
<p class="shquote">OpenLayers is a pure JavaScript library for displaying map data in most modern web browsers, with no server-side dependencies. OpenLayers implements a (still-developing) JavaScript API for building rich web-based geographic applications, similar to the Google Maps and MSN Virtual Earth APIs, with one important difference &#8212; OpenLayers is Free Software, developed for and by the Open Source software community. - <a href="http://www.openlayers.org/">http://www.openlayers.org/</a></p>
<p>Setting up OpenLayers is incredibly easy if you want to display data from other existing sources on the web. See their <a href="http://www.openlayers.org/QuickTutorial/">Quick Tutorial</a> page for lots of sample HTML showing how to add a basic map in a web page.  In this tutorial, we will focus on how to create a map that uses our own data from MapServer.<br />
 <a href="http://spatialhorizons.com/2007/12/16/openlayers-1-10-minute-tutorial/#more-62" class="more-link">(more&#8230;)</a></p>
]]></content:encoded>
			<wfw:commentRss>http://spatialhorizons.com/2007/12/16/openlayers-1-10-minute-tutorial/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Using MapServer (3) - CGI MapServer</title>
		<link>http://spatialhorizons.com/2007/12/09/using-mapserver-3-cgi-mapserver/</link>
		<comments>http://spatialhorizons.com/2007/12/09/using-mapserver-3-cgi-mapserver/#comments</comments>
		<pubDate>Sun, 09 Dec 2007 15:15:44 +0000</pubDate>
		<dc:creator>James</dc:creator>
		
		<category><![CDATA[Mapserver]]></category>

		<guid isPermaLink="false">http://spatialhorizons.com/2007/12/09/using-mapserver-3-cgi-mapserver/</guid>
		<description><![CDATA[This post is the third in a series on using MapServer. First-time visitors are encouraged to read part 1 to learn how to download and install MapServer on their computer. Additionally, the data layers used in this tutorial are available to download in this post.
We&#8217;ve already introduced MapServer and showed how to create a mapfile [...]]]></description>
			<content:encoded><![CDATA[<p class="moreinfo">This post is the third in a series on using <a href="http://mapserver.gis.umn.edu/">MapServer</a>. First-time visitors are encouraged to read <a href="http://spatialhorizons.com/2007/05/19/mapserver-1-10-minute-tutorial/">part 1</a> to learn how to download and install MapServer on their computer. Additionally, the data layers used in this tutorial are available to download in this <a href="http://spatialhorizons.com/2007/12/09/sample-dataset-world-map/">post</a>.</p>
<p>We&#8217;ve already <a href="http://spatialhorizons.com/2007/05/19/mapserver-1-10-minute-tutorial/">introduced MapServer</a> and <a href="http://spatialhorizons.com/2007/10/06/using-qgis-5-export-to-mapserver/">showed how to create a mapfile</a> using <a href="http://spatialhorizons.com/faqs#gis">GIS</a> data.  We will now introduce MapServer&#8217;s <a href="http://en.wikipedia.org/wiki/Common_Gateway_Interface">CGI</a> functionality as a way to generate a map image. Later we will build on what we&#8217;ve learned to create a map using <a href="http://www.openlayers.org/">OpenLayers</a>, a web mapping interface.</p>
<p><strong>Introducing Mapserv.exe</strong></p>
<p>At the heart of MapServer is a single file referred to as &#8220;mapserv&#8221;. With the <a href="http://www.maptools.org/ms4w/">MS4W package</a>, it is a single executable found at <strong>C:\ms4w\Apache\cgi-bin\mapserv.exe</strong>. This file is the map production engine that uses a mapfile to generate a map image. </p>
<p>Mapserv.exe is usually accessed internally by MapServer-based packages such as <a href="http://ka-map.maptools.org/">ka-map</a> or <a href="http://spatialhorizons.com/2007/05/26/mapscript-demo-1/">Mapscript</a>. But it can also be called directly from a web browser as long as some required parameters are included.<br />
 <a href="http://spatialhorizons.com/2007/12/09/using-mapserver-3-cgi-mapserver/#more-140" class="more-link">(more&#8230;)</a></p>
]]></content:encoded>
			<wfw:commentRss>http://spatialhorizons.com/2007/12/09/using-mapserver-3-cgi-mapserver/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Sample Dataset - World Map</title>
		<link>http://spatialhorizons.com/2007/12/09/sample-dataset-world-map/</link>
		<comments>http://spatialhorizons.com/2007/12/09/sample-dataset-world-map/#comments</comments>
		<pubDate>Sun, 09 Dec 2007 14:59:32 +0000</pubDate>
		<dc:creator>James</dc:creator>
		
		<category><![CDATA[GIS Data]]></category>

		<guid isPermaLink="false">http://spatialhorizons.com/2007/12/09/sample-dataset-world-map/</guid>
		<description><![CDATA[A number of our posts have covered downloading and using GIS data but it should be more beneficial to readers if a single post contained all the instructions needed to acquire the data layers in each dataset. Our first such dataset, named &#8220;World Map&#8221;, has already been introduced but will be discussed in more depth [...]]]></description>
			<content:encoded><![CDATA[<p>A number of our posts have covered downloading and using GIS data but it should be more beneficial to readers if a single post contained all the instructions needed to acquire the data layers in each dataset. Our first such dataset, named &#8220;World Map&#8221;, has already been introduced but will be discussed in more depth here for the sake of new readers.</p>
<p><img src="http://spatialhorizons.com/wp-content/uploads/2007/12/mapservercgi_map1.jpg" alt="CGI MapServer Map" /><br />
 <a href="http://spatialhorizons.com/2007/12/09/sample-dataset-world-map/#more-147" class="more-link">(more&#8230;)</a></p>
]]></content:encoded>
			<wfw:commentRss>http://spatialhorizons.com/2007/12/09/sample-dataset-world-map/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Using MapServer (2) - Generating Map Tiles</title>
		<link>http://spatialhorizons.com/2007/11/14/using-mapserver-2-generating-map-tiles/</link>
		<comments>http://spatialhorizons.com/2007/11/14/using-mapserver-2-generating-map-tiles/#comments</comments>
		<pubDate>Wed, 14 Nov 2007 23:44:06 +0000</pubDate>
		<dc:creator>James</dc:creator>
		
		<category><![CDATA[Map Tiles]]></category>

		<category><![CDATA[Mapserver]]></category>

		<guid isPermaLink="false">http://spatialhorizons.com/2007/11/14/using-mapserver-2-generating-map-tiles/</guid>
		<description><![CDATA[This post is the second in a series on using MapServer. First-time visitors are encouraged to read part 1 which details how to download, setup, and create a web mapping site using MapServer. Additionally, the topic of map tiles has already been introduced in a previous series.
Once the MapServer for Windows (MS4W) package with ka-Map [...]]]></description>
			<content:encoded><![CDATA[<p class="moreinfo">This post is the second in a series on using <a href="http://mapserver.gis.umn.edu/">MapServer</a>. First-time visitors are encouraged to read <a href="http://spatialhorizons.com/2007/05/19/mapserver-1-10-minute-tutorial/">part 1</a> which details how to download, setup, and create a web mapping site using MapServer. Additionally, the topic of map tiles has already been introduced in a <a href="http://spatialhorizons.com/category/map-tiles/">previous series</a>.</p>
<p>Once the <a href="http://www.maptools.org/ms4w/">MapServer for Windows (MS4W)</a> package with <a href="http://ka-map.maptools.org/">ka-Map</a> is installed on your local machine, some new mapping functionality becomes available. One area that interests us is the ability to automatically generate a set of map tiles.</p>
<p><strong>ka-Map Configuration</strong></p>
<p>The first step in creating a set of map tiles is to configure ka-Map to point to a valid MapServer mapfile (see <a href="http://spatialhorizons.com/2007/10/06/using-qgis-5-export-to-mapserver/">here</a> for more on a mapfile). Navigate to this directory: <strong>C:\ms4w\apps\ka-map-1.0\include</strong> and open the file named <strong>config.php</strong> in any text editor.</p>
<p>This configuration file contains several parameters which you should be familiar with before creating our map tiles. We won&#8217;t change any of their values yet but it is important to understand what they do. First, on lines 73 and 74, the pixel size of each tile to be generated is defined:</p>
<p>
<div class="wp_syntax"><div class="code"><pre class="csharp">$tileWidth = <span style="color: #FF0000;">256</span>;
$tileHeight = <span style="color: #FF0000;">256</span>;</pre></div></div>

</p>
<p>Lines 106 through 110 define the most important parameters:</p>
<p>
<div class="wp_syntax"><div class="code"><pre class="csharp">$aszGMap = array <span style="color: #000000;">&#40;</span>
         <span style="color: #808080;">'title'</span> =&gt; <span style="color: #808080;">'GMap 75'</span>,
         <span style="color: #808080;">'path'</span> =&gt; <span style="color: #808080;">'../../gmap/htdocs/gmap75.map'</span>,
         <span style="color: #808080;">'scales'</span> =&gt; array<span style="color: #000000;">&#40;</span> <span style="color: #FF0000;">40000000</span>, <span style="color: #FF0000;">25000000</span>, <span style="color: #FF0000;">12000000</span>, 
                                 <span style="color: #FF0000;">7500000</span>, <span style="color: #FF0000;">3000000</span>, <span style="color: #FF0000;">1000000</span> <span style="color: #000000;">&#41;</span>,
         <span style="color: #808080;">'format'</span> =&gt;<span style="color: #808080;">'PNG'</span>
 <span style="color: #000000;">&#41;</span>;</pre></div></div>

</p>
<p> <a href="http://spatialhorizons.com/2007/11/14/using-mapserver-2-generating-map-tiles/#more-134" class="more-link">(more&#8230;)</a></p>
]]></content:encoded>
			<wfw:commentRss>http://spatialhorizons.com/2007/11/14/using-mapserver-2-generating-map-tiles/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Using SharpMap (4)</title>
		<link>http://spatialhorizons.com/2007/11/07/using-sharpmap-4/</link>
		<comments>http://spatialhorizons.com/2007/11/07/using-sharpmap-4/#comments</comments>
		<pubDate>Wed, 07 Nov 2007 23:55:19 +0000</pubDate>
		<dc:creator>James</dc:creator>
		
		<category><![CDATA[SharpMap]]></category>

		<guid isPermaLink="false">http://spatialhorizons.com/2007/11/07/using-sharpmap-4/</guid>
		<description><![CDATA[This post concludes our tutorial introducing SharpMap and how to use it in a mapping application. We were planning to explore it in some more depth by demonstrating some additional functionality, but we are working on another project that will be discussed in the near future. In short, SharpMap has tremendous potential as a lightweight [...]]]></description>
			<content:encoded><![CDATA[<p>This post concludes our tutorial introducing <a href="http://www.codeplex.com/SharpMap">SharpMap</a> and how to use it in a mapping application. We were planning to explore it in some more depth by demonstrating some additional functionality, but we are working on another project that will be discussed in the near future. In short, SharpMap has tremendous potential as a lightweight component for adding mapping capabilities to desktop and web applications.</p>
<p>Our sample application&#8217;s source code is available to download below. It includes everything needed to compile and run the application using <a href="http://msdn2.microsoft.com/en-us/express/aa700756.aspx">Visual C# Express</a>. The SharpMap library, included in the download, is released under the GNU Lesser General Public License. For more information on that, see <a href="http://www.codeplex.com/SharpMap/Wiki/View.aspx?title=Is%20SharpMap%20free%20with%20no%20strings%20attached&#038;referringTitle=FAQ">here</a>.</p>
<p><img src="http://spatialhorizons.com/wp-content/uploads/2007/10/sharpmap_coloredmap.jpg" alt="SharpMap Demo Application" /></p>
<p><a href="http://spatialhorizons.com/downloads/SharpMapDemo.zip"><img border="0" alt="Download Source Code" src="http://spatialhorizons.com/downloads/code_download.jpg" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://spatialhorizons.com/2007/11/07/using-sharpmap-4/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Using SharpMap (3)</title>
		<link>http://spatialhorizons.com/2007/10/28/using-sharpmap-3/</link>
		<comments>http://spatialhorizons.com/2007/10/28/using-sharpmap-3/#comments</comments>
		<pubDate>Sun, 28 Oct 2007 23:31:54 +0000</pubDate>
		<dc:creator>James</dc:creator>
		
		<category><![CDATA[SharpMap]]></category>

		<guid isPermaLink="false">http://spatialhorizons.com/2007/10/28/using-sharpmap-3/</guid>
		<description><![CDATA[Our third post in this series (part 1, part 2) on SharpMap continues the development of a basic mapping application programmed in C#. We will now add some more functionality to the program.

Zooming By Percentages
The SharpMap.Map class has a Zoom property that stores the map&#8217;s current width in the units of the map.  To [...]]]></description>
			<content:encoded><![CDATA[<p>Our third post in this series (<a href="http://spatialhorizons.com/2007/10/14/using-sharpmap-1/">part 1</a>, <a href="http://spatialhorizons.com/2007/10/20/using-sharpmap-2/">part 2</a>) on <a href="http://www.codeplex.com/SharpMap">SharpMap</a> continues the development of a basic mapping application programmed in C#. We will now add some more functionality to the program.</p>
<p><img src="http://spatialhorizons.com/wp-content/uploads/2007/10/sharpmap_coloredmap.jpg" alt="SharpMap with Coloring" /></p>
<p><strong>Zooming By Percentages</strong></p>
<p>The SharpMap.Map class has a Zoom property that stores the map&#8217;s current width in the units of the map.  To understand this better, add this line of code to the RefreshMap function we&#8217;ve already created:</p>
<p>
<div class="wp_syntax"><div class="code"><pre class="csharp">MessageBox.<span style="color: #0000FF;">Show</span><span style="color: #000000;">&#40;</span>_sharpMap.<span style="color: #0000FF;">Zoom</span>.<span style="color: #0000FF;">ToString</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>;</pre></div></div>

</p>
<p> <a href="http://spatialhorizons.com/2007/10/28/using-sharpmap-3/#more-127" class="more-link">(more&#8230;)</a></p>
]]></content:encoded>
			<wfw:commentRss>http://spatialhorizons.com/2007/10/28/using-sharpmap-3/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Using SharpMap (2)</title>
		<link>http://spatialhorizons.com/2007/10/20/using-sharpmap-2/</link>
		<comments>http://spatialhorizons.com/2007/10/20/using-sharpmap-2/#comments</comments>
		<pubDate>Sat, 20 Oct 2007 15:41:21 +0000</pubDate>
		<dc:creator>James</dc:creator>
		
		<category><![CDATA[SharpMap]]></category>

		<guid isPermaLink="false">http://spatialhorizons.com/2007/10/20/using-sharpmap-2/</guid>
		<description><![CDATA[Our previous post introduced SharpMap and how to use it in a C# program. We built a form and used a PictureBox control to display maps generated by SharpMap. We left off with a rather bland looking map of the world:

Adding Layer Styles
Adding colors to our countries layer is straightforward. In our form&#8217;s constructor, we [...]]]></description>
			<content:encoded><![CDATA[<p>Our <a href="http://spatialhorizons.com/2007/10/14/using-sharpmap-1/">previous post</a> introduced <a href="http://www.codeplex.com/SharpMap">SharpMap</a> and how to use it in a C# program. We built a form and used a PictureBox control to display maps generated by SharpMap. We left off with a rather bland looking map of the world:</p>
<p><img src="http://spatialhorizons.com/wp-content/uploads/2007/10/sharpmap_program1.jpg" alt="SharpMap Program" /></p>
<p><strong>Adding Layer Styles</strong></p>
<p>Adding colors to our countries layer is straightforward. In our form&#8217;s constructor, we simply define colors using the Style class:</p>
<p>
<div class="wp_syntax"><div class="code"><pre class="csharp">countriesLayer.<span style="color: #0000FF;">Style</span>.<span style="color: #0000FF;">Fill</span> = Brushes.<span style="color: #0000FF;">LightGreen</span>;
countriesLayer.<span style="color: #0000FF;">Style</span>.<span style="color: #0000FF;">EnableOutline</span> = <span style="color: #0600FF;">true</span>;
countriesLayer.<span style="color: #0000FF;">Style</span>.<span style="color: #0000FF;">Outline</span> = Pens.<span style="color: #0000FF;">DarkGreen</span>;</pre></div></div>

</p>
<p>We also switched the map&#8217;s background color:</p>
<p>
<div class="wp_syntax"><div class="code"><pre class="csharp">_sharpMap.<span style="color: #0000FF;">BackColor</span> = Color.<span style="color: #0000FF;">LightBlue</span>;</pre></div></div>

</p>
<p> <a href="http://spatialhorizons.com/2007/10/20/using-sharpmap-2/#more-129" class="more-link">(more&#8230;)</a></p>
]]></content:encoded>
			<wfw:commentRss>http://spatialhorizons.com/2007/10/20/using-sharpmap-2/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Using SharpMap (1)</title>
		<link>http://spatialhorizons.com/2007/10/14/using-sharpmap-1/</link>
		<comments>http://spatialhorizons.com/2007/10/14/using-sharpmap-1/#comments</comments>
		<pubDate>Sun, 14 Oct 2007 18:31:17 +0000</pubDate>
		<dc:creator>James</dc:creator>
		
		<category><![CDATA[SharpMap]]></category>

		<guid isPermaLink="false">http://spatialhorizons.com/2007/10/14/using-sharpmap-1/</guid>
		<description><![CDATA[In our ongoing effort to explore various methods for developing mapping applications, we need to consider incorporating existing libraries instead of writing code ourselves.  One such solution is SharpMap.  SharpMap is an emerging open source mapping engine that provides functionality to access GIS data, such as shapefiles, and generate map images.  In [...]]]></description>
			<content:encoded><![CDATA[<p>In our ongoing effort to explore various methods for developing mapping applications, we need to consider incorporating existing libraries instead of writing code ourselves.  One such solution is <a href="http://www.codeplex.com/SharpMap">SharpMap</a>.  SharpMap is an emerging open source mapping engine that provides functionality to access GIS data, such as shapefiles, and generate map images.  In their own words,</p>
<p class="shquote">SharpMap is an easy-to-use mapping library for use in web and desktop applications. It provides access to many types of GIS data, enables spatial querying of that data, and renders beautiful maps. The engine is written in C# and based on the .Net 2.0 framework. SharpMap is released under GNU Lesser General Public License. [<a href="http://www.codeplex.com/SharpMap">quote source</a>]</p>
<p>So let&#8217;s go ahead and program a simple mapping application in C# that uses SharpMap. As with our other tutorials, this example is rather primitive on purpose to highlight specifically how easy it use to use SharpMap. Readers are encouraged to use this tutorial as a basis for creating much richer applications.</p>
<p> <a href="http://spatialhorizons.com/2007/10/14/using-sharpmap-1/#more-99" class="more-link">(more&#8230;)</a></p>
]]></content:encoded>
			<wfw:commentRss>http://spatialhorizons.com/2007/10/14/using-sharpmap-1/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Using QGIS (5) - Export to MapServer</title>
		<link>http://spatialhorizons.com/2007/10/06/using-qgis-5-export-to-mapserver/</link>
		<comments>http://spatialhorizons.com/2007/10/06/using-qgis-5-export-to-mapserver/#comments</comments>
		<pubDate>Sat, 06 Oct 2007 22:42:10 +0000</pubDate>
		<dc:creator>James</dc:creator>
		
		<category><![CDATA[Mapserver]]></category>

		<category><![CDATA[QGIS]]></category>

		<guid isPermaLink="false">http://spatialhorizons.com/2007/10/06/using-qgis-5-export-to-mapserver/</guid>
		<description><![CDATA[Our last post for now on QGIS will cover an interesting feature added in the recent versions. A new &#8220;Export to MapServer Map&#8221; command creates a MapServer configuration file (simply called a &#8220;mapfile&#8221;) from an existing QGIS map. That mapfile can be used to then display the data on a website or use it in [...]]]></description>
			<content:encoded><![CDATA[<p>Our last post for now on <a href="http://www.qgis.org/">QGIS</a> will cover an interesting feature added in the recent versions. A new &#8220;Export to MapServer Map&#8221; command creates a MapServer configuration file (simply called a &#8220;mapfile&#8221;) from an existing QGIS map. That mapfile can be used to then display the data on a website or use it in a desktop application. The desktop option is what we will take a look at because we will now have an easy way to create a mapfile that we can use with some of our <a href="http://spatialhorizons.com/2007/06/24/mapscript-and-xna-1/">MapServer/XNA tutorials</a> we demonstrated in the past.</p>
<p><strong>Python Installation</strong></p>
<p>The Export to MapServer tool will only work if the Python programming language is installed on your computer.  The latest version (2.5.1) of Python is required so we first need to download and  install it <a href="http://www.python.org/download/releases/2.5.1/">here</a>.</p>
<p><strong>Open a QGIS Map</strong></p>
<p>After the installation, go ahead and open a QGIS map. We will continue to use the world map project created in the <a href="http://spatialhorizons.com/2007/09/23/using-qgis-3-more-layer-symbology/">previous posts</a>.  As a reminder, we have two layers in our map - a vector layer showing country outlines and a raster background image.</p>
<p><img src="http://spatialhorizons.com/wp-content/uploads/2007/09/qgis_raster_aligned.jpg" alt="QGIS Map" /></p>
<p> <a href="http://spatialhorizons.com/2007/10/06/using-qgis-5-export-to-mapserver/#more-111" class="more-link">(more&#8230;)</a></p>
]]></content:encoded>
			<wfw:commentRss>http://spatialhorizons.com/2007/10/06/using-qgis-5-export-to-mapserver/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
