<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[North Arrow Research - Medium]]></title>
        <description><![CDATA[We’re a Vancouver-based company that develops innovative GIS tools for environmental research. We do ecological modelling, habitat identification, and share spatial environmental information. - Medium]]></description>
        <link>https://medium.com/north-arrow-research?source=rss----4df4d7739a43---4</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>North Arrow Research - Medium</title>
            <link>https://medium.com/north-arrow-research?source=rss----4df4d7739a43---4</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 19:55:14 GMT</lastBuildDate>
        <atom:link href="https://medium.com/feed/north-arrow-research" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Creating your own QGIS plugin store]]></title>
            <link>https://medium.com/north-arrow-research/creating-your-own-qgis-plugin-store-5df8f9423a6e?source=rss----4df4d7739a43---4</link>
            <guid isPermaLink="false">https://medium.com/p/5df8f9423a6e</guid>
            <category><![CDATA[xml]]></category>
            <category><![CDATA[jekyll]]></category>
            <category><![CDATA[qgis]]></category>
            <category><![CDATA[open-source]]></category>
            <dc:creator><![CDATA[Matt Reimer]]></dc:creator>
            <pubDate>Tue, 01 Aug 2017 17:52:13 GMT</pubDate>
            <atom:updated>2017-08-01T17:52:13.188Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DKJeS7HwGD4Zi9lREON4RA.png" /></figure><p>On the long road to open source GIS we’ve been looking at how best to deploy QGIS plugins to our clients.</p><p>In the spirit of free software we’re really keen on getting our tools into the official QGIS plugin store but until we’re confident our plugins are usable by the general public it’s nice to have a way to deploy plugins amongst ourselves.</p><p>I’m not advocating this for general plugins that would be useful for other . people. QGIS is an open source movement and if you’ve got a great plugin that makes toast better than anyone else you should definitely jump through the hoops to get it on the official store so others can find it.</p><p>Some cases where having your own store might be nice include proof-of-concepts, experiments and plugins that are so specific to your project/organization that others wouldn’t find them useful.</p><p>There’s nothing stopping you from just emailing your plugins as a zip file that people drop into the <strong>~/.qgis2/python/plugins</strong> folder but I like having an automatic upgrade path, even for developer versions. This way I can message someone telling them to simply click an update button and not have to worry that they didn’t replace the plugins folder correctly.</p><p>Luckily for us it ended up being trivial to get our own custom store written and up online using <a href="https://pages.github.com/">GitHub Pages</a>. The benefits of doing it thus way are:</p><ol><li>Our store is version-controlled our store in git.</li><li>Free web hosting!</li><li>Taking advantage of <a href="https://jekyllrb.com/">Jekyll theming</a></li></ol><p>Ok, let’s get started.</p><h3>Creating the Store</h3><p>QGIS shows its store to be simply a url: <a href="https://plugins.qgis.org/plugins/plugins.xml">https://plugins.qgis.org/plugins/plugins.xml</a></p><p>If you view the source for this you can see that it’s just a really basic XML file with a <strong><em>&lt;plugins&gt;</em></strong> tag wrapping around a bunch of <strong><em>&lt;pyqgis_plugin&gt;</em></strong> definitions.</p><p>Documentation was a little hard to find for what tags are actually used but if we follow the same pattern we should end up with something usable and create our own that looked something like this:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/e071097e602375d45e875949fc9b1106/href">https://medium.com/media/e071097e602375d45e875949fc9b1106/href</a></iframe><p>I tossed my <strong>xml </strong>file up onto a web server and fed the url to QGIS as a new store. Sure enough, it showed up in my list of stores. Furthermore it told me my new plugin was ready to download!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*k3aczlEKSOFvtnJyMEfsoA.png" /></figure><h3>Deploying your plugins</h3><p>Now that I had a store in place the rest is relatively straightforard. Plugins are just hosted zip files so upload them somewhere public and link to them from your store xml. We use S3 to host files so I wrote a little shell script that uses <a href="http://g-sherman.github.io/plugin_build_tool/"><strong>pb_tool</strong></a><strong> </strong>to compile and deploy a new version to keep things consistent.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/8f798c316c41dcb9cff3bc68d9747da1/href">https://medium.com/media/8f798c316c41dcb9cff3bc68d9747da1/href</a></iframe><h3>Styling your homepage:</h3><p>Now that you’re a QGIS store expert you might be looking at your XML file in a browser and noticing that it’s not very pretty or responsive.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/775/1*5ZNbKQscGB5p9EPqopbAFw.png" /><figcaption><a href="https://plugins.qgis.org/plugins/plugins.xml">https://plugins.qgis.org/plugins/plugins.xml</a> functional but not very pretty or responsive.</figcaption></figure><p>Wouldn’t it be nice for it to match our website theme and also include some instructions of how to use it? If people don’t want to use the in-built QGIS store they can still download zip files from the webpage so making it look nice is worth a little effort.</p><p>If you look at the source code you’ll notice <strong><em>&lt;?xml-stylesheet&gt;</em></strong> tag. In the past we’ve used <a href="https://www.w3.org/Style/XSL/WhatIsXSL.html">XSL transforms</a> to create attractive reports from XML files so it didn’t take much of a leap to create a style for this simple XML file:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/4c1d44a337df4b9b3d6213ffbff716bc/href">https://medium.com/media/4c1d44a337df4b9b3d6213ffbff716bc/href</a></iframe><p>We use <a href="http://foundation.zurb.com/">Foundation</a> for our responsive theming framework so the class tags you see correspond to pre-made CSS for rows, columns, labels, buttons etc.</p><p>I called this file <strong>plugins.xsl </strong>and dropped it into the root of my <a href="https://jekyllrb.com/">Jekyll</a> site next to my store file <strong>plugins.xml. </strong>The Jekyll F<a href="https://jekyllrb.com/docs/frontmatter/">rontMatter</a> at the top of the file is used to fold this into the templating system and when the Jekyll site deploys we end up with something that matches the rest of our site’s theme.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MYhDsmLnDDuqcrBlgdgZuA.png" /><figcaption>Our pretty, responsive new store with two of our new plugins ready for install.</figcaption></figure><h3>Gotchas</h3><p>There was one problem that took me forever to figure out. There are apparently some rules on how the zipfiles are named. <strong>MyPlugin.0.3.3.zip</strong> is apparently ok but <strong>MyPlugin-0.3.3.zip </strong>is not. The symptom is that the zip file will download and install the plugin but QGIS will immediately reject it and require a restart before the new plugin shows up.</p><p>To get around this we removed versions from filenames entirely and opted to use versioned folders instead:</p><p><strong>/plugins/networkprofiler/v0.6/NetworkProfiler.zip</strong></p><p>I’m happy for someone to tell me this is not the proper way to do things but it’s working for now so I’m going with it.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5df8f9423a6e" width="1" height="1" alt=""><hr><p><a href="https://medium.com/north-arrow-research/creating-your-own-qgis-plugin-store-5df8f9423a6e">Creating your own QGIS plugin store</a> was originally published in <a href="https://medium.com/north-arrow-research">North Arrow Research</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Rebasing in Git]]></title>
            <link>https://medium.com/north-arrow-research/rebasing-in-git-3ee6f02276f6?source=rss----4df4d7739a43---4</link>
            <guid isPermaLink="false">https://medium.com/p/3ee6f02276f6</guid>
            <category><![CDATA[git]]></category>
            <category><![CDATA[github]]></category>
            <dc:creator><![CDATA[Matt Reimer]]></dc:creator>
            <pubDate>Fri, 23 Dec 2016 17:16:40 GMT</pubDate>
            <atom:updated>2016-12-23T17:17:35.362Z</atom:updated>
            <content:encoded><![CDATA[<h4>The day’s end dilemma</h4><p>It’s the end of the day and everybody is anxious to get their code merged onto the integration branch and go home. Problem: everyone is trying to do this at the same time so it’s like the <a href="https://www.google.com/maps/@49.324455,-123.13031,3a,75y,192.31h,84.66t/data=!3m4!1e1!3m2!1s5f_1HK-6iOOG9M5C1fuPzw!2e0">7–1 lane merge at rush hour on the Lion’s Gate bridge</a>. It’s a classic computer science dilemma but luckily with git there’s a simple solution: <strong>Rebasing to the rescue!</strong></p><p>If, like me, you’re part of a small team or you’re the only one who commits to your repos you may never have come across this. Back in my web development days we only had one dev on a site at a time and this problem simply never came up. Now that I’m collaborating with a few developers on the same repository it can get a little hairy when we try to bring everything back together. We’ve had to add a few rebasing workflows to our toolbelt in order for things to be smooth and orderly with as few surprises as possible.</p><h3>Rebasing?</h3><p>Think of it exactly as it sounds: re-base: “Move your base”. The idea is that you put all your new commits on top of all the commits that have piled up since you left. It’s kind of like code Jenga. A picture is worth a thousand words:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/0*qx5N6rjB7YgNtqlc." /></figure><p>Here’s what’s happening:</p><ol><li>I check out the integration branch (dev) at the start of the day.</li><li>I do my work (feature commit 1–4).</li><li>At the end of the day I look and someone has made two (green) commits on the feature branch.</li><li>Instead of merging, I rebase my changes on top of theirs.</li></ol><p>When we do this we’re actually creating new, identical commits and deleting the old ones so it’s important to know that we will get new hash addresses for our commits once we rebase them. This is especially if we’re using child repos since we could very easily rebase-away a commit that’s referenced by a parent and break everything.</p><h3>How do I create a new feature?</h3><p>The following is a standard steps for the checkout-&gt;branch-&gt;work-&gt;rebase-&gt;Push workflow. At first it seems like a lot of steps but after a few iterations it really started to make a lot of sense and now it’s second nature.</p><p>Ok, here we go:</p><ol><li><strong>Checkout</strong>: Check out the latest dev</li><li><strong>Branch</strong>: Create a local feature branch dev-featurename. Note: <strong>do not push this branch</strong>. It will make rebasing harder later.</li><li><strong>Work</strong>: Ugh, but it’s so nice outside…. Code, coffee, code code code commit coffee code commit etc.</li><li><strong>Test</strong>: Yes, we all hate it but it’s easier than explaining why you broke the build.</li><li><strong>Rebase</strong>: dev may have advanced in the time I took to create my feature so I need to <strong>rebase</strong> before I can merge with it:</li><li><strong>Checkout</strong> dev and <strong>pull</strong> so my local integration branch is up to date</li><li><strong>Checkout</strong> dev-featurename and <strong>rebase</strong> on top of local dev. Fix any conflicts or problems.</li><li><strong>Checkout</strong> dev again and <strong>merge</strong> with dev-featurename. Merge should be smooth without any commits. If you get a commit. Rollback the merge commit and start over.</li><li><strong>Push</strong>: Push dev up to master.</li><li>Get distracted by a shiny object and wander off.</li></ol><p>Phew! That wasn’t so bad. There are a few gotchas though:</p><h3>Troubleshooting and gotchas:</h3><h3>Rebasing after pushing</h3><p>Let’s say you pushed your integration branch by accident. Oops. It’s definite fixable but it’s a little trickier though and takes a little bit of thought. Also you will have to do a git push -f from the command line. This command <strong><em>should not be used lightly</em></strong> so make sure you understand what you’re trying to do before hitting return. If anyone else is working on your remote branch they will get a nasty surprise.</p><h3>When’s the best time to rebase?</h3><p>The best time to rebase is just <em>before</em> you merge your feature branch back onto the integration branch. This will keep your feature branch moving along in a straight line with the dev (integration) branch.</p><h3>That’s all folks</h3><p>Overall rebasing has made our trees a lot straighter and our git commands a lot less gnarly. With git there are many pathways to do everything though. If you have a better one Let us know.</p><h3>Some More Reading</h3><p><em>Originally published at </em><a href="http://www.northarrowresearch.com/blog/2015/04/rebasing-in-git/"><em>www.northarrowresearch.com</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3ee6f02276f6" width="1" height="1" alt=""><hr><p><a href="https://medium.com/north-arrow-research/rebasing-in-git-3ee6f02276f6">Rebasing in Git</a> was originally published in <a href="https://medium.com/north-arrow-research">North Arrow Research</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Git Tips: What is a headless state?]]></title>
            <link>https://medium.com/north-arrow-research/git-tips-what-is-a-headless-state-daa9bc4e1d5a?source=rss----4df4d7739a43---4</link>
            <guid isPermaLink="false">https://medium.com/p/daa9bc4e1d5a</guid>
            <category><![CDATA[github]]></category>
            <category><![CDATA[git]]></category>
            <dc:creator><![CDATA[Matt Reimer]]></dc:creator>
            <pubDate>Fri, 23 Dec 2016 17:10:20 GMT</pubDate>
            <atom:updated>2016-12-23T17:10:19.626Z</atom:updated>
            <content:encoded><![CDATA[<p>Every now and then you’re going to get a weird git error called a “headless state”. This can be perplexing if all you want to do is push your changes and go home. It’s important to understand what’s going on here though.</p><p><strong>Getting out of a headless state is easy:</strong></p><pre>git init --ichabod-crane<br>git find horseman<br>git destroy horseman<br>git retrieve HEAD</pre><p>Kidding. Sorry. Bad git humour. Let’s start with a quick digression about HEAD</p><h4>What is HEAD anyway?</h4><p>Think of HEAD like a special branch that you can never push. Its only job is to point to where you are on your current repo. It’s kind of like a big red dot on a map telling you “<strong>YOU ARE HERE</strong>!”</p><p>When you’re working on a local repo, HEAD is a really useful concept to get around finding the hash codes for for commits.</p><pre>* 830f9c2 (HEAD, gh/dev, dev) changing the math interface<br>* 835e55b minor fix to slope<br>* 03ca206 fixing a compare problem and some sloppy merge artifacts<br>| * b2004c4 (konradPNG) I&#39;ve done all I can for now.<br>| * ee8a693 adding in the Konrad&#39;s Raster2PNG stuff<br>|/<br>* c028ec8 fixing areathresh rewrite<br>* 1942246 fixing slope interface<br>* da47d55 moving the main queue to RasterArray<br>* d317aea starting to prototype a new non-recursive areathreshold</pre><p>You can see in this tree structure that HEAD is currently pointing at the devbranch.</p><p>Now I could write git diff 830f9c2..835e55b~1 to get all the changes between where I am now and the last commit but here’s the thing: I’m <strong><em>REALLY </em></strong>lazy and a sloppy typist so A) I don’t want to look up those hashes every time and B) I’m probably going to get them wrong. Enter the concept of HEAD</p><pre>git diff HEAD..HEAD~1</pre><p>The tilde ~1 notation means “minus 1”. So diff HEAD..HEAD~1 means the difference between where I am now and the last commit.</p><p><em>That was a quick digression. Back to the problem at hand:</em></p><h4>Oh no! Git lost it’s head?!?</h4><p>First of all don’t worry. This is a “normal” state for git and you haven’t broken anything. It happens a lot when you have submodules.</p><h4>If you haven’t made a commit.</h4><p>All you have to do is check out a branch or tag and git’s HEAD will re-attach.</p><ol><li>If you’re on a submodule and you don’t need to make a commit don’t sweat it. Git is just fine chilling out in a headless state.</li><li>If you’re on a submodule and <strong>do</strong> need to make a commit just checkout the submodule’s branch (probably the branch you’re on) and get to work.</li></ol><h4>If you have made commit(s)</h4><p>First of all don’t beat yourself up. It happens. Here’s what you want to do:</p><ol><li>Make a new temporary branch: git checkout -b temp</li><li>Now you can rebase this new branch on top of the integration branch: git rebase dev</li><li>Checkout dev and merge with temp. Now that you’ve rebased tempshould be stacked directly on top of dev so the merge should happen cleanly in a fast-forward way and without a commit.</li><li>Last step is to delete your temporary branch: git branch -d temp</li></ol><p>If that last step complains don’t force it. It means you haven’t done something right and temp isn’t merged properly.</p><h4>All done.</h4><p>See? Nothing to worry about. As always, git comes through for us and makes life easy. If fixing headless states were that easy in real life the French revolution would be a very different history lesson.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=daa9bc4e1d5a" width="1" height="1" alt=""><hr><p><a href="https://medium.com/north-arrow-research/git-tips-what-is-a-headless-state-daa9bc4e1d5a">Git Tips: What is a headless state?</a> was originally published in <a href="https://medium.com/north-arrow-research">North Arrow Research</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Git Tips: Getting out of a bad merge]]></title>
            <link>https://medium.com/north-arrow-research/git-tips-getting-out-of-a-bad-merge-3f3b8e1710f5?source=rss----4df4d7739a43---4</link>
            <guid isPermaLink="false">https://medium.com/p/3f3b8e1710f5</guid>
            <category><![CDATA[github]]></category>
            <category><![CDATA[git]]></category>
            <dc:creator><![CDATA[Matt Reimer]]></dc:creator>
            <pubDate>Fri, 23 Dec 2016 17:01:55 GMT</pubDate>
            <atom:updated>2016-12-23T17:01:54.505Z</atom:updated>
            <content:encoded><![CDATA[<p>Here’s a problem: You’ve just done a git pull without realizing that someone else had pushed something while you were working. What you end up with is an unintended “Merge” commit that git adds for you.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/979/1*GRt2xNldQmY0cm_OrivVCA.png" /></figure><p>There’s nothing inherently <em>bad</em> about this and the code is <em>technically</em> the same but it introduces an unintended diversion in the subway map which makes the workflow hard to follow. It also adds unnecessary commits. If there were 8 people working on this project and they all caused this it would get out of hand quickly.</p><h4>How does this happen?</h4><p>There are a couple of ways you could get yourself into an bad merge:<br> <br>1. Pulling before you rebase.<br>2. Pulling in a non-fast-forwardable way.<br>3. Merging on purpose but then immediately regretting it.</p><h4>How do I fix it?</h4><p>The good news is that if you haven’t pushed yet it’s an easy fix:</p><pre>git reset — hard HEAD~1</pre><p>Let’s break this down: git reset will move your HEAD, — hard will reset all files on your system as well as resetting the git HEAD pointer. HEAD~1 is a shorthand for “<em>wherever HEAD is minus one</em>.”</p><h4>Some Caveats</h4><ul><li>Make <strong><em>SURE</em></strong> you don’t have any uncommitted changes. If you do they will go away forever.</li><li>Make sure your HEAD is where you think it is.</li><li>Understand that your merge is going away without any traces. This is usually fine because a typical merge should contains no unique “work”.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3f3b8e1710f5" width="1" height="1" alt=""><hr><p><a href="https://medium.com/north-arrow-research/git-tips-getting-out-of-a-bad-merge-3f3b8e1710f5">Git Tips: Getting out of a bad merge</a> was originally published in <a href="https://medium.com/north-arrow-research">North Arrow Research</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Friday Fun: GIS and Minecraft]]></title>
            <link>https://medium.com/north-arrow-research/friday-fun-gis-and-minecraft-e6b81dcd421c?source=rss----4df4d7739a43---4</link>
            <guid isPermaLink="false">https://medium.com/p/e6b81dcd421c</guid>
            <category><![CDATA[gis]]></category>
            <category><![CDATA[education]]></category>
            <category><![CDATA[minecraft]]></category>
            <dc:creator><![CDATA[Matt Reimer]]></dc:creator>
            <pubDate>Thu, 22 Dec 2016 20:41:17 GMT</pubDate>
            <atom:updated>2016-12-22T20:42:39.830Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lKBhFS0-PDxXlAOsOydOFA.png" /></figure><p>Last week I was creating a new console function for our open-source <a href="https://github.com/NorthArrowResearch/rasterman">Raster Manager</a> tool. It&#39;s called rasterman fill and it&#39;s a C++ algorithm that basically floods a map from the outside-in with virtual water and stops when that virtual water starts making a mess on the virtual floor. It&#39;s heavily based on a brilliant <a href="https://github.com/crwr/OptimizedPitRemoval">Optimized Pit Removal</a> algorithm I found on Github, written by the <a href="https://github.com/crwr/OptimizedPitRemoval">Center for Research in Water Resources</a>.</p><p>The way it works is that the pixel on the outside of the concavity gets flooded and then the algorithm looks at its neighbours and tries to decide how to flood those and on and on etc. Semi-recursive queue algorithms at their finest!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/552/1*7BYxarkOEW1ui2ETMs3s8w.png" /></figure><h3>Wait a minute....</h3><p>Writing algorithms is a lot of fun but this time I had this nagging sense that I had seen this kind of fill behaviour somewhere before. But where???</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/678/1*azcLBtfiUkocc-eIrY90tQ.gif" /><figcaption>Digging a hole and filling it in.</figcaption></figure><h3>MineCrrrr....What?!?</h3><p>For those of you living under a rock or who don&#39;t know any young people <a href="https://minecraft.net/">Minecraft</a> is a computer game (although the word &quot;game&quot; may need some exploration here) where you can explore, mine, build and interact with an infinitely large, procedurally generated world which includes Biomes with different flora and fauna.</p><p>Think of it as an infinitely big box of virtual <a href="http://shop.lego.com/">Lego</a> blocks. It&#39;s all the rage thee days and a lot of people have done some <a href="https://www.youtube.com/results?search_query=amazing+minecraft">stupidly huge and creatively crazy things</a> with it.</p><h3>Of Mines and Methods</h3><p>The similarity between my algorithm and the one Minecraft uses is interesting but I&#39;m not sure how it can have any practical use. It did get me thinking what other parallels could there be between GIS and Minecraft? Is there anything useful we can take from it?</p><p>As I gazed out over my infinite world something dawned on me: <em>&quot;Hang on a tick! I know this! This is a Raster! This is what I </em><strong><em>DO</em></strong><em>!&quot;</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lKBhFS0-PDxXlAOsOydOFA.png" /><figcaption>A raster if I ever saw one</figcaption></figure><p>Sure enough, each cube of the Minecraft world represented a cell of a 3D raster. If we ignore overhangs and caverns it&#39;s easy enough to draw parallels between a Minecraft map and a 2.5D GeoTIFF file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*SL4JfvyhFvYAK-NBREZtNw.png" /><figcaption>2.5D is good enough for most cases. Not how you find diamond or lava though</figcaption></figure><h3>Enter <a href="http://www.worldpainter.net/">World Painter</a></h3><p>On the <a href="http://minecraft.gamepedia.com/Programs_and_editors/Mapping">Minecraft wiki there is a list of free and open source tools</a> and editors so I tried a few until I found one in particular that really worked for me.</p><p>One of the more interesting tools I found was called World Painter and it&#39;s exactly what it advertises: A blank canvas onto which you can paint your world using brushes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2l16F03pirqjrCLyw0dFcQ.gif" /><figcaption>Painting a landscape does make one feel a little god-like</figcaption></figure><h3>Putting Minecraft to work</h3><p>Let&#39;s say you have a GIS raster tool you want to test. You definitely want to use real-world data but it&#39;s often hard to find data extreme enough to test edge cases.</p><p>With <a href="http://www.worldpainter.net/">World Painter</a> I can paint a landscape exactly to my specifications, put some rivers over here, put some pools over there. Maybe a lake here; an island there. Then I can run my test suite against these extreme rasters</p><p>Here&#39;s one I made to test smoothing and noise cancellation algorithms:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/792/1*BhF1Vmk_DeKHrIzJ3cFjaQ.png" /><figcaption>“Lumpy Island 1” My torture test for GIS apps.</figcaption></figure><p><strong><em>I call it &quot;Lumpy Island 1&quot;</em></strong></p><p>I also created 3 maps in World Builder that would test the limits of my algorithm:</p><ol><li>A small raster with a pool.</li><li>A medium sized raster with a basic river in it</li><li>A huge map with loads of pitting, multiple outlets etc.</li></ol><p>Then, after this was done I ran the algorithm against a slew of real-world rasters and it performed flawlessly.</p><p>Just remember to watch out for creepers! They can really mess up your raster!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e6b81dcd421c" width="1" height="1" alt=""><hr><p><a href="https://medium.com/north-arrow-research/friday-fun-gis-and-minecraft-e6b81dcd421c">Friday Fun: GIS and Minecraft</a> was originally published in <a href="https://medium.com/north-arrow-research">North Arrow Research</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>