<?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/"
	xmlns:series="http://unfoldingneurons.com/"
	>

<channel>
	<title>DARREN COPE &#187; GIS</title>
	<atom:link href="http://darrencope.com/category/gis/feed/" rel="self" type="application/rss+xml" />
	<link>http://darrencope.com</link>
	<description>Cycling, GIS, and Life</description>
	<lastBuildDate>Thu, 26 Jan 2012 23:36:01 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>QGIS Can Now Delete Columns In Shapefiles!</title>
		<link>http://darrencope.com/2012/01/13/qgis-can-now-delete-columns-in-shapefiles/</link>
		<comments>http://darrencope.com/2012/01/13/qgis-can-now-delete-columns-in-shapefiles/#comments</comments>
		<pubDate>Fri, 13 Jan 2012 13:02:37 +0000</pubDate>
		<dc:creator>darrencope</dc:creator>
				<category><![CDATA[GIS]]></category>

		<guid isPermaLink="false">http://darrencope.com/?p=1029</guid>
		<description><![CDATA[How many times have you opened a shapefile in QGIS, and found yourself wanting to be able to modify its schema? If you&#8217;re like me, it happens on a very regular basis! One of my major frustrations with QGIS is that I couldn&#8217;t do this without creating another copy of the shapefile. This seemed rather [...]]]></description>
			<content:encoded><![CDATA[<p>How many times have you opened a shapefile in QGIS, and found yourself wanting to be able to modify its schema? If you&#8217;re like me, it happens on a very regular basis! One of my major frustrations with QGIS is that I couldn&#8217;t do this without creating another copy of the shapefile. This seemed rather unnecessary, and added to my already large data management challenge! This limitation was one of the (now very few) reasons I had to bump over to <a title="Kosmo GIS" href="http://www.opengis.es/">Kosmo GIS</a> in my normal workflow.</p>
<p>I&#8217;m happy to say that the 0.3.9 version of QGIS&#8217; &#8220;Table Manager&#8221; Plugin by Borys Jurgiel now allows you to change a shapefile schema without having to save the output to a new file!</p>
<p>You can install the plugin via the Plugin Installer &#8211; look for &#8220;Table Manager.&#8221; Once it&#8217;s installed, find it under &#8220;Plugins &gt; Table &gt; Table Manager.&#8221; It&#8217;ll operate on the feature you have selected in the legend, and open up a simple window that looks like this:</p>
<div id="attachment_1030" class="wp-caption aligncenter" style="width: 310px"><a href="http://darrencope.com/wp-content/uploads/2012/01/20120112_TableManager.png" rel="lightbox[1029]"><img class="size-medium wp-image-1030" title="Table Manager" src="http://darrencope.com/wp-content/uploads/2012/01/20120112_TableManager-300x246.png" alt="Table Manager" width="300" height="246" /></a><p class="wp-caption-text">Table Manager</p></div>
<p>You can then reorder columns, rename columns, insert columns, clone (copy) columns, change data types, and <strong>delete</strong> columns! To be fair, you could do all of this before. The difference is that now you can just hit &#8220;Save&#8221; down at the bottom, and carry on! Before, you would have to &#8220;Save As,&#8221; browse to a folder, and create a whole new file. Then add this new file to your map, theme it appropriately, and remove the old layer. Annoying. Now, it&#8217;s a super simple one-step process!</p>
<p>A nice touch is that the old .dbf file is archived in case of a mishap. The archive is stored alongside the rest of the shapefile, but has the extension .dbf~</p>
<p>Thanks Borys!</p>
<p>Now, if only this was built in to the &#8220;Properties &gt; Fields&#8221; tab! ;)</p>
]]></content:encoded>
			<wfw:commentRss>http://darrencope.com/2012/01/13/qgis-can-now-delete-columns-in-shapefiles/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>New &#8220;Control Rendering Order&#8221; Option in QGIS</title>
		<link>http://darrencope.com/2011/12/01/new-control-rendering-order-option-in-qgis/</link>
		<comments>http://darrencope.com/2011/12/01/new-control-rendering-order-option-in-qgis/#comments</comments>
		<pubDate>Thu, 01 Dec 2011 14:03:34 +0000</pubDate>
		<dc:creator>darrencope</dc:creator>
				<category><![CDATA[GIS]]></category>

		<guid isPermaLink="false">http://darrencope.com/?p=1004</guid>
		<description><![CDATA[I just downloaded the latest QGIS development build (1.9.90-9) and immediately noticed a significant change to the look of the layer legend pane. It now looks like this: You&#8217;ll see that it is split into two panes, with one called &#8220;Layers&#8221; and one called &#8220;Layer order.&#8221;  Each now has a checkbox to &#8220;Control rendering order&#8221; [...]]]></description>
			<content:encoded><![CDATA[<p>I just downloaded the latest QGIS development build (1.9.90-9) and immediately noticed a significant change to the look of the layer legend pane. It now looks like this:</p>
<div id="attachment_1005" class="wp-caption aligncenter" style="width: 115px"><a href="http://darrencope.com/wp-content/uploads/2011/12/20111201_LayerRenderingOrder.png" rel="lightbox[1004]"><img class="size-medium wp-image-1005" title="Control Rendering Order" src="http://darrencope.com/wp-content/uploads/2011/12/20111201_LayerRenderingOrder-105x300.png" alt="Control Rendering Order" width="105" height="300" /></a><p class="wp-caption-text">Control Rendering Order</p></div>
<p>You&#8217;ll see that it is split into two panes, with one called &#8220;Layers&#8221; and one called &#8220;Layer order.&#8221;  Each now has a checkbox to &#8220;Control rendering order&#8221;</p>
<p>Essentially, the new functionality allows you to decouple the way layers are organized in the legend (&#8220;Layers&#8221; pane) from the order they are rendered (drawn) on the canvas (controlled via the &#8220;Layer order&#8221; pane.) This is really nice if you have complex maps with many layers and groups in the legend!</p>
<p>It still seems a bit buggy, but considering it just came out in last night&#8217;s nightly build, I&#8217;m not surprised! I&#8217;m looking forward to seeing this mature!</p>
]]></content:encoded>
			<wfw:commentRss>http://darrencope.com/2011/12/01/new-control-rendering-order-option-in-qgis/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Map Books in QGIS</title>
		<link>http://darrencope.com/2011/11/22/map-books-in-qgis/</link>
		<comments>http://darrencope.com/2011/11/22/map-books-in-qgis/#comments</comments>
		<pubDate>Tue, 22 Nov 2011 13:49:03 +0000</pubDate>
		<dc:creator>darrencope</dc:creator>
				<category><![CDATA[GIS]]></category>

		<guid isPermaLink="false">http://darrencope.com/?p=974</guid>
		<description><![CDATA[Have you ever wanted to automate the creation of a mapbook? Well, QGIS has a great plugin called EasyPrint that does just that! It makes the process simple and quick once you know how it works.  I&#8217;ll try to explain exactly that below! Installation: EasyPrint is written by Stefan Ziegler, who we all owe a [...]]]></description>
			<content:encoded><![CDATA[<p>Have you ever wanted to automate the creation of a mapbook? Well, <a title="Quantum GIS" href="http://www.qgis.org/">QGIS </a>has a great plugin called EasyPrint that does just that! It makes the process simple and quick once you know how it works.  I&#8217;ll try to explain exactly that below!</p>
<h2>Installation:</h2>
<p>EasyPrint is written by Stefan Ziegler, who we all owe a big thanks! You can install the plugin from the &#8220;Fetch Python Plugins&#8221; menu. If you don&#8217;t see it there, you may need to add the CatAIS Repository. To do so, go to &#8220;Plugins &gt; Fetch Python Plugins&#8221; and click the &#8220;Repositories&#8221; tab. At the bottom, click &#8220;Add 3rd party repositories,&#8221; then &#8220;OK.&#8221; Then switch back to the &#8220;Plugins&#8221; tab, and type&#8221;EasyPrint&#8221; in the search. You should have one result, which you should select before clicking &#8220;Install plugin.&#8221;</p>
<div id="attachment_975" class="wp-caption aligncenter" style="width: 310px"><a href="http://darrencope.com/wp-content/uploads/2011/11/EasyPrint1.png" rel="lightbox[974]"><img class="size-medium wp-image-975" title="EasyPrint in the Plugin Installer" src="http://darrencope.com/wp-content/uploads/2011/11/EasyPrint1-300x188.png" alt="EasyPrint in the Plugin Installer" width="300" height="188" /></a><p class="wp-caption-text">EasyPrint in the Plugin Installer</p></div>
<p>Once the plugin is installed, you can enable it under the &#8220;Plugins &gt; Manage Plugins&#8221; menu if it is not already enabled. If the install was successful, you can access &#8220;EasyPrint&#8221; in your plugins menu, or via the toolbar icon that looks like this:</p>
<div id="attachment_976" class="wp-caption aligncenter" style="width: 47px"><a href="http://darrencope.com/wp-content/uploads/2011/11/EasyPrint2.png" rel="lightbox[974]"><img class="size-full wp-image-976" title="EasyPrint Icon" src="http://darrencope.com/wp-content/uploads/2011/11/EasyPrint2.png" alt="EasyPrint Icon" width="37" height="34" /></a><p class="wp-caption-text">EasyPrint Icon</p></div>
<p>If you already have the plugin installed, you may want to see if there&#8217;s an updated version&#8211;the new version seems to increase stability quite a bit!</p>
<h2>Functionality:</h2>
<p>EasyPrint has several functions. When you click the icon, you&#8217;ll get a three-tabbed interface that looks like this:</p>
<div id="attachment_977" class="wp-caption aligncenter" style="width: 422px"><a href="http://darrencope.com/wp-content/uploads/2011/11/EasyPrint3.png" rel="lightbox[974]"><img class="size-full wp-image-977" title="EasyPrint GUI" src="http://darrencope.com/wp-content/uploads/2011/11/EasyPrint3.png" alt="EasyPrint GUI" width="412" height="625" /></a><p class="wp-caption-text">EasyPrint GUI</p></div>
<p>The first tab, &#8220;SimpleMap&#8221; allows you to create a one-page map, very similar to the standard QGIS Composer window. It uses layouts that come with EasyPrint or one that you can customize (more about that later.) In fact, this option even opens the EasyPrint layout in the composer window. To me, this tab seems unneccessary, because this process is more difficult than using the standard composer. Thus, I don&#8217;t see a real need for the SimpleMap option at all, except that it lets you quickly turn on or off things like the grid, copyright, etc. via checkbox rather than adding or removing them from a layout. However, it&#8217;s important to note that the next two tabs will use some of the settings from this first tab, so make sure you note them and set them appropriately.</p>
<p>Where EasyPrint really shines is in the ability to automate the creation of multi-page map books, rather than just simple maps. The second tab, &#8220;Mapbook by grid&#8221; allows you to print one page per &#8217;tile&#8217; based on a grid it will create. Make sure to set the scale you want your maps to be created at by choosing it on the first tab. EasyPrint will use the extent of the layer you choose under &#8220;Map layer&#8221; when creating the grid. I found this a bit confusing, and it took me a while to figure it out. You can also tell EasyPrint if you want to print all grid tiles (Regular Grid,) or only tiles that actually contain features on your chosen map layer (Regular Grid w/o empty grids option). If you select the &#8216;w/o empty grid&#8217; option, EasyPrint will check if there is a feature present in &#8220;Map Layer&#8221; you have selected, and if so, create a page for that map tile. If not, it will skip it and move to the next tile. Once you&#8217;ve set these options appropriately, hit &#8220;Create.&#8221; You&#8217;ll see a new layer called &#8220;Mapbook Grid&#8221; appear in the layer legend as EasyPrint creates the grid. Note that this is where EasyPrint often crashes for me, throwing a fun Python Error. Save your work before hitting &#8216;Create&#8217; and just try try it again. It almost always works the second time! Once the grid is created, it&#8217;s as simple as selecting any of the optional parameters, and telling EasyPrint where to export your file(s). Then hit &#8220;OK&#8221; and wait for your .pdf(s) to be created!</p>
<p>Here&#8217;s a quick example of a mapbook created using the &#8220;Regular Grid&#8221; function. Note that tile 2.1 is empty, and would have been skipped if I had selected &#8220;Regular Grid w/o empty grid&#8221;)</p>
<div id="attachment_980" class="wp-caption aligncenter" style="width: 310px"><a href="http://darrencope.com/wp-content/uploads/2011/11/EasyPrint_By_Grid-0.png" rel="lightbox[974]"><img class="size-medium wp-image-980" title="Page 1" src="http://darrencope.com/wp-content/uploads/2011/11/EasyPrint_By_Grid-0-300x211.png" alt="Page 1" width="300" height="211" /></a><p class="wp-caption-text">Page 1</p></div>
<div id="attachment_981" class="wp-caption aligncenter" style="width: 310px"><a href="http://darrencope.com/wp-content/uploads/2011/11/EasyPrint_By_Grid-1.png" rel="lightbox[974]"><img class="size-medium wp-image-981" title="Page 2" src="http://darrencope.com/wp-content/uploads/2011/11/EasyPrint_By_Grid-1-300x211.png" alt="Page 2" width="300" height="211" /></a><p class="wp-caption-text">Page 2</p></div>
<div id="attachment_982" class="wp-caption aligncenter" style="width: 310px"><a href="http://darrencope.com/wp-content/uploads/2011/11/EasyPrint_By_Grid-2.png" rel="lightbox[974]"><img class="size-medium wp-image-982" title="Page 3" src="http://darrencope.com/wp-content/uploads/2011/11/EasyPrint_By_Grid-2-300x211.png" alt="Page 3" width="300" height="211" /></a><p class="wp-caption-text">Page 3</p></div>
<div id="attachment_983" class="wp-caption aligncenter" style="width: 310px"><a href="http://darrencope.com/wp-content/uploads/2011/11/EasyPrint_By_Grid-3.png" rel="lightbox[974]"><img class="size-medium wp-image-983" title="Page 4" src="http://darrencope.com/wp-content/uploads/2011/11/EasyPrint_By_Grid-3-300x211.png" alt="Page 4" width="300" height="211" /></a><p class="wp-caption-text">Page 4</p></div>
<div id="attachment_984" class="wp-caption aligncenter" style="width: 310px"><a href="http://darrencope.com/wp-content/uploads/2011/11/EasyPrint_By_Grid-4.png" rel="lightbox[974]"><img class="size-medium wp-image-984" title="Page 5" src="http://darrencope.com/wp-content/uploads/2011/11/EasyPrint_By_Grid-4-300x211.png" alt="Page 5" width="300" height="211" /></a><p class="wp-caption-text">Page 5</p></div>
<p>&nbsp;</p>
<div id="attachment_987" class="wp-caption aligncenter" style="width: 310px"><a href="http://darrencope.com/wp-content/uploads/2011/11/EasyPrint_By_Grid-51.png" rel="lightbox[974]"><img class="size-medium wp-image-987" title="Page 6" src="http://darrencope.com/wp-content/uploads/2011/11/EasyPrint_By_Grid-51-300x211.png" alt="Page 6" width="300" height="211" /></a><p class="wp-caption-text">Page 6</p></div>
<div id="attachment_988" class="wp-caption aligncenter" style="width: 310px"><a href="http://darrencope.com/wp-content/uploads/2011/11/EasyPrint_By_Grid-6.png" rel="lightbox[974]"><img class="size-medium wp-image-988" title="Page 7" src="http://darrencope.com/wp-content/uploads/2011/11/EasyPrint_By_Grid-6-300x211.png" alt="Page 7" width="300" height="211" /></a><p class="wp-caption-text">Page 7</p></div>
<p>The third tab, &#8220;Mapbook by feature&#8221; is the one that drew me to the tool in the first place. It works similarly to the &#8220;Mapbook by Grid&#8221; tab, but rather than creating tiles at a fixed scale in a grid pattern, it creates a sheet for each individual feature in a layer. The scale will vary based on the size of the feature, and you can set the amount of &#8216;buffer&#8217; space around each feature to give some context to each map. You can also choose attributes from the table to use as titles and subtitles, and these will change on every page. Sweet!</p>
<p>Here&#8217;s an example of the same dataset shown above, but using the &#8220;Mapbook by feature&#8221; tab this time. Note that it only creates a page for each of the three features, and the scale varies depending on the feature size. Also note the titles, which change on each page based on data in the attribute table. In my case, they are the very useful (&#8220;One,&#8221; &#8220;Two,&#8221; and &#8220;Three&#8221;) Pretty slick!</p>
<div id="attachment_990" class="wp-caption aligncenter" style="width: 310px"><a href="http://darrencope.com/wp-content/uploads/2011/11/EasyPrint_By_Feature-0.png" rel="lightbox[974]"><img class="size-medium wp-image-990" title="Page 1" src="http://darrencope.com/wp-content/uploads/2011/11/EasyPrint_By_Feature-0-300x211.png" alt="Page 1" width="300" height="211" /></a><p class="wp-caption-text">Page 1</p></div>
<div id="attachment_991" class="wp-caption aligncenter" style="width: 310px"><a href="http://darrencope.com/wp-content/uploads/2011/11/EasyPrint_By_Feature-1.png" rel="lightbox[974]"><img class="size-medium wp-image-991" title="Page 2" src="http://darrencope.com/wp-content/uploads/2011/11/EasyPrint_By_Feature-1-300x211.png" alt="Page 2" width="300" height="211" /></a><p class="wp-caption-text">Page 2</p></div>
<div id="attachment_992" class="wp-caption aligncenter" style="width: 310px"><a href="http://darrencope.com/wp-content/uploads/2011/11/EasyPrint_By_Feature-2.png" rel="lightbox[974]"><img class="size-medium wp-image-992" title="Page 3" src="http://darrencope.com/wp-content/uploads/2011/11/EasyPrint_By_Feature-2-300x211.png" alt="Page 3" width="300" height="211" /></a><p class="wp-caption-text">Page 3</p></div>
<div id="attachment_993" class="wp-caption aligncenter" style="width: 310px"><a href="http://darrencope.com/wp-content/uploads/2011/11/EasyPrint_By_Feature-3.png" rel="lightbox[974]"><img class="size-medium wp-image-993" title="Page 4" src="http://darrencope.com/wp-content/uploads/2011/11/EasyPrint_By_Feature-3-300x211.png" alt="Page 4" width="300" height="211" /></a><p class="wp-caption-text">Page 4</p></div>
<h2>Layouts:</h2>
<p>By default, EasyPrint comes with three layouts. Unfortunately, they are not very useful for anyone except the person who created them! Thus, you&#8217;ll very likely want to create and use your own. Because this post is getting long, and because I&#8217;m still playing with the layout customization, I will leave that topic for a new post! It&#8217;s (unfortunately) not a super user friendly process, so I&#8217;ll try to break it down in the next post. Stay tuned! (If you want to get started earlier than that, take a poke at layouts.xml in your \user\.qgis\python\plugins\easyprint\layouts\ folder!)</p>
<h2>Conclusion:</h2>
<p>This is a fantastic plugin! Despite crashing occasionally (save your Project often!) it does a great job when it works.</p>
<p>My wish list for this one is pretty short right now. Basically, I&#8217;d love to see this map book creation functionality built into the core Composer window in QGIS, or at the very least have the EasyPrint plugin extended to include support for templates created via the composer. Some modifications to &#8216;intuitiveness&#8217; (like not using settings from the first tab on subsequent tabs) would be nice, but not critical. It all works once you get the hang of it!</p>
]]></content:encoded>
			<wfw:commentRss>http://darrencope.com/2011/11/22/map-books-in-qgis/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>QGIS Diagrams &#8211; Pie Charts for Symbols!</title>
		<link>http://darrencope.com/2011/11/01/qgis-diagrams-pie-charts-for-symbols/</link>
		<comments>http://darrencope.com/2011/11/01/qgis-diagrams-pie-charts-for-symbols/#comments</comments>
		<pubDate>Tue, 01 Nov 2011 12:21:27 +0000</pubDate>
		<dc:creator>darrencope</dc:creator>
				<category><![CDATA[GIS]]></category>

		<guid isPermaLink="false">http://darrencope.com/?p=912</guid>
		<description><![CDATA[QGIS has a great feature that allows you to create pie charts for feature symbols! I have known about it for a while, but never really had the opportunity or reason to play with it. However, this post on gis.stackexchange.com prompted me to take a look. Here&#8217;s a quick summary of how the &#8216;Diagrams&#8217; functionality [...]]]></description>
			<content:encoded><![CDATA[<p>QGIS has a great feature that allows you to create pie charts for feature symbols! I have known about it for a while, but never really had the opportunity or reason to play with it. However, <a title="How to place multiple symbols on one polygon centroid?" href="http://gis.stackexchange.com/questions/16154/how-to-place-multiple-symbols-on-one-polygon-centroid">this post</a> on gis.stackexchange.com prompted me to take a look. Here&#8217;s a quick summary of how the &#8216;Diagrams&#8217; functionality works in case you&#8217;re like me and haven&#8217;t had time to check it out! It&#8217;s easy to do, and works pretty well!</p>
<p>As an example, I created a random sample dataset with some fictitious data. It contained three points, and the attribute table looked like this:</p>
<div id="attachment_922" class="wp-caption aligncenter" style="width: 310px"><a href="http://darrencope.com/wp-content/uploads/2011/11/20111101_PieChartTable.png" rel="lightbox[912]"><img class="size-medium wp-image-922" title="Attribute Table" src="http://darrencope.com/wp-content/uploads/2011/11/20111101_PieChartTable-300x96.png" alt="Attribute Table" width="300" height="96" /></a><p class="wp-caption-text">Attribute Table</p></div>
<p>To create a diagram symbol, go to the properties for the layer in question, and click the &#8220;Diagrams&#8221; tab at the top, then check off &#8220;Display Diagrams&#8221; and set Diagram type to &#8220;Pie Chart.&#8221; You can also use &#8220;Text Diagram&#8221; but that&#8217;s another post!</p>
<p>You can set either a fixed size, or scale the size of the charts to an attribute value range. This is useful if you are wanting to use the <em>size</em> of the symbol to indicate a value, and the &#8216;slices&#8217; to indicate percentages. In my case, I set the size to &#8217;23&#8242; and set it to scale between 0 and 30mm. This is arbitrary in my case, but you can play with it using your own data to see what works best for you.</p>
<p>At the bottom under &#8220;Attributes,&#8221; select each attribute you want to form a &#8216;slice&#8217; of the pie, and click the &#8216;+&#8217; on the right. Then select the next value, and click &#8216;+.&#8217;  Repeat until you are finished adding all values. In my case, I added attributes A, B, C, and D. I didn&#8217;t want to use the ID, so I left it out. You can set individual colours for each &#8216;slice&#8217; here by double clicking the colour in the table. Here&#8217;s what my settings looked like:</p>
<div id="attachment_916" class="wp-caption aligncenter" style="width: 264px"><a href="http://darrencope.com/wp-content/uploads/2011/11/20111101_PieChartSettings.png" rel="lightbox[912]"><img class="size-medium wp-image-916" title="Pie Chart Settings" src="http://darrencope.com/wp-content/uploads/2011/11/20111101_PieChartSettings-254x300.png" alt="Pie Chart Settings" width="254" height="300" /></a><p class="wp-caption-text">Pie Chart Settings</p></div>
<p>and here&#8217;s here what the final product looks like:</p>
<div id="attachment_917" class="wp-caption aligncenter" style="width: 310px"><a href="http://darrencope.com/wp-content/uploads/2011/11/20111101_PieChartResult.png" rel="lightbox[912]"><img class="size-medium wp-image-917" title="Final Result" src="http://darrencope.com/wp-content/uploads/2011/11/20111101_PieChartResult-300x236.png" alt="Final Result" width="300" height="236" /></a><p class="wp-caption-text">Final Result</p></div>
<p>This is already a great tool, and with a few more enhancements, it will be a <em>fantastic</em> tool! What enhancements you wonder? A couple that immediately come to mind are the ability to label &#8216;slices&#8217; with either their attribute value, or their percentage, and the ability to remove all borders (in the above example, &#8216;Pen Width&#8217; is set to 0, but it still shows a border. Weird.)</p>
<p>What features would you like to see?</p>
]]></content:encoded>
			<wfw:commentRss>http://darrencope.com/2011/11/01/qgis-diagrams-pie-charts-for-symbols/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>QGIS Topological Editing</title>
		<link>http://darrencope.com/2011/10/19/qgis-topological-editing/</link>
		<comments>http://darrencope.com/2011/10/19/qgis-topological-editing/#comments</comments>
		<pubDate>Wed, 19 Oct 2011 13:00:14 +0000</pubDate>
		<dc:creator>darrencope</dc:creator>
				<category><![CDATA[GIS]]></category>

		<guid isPermaLink="false">http://darrencope.com/?p=845</guid>
		<description><![CDATA[As we all know, there&#8217;s almost always more than one way to do something! In a previous post (QGIS Trace Edit Tool) I discussed how to use QGIS&#8217; trace edit plugin to create a polygon adjacent to an existing polygon while ensuring that it is topologically correct. With a bit more experimentation, I&#8217;ve found a [...]]]></description>
			<content:encoded><![CDATA[<p>As we all know, there&#8217;s almost always more than one way to do something!</p>
<p>In a previous post (<a title="QGIS Trace Edit Tool" href="http://darrencope.com/2011/10/13/qgis-trace-edit-tool/">QGIS Trace Edit Tool</a>) I discussed how to use QGIS&#8217; trace edit plugin to create a polygon adjacent to an existing polygon while ensuring that it is topologically correct. With a bit more experimentation, I&#8217;ve found a better and easier way to perform the same task, using QGIS&#8217; built-in topological editing functions. It&#8217;s easy and super convenient!</p>
<p>The key is that you&#8217;ll need to go to Settings &gt; Snapping Options and enable the &#8220;Avoid Int.&#8221;  checkbox. (The mouseover reads &#8220;Avoid intersections of new polygons&#8221; and the checkbox doesn&#8217;t appear for lines or points, since it doesn&#8217;t apply.)</p>
<div id="attachment_846" class="wp-caption aligncenter" style="width: 456px"><a href="http://darrencope.com/wp-content/uploads/2011/10/20111014_Topology4.png" rel="lightbox[845]"><img class="size-full wp-image-846  " title="Enable &quot;Avoid Intersections&quot;" src="http://darrencope.com/wp-content/uploads/2011/10/20111014_Topology4.png" alt="Enable &quot;Avoid Intersections&quot;" width="446" height="257" /></a><p class="wp-caption-text">Enable &quot;Avoid Intersections&quot;</p></div>
<p>You can then digitize a polygon beside existing polygons, and have the new feature &#8216;clipped&#8217; to the boundary. This is faster than using the trace edit plugin like I mentioned before, and it also ensures that no vertices are missed! Fantastic! How about we walk through an example? Pretend we had these existing features:</p>
<div id="attachment_847" class="wp-caption aligncenter" style="width: 438px"><a href="http://darrencope.com/wp-content/uploads/2011/10/20111014_Topology1.png" rel="lightbox[845]"><img class="size-full wp-image-847   " title="Existing Features" src="http://darrencope.com/wp-content/uploads/2011/10/20111014_Topology1.png" alt="Existing Features" width="428" height="377" /></a><p class="wp-caption-text">Existing Features</p></div>
<p>Now, let us pretend we want to draw a polygon that fills in the hole in the middle. We could simply set our snapping options, zoom way in, and try to snap to every vertex using the standard edit tool. Or, we could use the trace edit tool, and &#8216;trace&#8217; around the boundary while holding the Ctrl key. OR, we could set the &#8220;Avoid intersection&#8221; option as shown above, and just quickly sketch in the boundary like so:</p>
<div id="attachment_848" class="wp-caption aligncenter" style="width: 438px"><a href="http://darrencope.com/wp-content/uploads/2011/10/20111014_Topology2.png" rel="lightbox[845]"><img class="size-full wp-image-848   " title="New feature boundary" src="http://darrencope.com/wp-content/uploads/2011/10/20111014_Topology2.png" alt="New feature boundary" width="428" height="377" /></a><p class="wp-caption-text">New feature boundary</p></div>
<p>The red feature above is what I drew in. No need to go carefully, or try to snap to anything. Just roughly sketch in the area I want. Topology rules take care of the rest, clipping the feature to the existing boundary when I finish my sketch. The final product looks like this:</p>
<div id="attachment_849" class="wp-caption aligncenter" style="width: 438px"><a href="http://darrencope.com/wp-content/uploads/2011/10/20111014_Topology3.png" rel="lightbox[845]"><img class="size-full wp-image-849   " title="Finished Product" src="http://darrencope.com/wp-content/uploads/2011/10/20111014_Topology3.png" alt="Finished Product" width="428" height="377" /></a><p class="wp-caption-text">Finished Product</p></div>
<p>Voila! It&#8217;s just that easy! I quickly (not precisely at all) drew in the rough shape required, and ended up with a perfectly topologically correct feature that follows the existing boundary exactly. No need to snap or trace anything! Sweet!</p>
]]></content:encoded>
			<wfw:commentRss>http://darrencope.com/2011/10/19/qgis-topological-editing/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>QGIS Trace Edit Tool</title>
		<link>http://darrencope.com/2011/10/13/qgis-trace-edit-tool/</link>
		<comments>http://darrencope.com/2011/10/13/qgis-trace-edit-tool/#comments</comments>
		<pubDate>Thu, 13 Oct 2011 16:05:35 +0000</pubDate>
		<dc:creator>darrencope</dc:creator>
				<category><![CDATA[GIS]]></category>

		<guid isPermaLink="false">http://darrencope.com/?p=840</guid>
		<description><![CDATA[As you probably know, I love QGIS. It&#8217;s a fantastic tool that gets better on an almost daily basis. However, as with most open source projects, the documentation is often lacking. I found this to be the case when I wanted to use the &#8220;Trace Edit&#8221; tool. It&#8217;s a plugin, and installed using the Plugin [...]]]></description>
			<content:encoded><![CDATA[<p>As you probably know, I love <a title="Quantum GIS" href="http://www.qgis.org/">QGIS</a>. It&#8217;s a fantastic tool that gets better on an almost daily basis.</p>
<p>However, as with most open source projects, the documentation is often lacking. I found this to be the case when I wanted to use the &#8220;Trace Edit&#8221; tool. It&#8217;s a plugin, and installed using the Plugin Fetch &amp; Manage functionality of QGIS. Just search for &#8220;TraceDigitize&#8221; in the repositories, and click &#8220;Install Plugin.&#8221; I assumed that the tool would allow me to make a new feature that &#8216;snaps&#8217; to an existing feature by tracing along the edge of the existing feature, without having to find and click every vertex. It turns out that this is exactly what the tool does&#8230;<em>however</em> I just couldn&#8217;t seem to get the tool to work! A Google search turned up nothing except for some developer chats about bugs and QGIS crashing while using the tool. Great!</p>
<p>After some frustration and experimentation, I got the tool to work. So, what&#8217;s the secret? First, you must have the &#8220;Snapping Options&#8221; set (Under Settings &gt; Snapping Options) as the tool requires these settings to know what to snap to. Secondly, you <em>must hold the Ctrl key while digitizing</em>. No, this is not documented anywhere. Until now. If you don&#8217;t hold Ctrl, the tool works just like the normal digitizing tool.</p>
<div id="attachment_843" class="wp-caption aligncenter" style="width: 444px"><a href="http://darrencope.com/wp-content/uploads/2011/10/20111013_TraceDigitize.png" rel="lightbox[840]"><img class="size-full wp-image-843" title="Trace Edit Tool" src="http://darrencope.com/wp-content/uploads/2011/10/20111013_TraceDigitize.png" alt="Trace Edit Tool" width="434" height="425" /></a><p class="wp-caption-text">Trace Edit Tool</p></div>
<p>One thing to note is that if your snapping tolerance is too small, or you go too fast as you trace, you will still end up with gaps as in the example above. Try tweaking (increasing) the snapping tolerance, or slow down a bit, and you should be fine!</p>
<p>Enjoy!</p>
]]></content:encoded>
			<wfw:commentRss>http://darrencope.com/2011/10/13/qgis-trace-edit-tool/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Unlocking A GRASS Mapset</title>
		<link>http://darrencope.com/2011/04/29/unlocking-a-grass-mapset/</link>
		<comments>http://darrencope.com/2011/04/29/unlocking-a-grass-mapset/#comments</comments>
		<pubDate>Fri, 29 Apr 2011 10:45:43 +0000</pubDate>
		<dc:creator>darrencope</dc:creator>
				<category><![CDATA[GIS]]></category>

		<guid isPermaLink="false">http://darrencope.com/?p=653</guid>
		<description><![CDATA[If you&#8217;ve used GRASS at all, you&#8217;ve probably seen a message that looks like this: Depending on which version of GRASS you&#8217;re running, or your OS, the dialog box may look different (this one shown is from a GRASS session running inside QGIS; coincidentally my fvourite way to run GRASS&#8230;.) but the message will be [...]]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;ve used <a title="GRASS" href="http://grass.fbk.eu/">GRASS</a> at all, you&#8217;ve probably seen a message that looks like this:</p>
<div id="attachment_655" class="wp-caption aligncenter" style="width: 332px"><a href="http://darrencope.com/wp-content/uploads/2011/04/20110429_GRASSMapset.png" rel="lightbox[653]"><img class="size-full wp-image-655" title="&quot;Cannot open the mapset. Mapset is already in use." src="http://darrencope.com/wp-content/uploads/2011/04/20110429_GRASSMapset.png" alt="&quot;Cannot open the mapset. Mapset is already in use." width="322" height="113" /></a><p class="wp-caption-text">&quot;Cannot open the mapset. Mapset is already in use.&quot;</p></div>
<p>Depending on which version of GRASS you&#8217;re running, or your OS, the dialog box may look different (this one shown is from a GRASS session running inside <a title="QGIS" href="http://qgis.org/">QGIS;</a> coincidentally my fvourite way to run GRASS&#8230;.) but the message will be the same, reading &#8220;Cannot open the mapset. Mapset is already in use.&#8221; So, what does it mean? It means that for some reason (likely due to a system crash, improper exiting of the program, or a hung module&#8230;) your previous GRASS session was not properly closed.  As GRASS was originally designed for a multi-user environment, it protects each individual mapset from being edited by more than one person by locking it when it is opened. It unlocks the mapset when it is closed; unless something goes wrong as I mentioned above.</p>
<p>When this does happen, you&#8217;ll be unable to use the mapset, even though you know no one else is using it. So what do you do? It&#8217;s easy really!</p>
<p>Browse to the mapset in your OS filesystem. There should be a file called &#8216;.gislock&#8217; there. Delete it. You should then be able to open your mapset normally!</p>
<p>Note that you are just doing what GRASS does normally when it works properly; .gislock is the file created when you open a mapset, and when a mapset is closed properly, it is deleted. You deleting it manually won&#8217;t change or break anything. Just be careful not to touch any of the other files in the mapset!</p>
<p>There you go! It&#8217;s just that easy!</p>
]]></content:encoded>
			<wfw:commentRss>http://darrencope.com/2011/04/29/unlocking-a-grass-mapset/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Renaming Fields in a Shapefile</title>
		<link>http://darrencope.com/2011/04/26/renaming-fields-in-a-shapefile/</link>
		<comments>http://darrencope.com/2011/04/26/renaming-fields-in-a-shapefile/#comments</comments>
		<pubDate>Tue, 26 Apr 2011 10:35:09 +0000</pubDate>
		<dc:creator>darrencope</dc:creator>
				<category><![CDATA[GIS]]></category>

		<guid isPermaLink="false">http://darrencope.com/?p=645</guid>
		<description><![CDATA[Here&#8217;s another quick post on the use of OGR for a simple yet often annoying task; renaming fields in a Shapefile. We&#8217;ve all had a Shapefile with column names that make no sense (10 character limit anyone?) or with fields that were manually created by some geoprocessing tool and given a random name upon output. [...]]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s another quick post on the use of <a title="OGR" href="http://www.gdal.org/ogr/">OGR</a> for a simple yet often annoying task; renaming fields in a Shapefile.</p>
<p>We&#8217;ve all had a Shapefile with column names that make no sense (10 character limit anyone?) or with fields that were manually created by some geoprocessing tool and given a random name upon output. So how do you rename these columns? <a title="Quantum GIS" href="http://qgis.org/">QGIS</a> is getting close with its new &#8216;Fields&#8217; options under the layer &#8220;Properties,&#8221; but can&#8217;t yet do the job. The &#8220;Table Manager&#8221; plugin will do the job fairly easily, but is not a built in function. <a title="Kosmo GIS" href="http://www.opengis.es/">Kosmo</a> will do the task, but is often very slow and will choke on a large file. And <em>please</em> don&#8217;t go opening the .dbf and editing names directly&#8211;that&#8217;s just asking for trouble! (and Excel won&#8217;t even save back to a .dbf, so you&#8217;ll have to use <a title="LibreOffice" href="http://www.libreoffice.org/">LibreOffice</a>!)  So, what&#8217;s the failproof solution? Once again, we turn to the amazing <a title="OGR" href="http://www.gdal.org/ogr/">OGR</a>. Using ogr2ogr we can slide in an SQL statement that does the trick nicely, and as with almost all OGR tasks, it&#8217;s quick, stable and effective. Here&#8217;s how simple it is:</p>
<p><code>ogr2ogr outdataset indataset -sql "SELECT src_field1 AS dst_field1, src_field2 AS dst_field2 FROM sourcelayer"</code></p>
<p>Of course you can rename any/all of the fields using this method all in one step! The other great thing is that you can enter virtually <em>any </em>SQL statement, so you can do other tasks at the same time as the rename if you need to. For example you could pick out select fields, rename them, and also enter a WHERE clause to subset your dataset at the same time. There are so many options!</p>
<p>Final word: Don&#8217;t be afraid of the command line! It&#8217;s fast, stable and <em>powerful</em>!</p>
]]></content:encoded>
			<wfw:commentRss>http://darrencope.com/2011/04/26/renaming-fields-in-a-shapefile/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Google Maps + Firefox Smart Keywords</title>
		<link>http://darrencope.com/2011/04/07/google-maps-firefox-smart-keywords/</link>
		<comments>http://darrencope.com/2011/04/07/google-maps-firefox-smart-keywords/#comments</comments>
		<pubDate>Fri, 08 Apr 2011 01:21:16 +0000</pubDate>
		<dc:creator>darrencope</dc:creator>
				<category><![CDATA[GIS]]></category>

		<guid isPermaLink="false">http://darrencope.com/?p=630</guid>
		<description><![CDATA[Admit it. You love Google Maps. It&#8217;s so useful that you likely use it every day for something-or-other. And if you&#8217;re a Firefox user, here&#8217;s a tip that will make Google Maps even easier to use: Firefox Smart Keywords It&#8217;s pretty simple. Create a bookmark that looks like this: The two things to note are [...]]]></description>
			<content:encoded><![CDATA[<p>Admit it. You love Google Maps. It&#8217;s so useful that you likely use it every day for something-or-other. And if you&#8217;re a Firefox user, here&#8217;s a tip that will make Google Maps even easier to use: <a title="Firefox Smart Keywords" href="http://support.mozilla.com/en-US/kb/Smart%20keywords">Firefox Smart Keywords</a></p>
<p>It&#8217;s pretty simple. Create a bookmark that looks like this:</p>
<div id="attachment_631" class="wp-caption aligncenter" style="width: 354px"><a href="http://darrencope.com/wp-content/uploads/2011/04/20110407_Gmaps.png" rel="lightbox[630]"><img class="size-full wp-image-631" title="Firefox Smart Keyword Setup" src="http://darrencope.com/wp-content/uploads/2011/04/20110407_Gmaps.png" alt="Firefox Smart Keyword Setup" width="344" height="253" /></a><p class="wp-caption-text">Firefox Smart Keyword Setup</p></div>
<p>The two things to note are the &#8220;%s&#8221; at the end of the location, and the &#8220;m&#8221; beside keyword.</p>
<p>So, what does this do? When you &#8220;Ctrl+L&#8221; to your AwesomeBar (aka &#8220;location bar&#8221;) you can type &#8220;m&#8221; (or whatever keyword you define in the &#8220;Keyword&#8221; field above), followed by a space, followed by the thing you want to search for in Google Maps. The &#8216;m&#8217; will tell Firefox you are using this Smart Keyword, and the &#8220;%s&#8221; will be replaced by the text string you type!</p>
<p>For example, if I wanted to find pizza in Paris right now, I would type</p>
<p><code>m pizza paris</code></p>
<p>in the AwesomeBar and hit Enter. Bingo!</p>
<p>Or, I could find directions from Paris to Roubaix by typing</p>
<p><code>m Paris to Roubaix</code></p>
<p>Of course this works similarly with any other sites (not just mapping sites) that you can pass part of the URL to via a variable. Use your imagination! :)</p>
]]></content:encoded>
			<wfw:commentRss>http://darrencope.com/2011/04/07/google-maps-firefox-smart-keywords/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Clipping Large Shapefiles using OGR</title>
		<link>http://darrencope.com/2011/03/31/clipping-large-shapefiles-using-ogr/</link>
		<comments>http://darrencope.com/2011/03/31/clipping-large-shapefiles-using-ogr/#comments</comments>
		<pubDate>Thu, 31 Mar 2011 13:08:32 +0000</pubDate>
		<dc:creator>darrencope</dc:creator>
				<category><![CDATA[GIS]]></category>

		<guid isPermaLink="false">http://darrencope.com/?p=611</guid>
		<description><![CDATA[My puzzle this morning was to clip a very large shapefile. I tried all of my usual methods (QGIS, Kosmo, etc.) and was having no success (crashing, hanging, taking forever, etc.) so I thought I would try out my old standby, OGR. I had never used OGR to clip a file based on a polygon [...]]]></description>
			<content:encoded><![CDATA[<p>My puzzle this morning was to clip a <em>very </em>large shapefile. I tried all of my usual methods (<a title="QGIS" href="http://www.qgis.org/" target="_blank">QGIS</a>, <a title="Kosmo GIS" href="http://www.opengis.es/" target="_blank">Kosmo</a>, etc.) and was having no success (crashing, hanging, taking forever, etc.) so I thought I would try out my old standby, <a title="OGR" href="http://www.gdal.org/ogr/index.html" target="_blank">OGR</a>.</p>
<p>I had never used OGR to clip a file based on a polygon before, but had used it to clip to extents. The idea is the same, except that you specify the clip polygon layer rather than the extents in the -clipsrc option.  I headed to the ever-useful <a title="ogr2ogr" href="http://www.gdal.org/ogr2ogr.html" target="_blank">man page for ogr2ogr</a>, and came up with the following, which worked perfectly!</p>
<p><code>ogr2ogr -clipsrc clipping_polygon.shp output.shp input.shp</code></p>
<p>It&#8217;s just that easy, and best of all <em>it just works</em> when all other methods fail!</p>
]]></content:encoded>
			<wfw:commentRss>http://darrencope.com/2011/03/31/clipping-large-shapefiles-using-ogr/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
	</channel>
</rss>

