<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">

  <title><![CDATA[Reprojected]]></title>
  <link href="http://www.reprojected.com/atom.xml" rel="self"/>
  <link href="http://www.reprojected.com/"/>
  <updated>2013-06-20T10:39:55-07:00</updated>
  <id>http://www.reprojected.com/</id>
  <author>
    <name><![CDATA[Aaron Racicot]]></name>
    
  </author>
  <generator uri="http://octopress.org/">Octopress</generator>

  
  <entry>
    <title type="html"><![CDATA[CoastGIS 2013]]></title>
    <link href="http://www.reprojected.com/blog/2013/06/20/coastgis-2013/"/>
    <updated>2013-06-20T09:22:00-07:00</updated>
    <id>http://www.reprojected.com/blog/2013/06/20/coastgis-2013</id>
    <content type="html"><![CDATA[<p><img class="left" src="http://www.reprojected.com/images/coastgis2013.jpg" width="200" height="300" title="CoastGIS-2013" ></p>

<p>I had the good fortune of being invited to come give the opening keynote address for the <a href="http://coinatlantic.ca/index.php/home-coastgis">CoastGIS 2013</a> conference being held in Victoria BC this week.  I got the invite after <a href="https://twitter.com/deepseadawn">Dawn Wright</a> of OSU and ESRI fame had to cancel.  I actually was really looking forward to re-connecting with Dawn and hearing her talk&#8230; she is always inspiring.  It turned out that this was a great opportunity for me to work with <a href="http://response.restoration.noaa.gov/">my team at NOAA</a> to come up with a compelling rendition of our experience during the Deepwater Horizon oil spill.  It also allowed me to re-connect at the conference with many people I used to work with in the &#8220;Marine GIS&#8221; space during my years at <a href="http://www.ecotrust.org/">Ecotrust</a>.</p>

<p>The ferry ride up from Anacortes to Sidney BC was glorious&#8230; always a very relaxing a beautiful journey.  Straight down to Victoria to get settled for the night at the Marriot.  Was fortunate enough to hook up for dinner with my good buddy <a href="https://twitter.com/anthonylukach">Anthony Lukach</a> (from our local <a href="http://cugos.org/">CUGOS</a> group, who now lives in Victoria).  Off to the conference bright and early the next morning at the <a href="http://www.uvic.ca/">University of Victoria</a>.  A stroll through campus with my coffee and camera was a perfect way to kick of what was an excellent day.</p>

<p><img class="right" src="http://www.reprojected.com/images/coastgis2013_ferry.jpg" width="400" height="275" title="CoastGIS-2013-Ferry" ></p>

<p>The conference was opened with a song/prayer/story session from two elders from the local Coast and Straits Salish People.  It gave me goose bumps and I have to say I have been thinking about their message for the last 2 days.  The affects of modern society on indigenous people is a sad story without a clear solution&#8230; yet the positive energy from the speakers was inspiring.</p>

<p>I had the privilege to kick the conference off with the story of <a href="http://response.restoration.noaa.gov/maps-and-spatial-data/environmental-response-management-application-erma">ERMA</a>&#8230; which is really the story of how we are trying to drive the next generation of &#8220;Response Management&#8221; tools from within NOAA.  It is a story of small teams of people doing big things, of positive lessons learned from horrific events, and the story of Open Source and Open Data.  From the reactions I got in person and on twitter I think the message resonated with the audience and I am very glad I was able to share our story.</p>

<p><img class="left" src="http://www.reprojected.com/images/coastgis2013_tweet.png" width="400" height="275" title="CoastGIS-2013-Twitter" ></p>

<p>For this talk I used the really cool JS/CSS presentation framework <a href="https://github.com/hakimel/reveal.js">Reveal.js</a>.  I love the concept of <a href="http://daringfireball.net/projects/markdown/">Markdown</a> (as this blog is using <a href="http://octopress.org/">Octopress</a> and markdown, hosted on <a href="http://pages.github.com/">gitpages</a>) so I ended up stripping down the Reveal.js stuff to basically allow me to write my entire presentation in a single Markdown file, yet render as a Reveal.js presentation.  The starter for that is on my github account called <a href="https://github.com/aaronr/revealz">revealz</a> (I like adding z&#8217;s to everything&#8230; since my company is called Z-Pulley Inc!).  I think I will be using this as the starter for presentations moving forward.  Using Markdown under version control just has so many benefits.</p>

<p>The other great thing is that you can just post your slides to gitpages and be sharing&#8230; so in that light here are the slides from my CoastGIS 2013 keynote:</p>

<p><a href="http://aaronr.github.io/coastgis2013"><img src="http://www.reprojected.com/images/coastgis2013_front.png" width="600" height="300" title="CoastGIS-2013-Slides" ></a>
<a href="http://aaronr.github.io/coastgis2013">aaronr.github.io/coastgis2013</a></p>

<p>My approach to making Reveal.js presentations is that the right arrow will cycle you through the main slides, but if the down arrow is active, use it to reveal backup points or more detail on a topic.  Pretty simple&#8230;</p>

<p>I have also posted some <a href="https://www.flickr.com/photos/racicot/sets/72157634234402298/">pictures on Flickr</a> of the journey up to the conference.  We truly do live in one of the most spectacular parts of the world.</p>

<p>To the <a href="http://coinatlantic.ca/index.php/contact/conference-committee">conference committee</a> of CoastGIS 2013, thanks for the invite.  I had a great time and I hope my participation added something fun and interesting to your conference!</p>
]]></content>
  </entry>
  
  <entry>
    <title type="html"><![CDATA[FOSS4G-NA 2013 - A Home Run!]]></title>
    <link href="http://www.reprojected.com/blog/2013/05/28/foss4g-na-2013-was-a-home-run/"/>
    <updated>2013-05-28T13:02:00-07:00</updated>
    <id>http://www.reprojected.com/blog/2013/05/28/foss4g-na-2013-was-a-home-run</id>
    <content type="html"><![CDATA[<p><img class="left" src="http://www.reprojected.com/images/foss4g-na-2013.png" width="200" height="200" title="Foss4G-NA" ></p>

<p>Well, working in the oil spill field (with <a href="http://response.restoration.noaa.gov/maps-and-spatial-data/environmental-response-management-application-erma">NOAA</a>) the last couple of years has kept me very busy&#8230; I might even say too busy.  I used to attend many conferences and made a point to invest a large chunk of my time to the Open Source GIS community.  As I have been trying to come up for air this year and re-engage a bit more with my community of developers I decided to head to Minneapolis to <a href="http://foss4g-na.org/">FOSS4G-NA</a> this year&#8230; and man am I glad I did.  It was awesome!</p>

<p>First I must give a huge shout out to <a href="http://dbspatial.com/">David Bitner</a> and the whole <a href="http://wiki.osgeo.org/wiki/FOSS4G_NA_2013">organizing committee</a> who really did a great job planning and executing a top notch event.  Without all the countless volunteer hours something like this would not happen, and I can not say enough how essential this type of event is to our community.</p>

<p>It is fitting that this is the 10th anniversary of the first ever <a href="http://mum03.mapserver.org/">MapServer User Conference</a> (I missed that one, but made the second one) which started in Minneapolis and was a real kick-starter toward the formation of <a href="http://www.osgeo.org/">OSGeo</a>.</p>

<p>So&#8230; on to the conference this year.  For me the big highlight of these events is the social gathering and ability to just hang out with the people you are always talking to on IRC.  This year was no different (and probably even better than in years past).  It all started with a pre-conference meet-up the night before things kicked off (Tuesday night).  It was a great gathering of old friends (the old guard&#8230; of which I am a gray haired member now), and some great new friends (those JavaScript hacking kids I cant keep up with anymore).  It was just so fun to see all the talent descend upon Minneapolis and see everyone smiling.</p>

<p>Day 1 of the conference was long&#8230; and I mean LONG.  Arrived at the venue about 8am and did not leave until 8pm.  12 hours of geo-geekery at its best.  The opening talks where well received and the crowd was eager to hit the sessions&#8230; and we did.  There was something for everyone and having 5 concurrent sessions throughout the conference made it feel like a big event&#8230; while the committee was able to keep the overall conference feeling intimate.</p>

<p>Oh, I forgot to mention&#8230; even though I work almost exclusively for NOAA (and love it), I was attending foss4g-na on my own this year&#8230; just me having a good time with my people.  This allowed me to talk about things I am passionate about and really focus on the community aspect of what we do instead of sometimes dry &#8220;work&#8221; things.</p>

<p>My first talk was on <a href="http://projfinder.com/">projfinder.com</a> which is a <a href="http://cugos.org/">CUGOS</a> hack project.  If you have not heard of CUGOS&#8230; or you are not on our mailing list&#8230; get off the couch and go get involved.  We are a very passionate group of Geo Geeks in the greater Seattle area who love to hack&#8230; and I was there to tell the story of some of our projects.</p>

<p><a href="http://projfinder.com/"><img class="right" src="http://media.reprojected.com/presentations/Presentations/foss4g-na-2013/projfinder_splash.jpg" width="300" height="250" title="ProjFinder" ></a></p>

<p>Projfinder is a simple project that has provided great hack session opportunities for our local group&#8230; and is kind of a neat idea to boot.  Go check it out, but the gist is that you can give us an &#8220;X and Y&#8221; in an unknown projection as well as a &#8220;reference point&#8221;, and we will try to kick back the most likely projection to you.  Feel free to cycle through the <a href="http://media.reprojected.com/presentations/Presentations/foss4g-na-2013/projfinder.pdf">slides here</a> and try it out at <a href="http://projfinder.com/">projfinder.com</a>.  Like I told the audience at the time&#8230; the point is not that we created a simple and hopefully useful tool&#8230; it is that we did it with our local community of Open Source GIS hackers as a learning opportunity.  Go forth and replicate the process in your local community&#8230;</p>

<p>After getting that finished up in the late morning I was free to enjoy multiple sessions all afternoon.  The quality of talks was high and I was just getting more and more pumped as the day went on.</p>

<p>Into the evening things progressed with a vendor hour&#8230; beer and wine flowing.  At about 6pm we kicked into lightning talks&#8230; and that is where it got fun.  I was on deck for talk #3&#8230; <a href="http://mapfart.com/">mapfart.com</a>.  You heard right&#8230; mapfarts.  At this point I am pretty sure all of my paying clients where glad they did not sponsor my attendance to this conference, but I sure was having fun.  Armed with a <a href="http://www.amazon.com/The-Original-Fart-Machine-Remote/dp/B0006L1ILI">&#8220;Fart Machine&#8221;</a> I took the stage for my 5 minutes of shame&#8230; and delivered my <a href="http://media.reprojected.com/presentations/Presentations/foss4g-na-2013/mapfart.pdf">20 slide deck</a>.  I am not sure the fallout from this one&#8230; but it was pretty damn funny and I had a blast getting the crowd worked up&#8230; I think I will be known for mapfarts from this point forward.</p>

<p><a href="http://mapfart.com/"><img class="left" src="http://media.reprojected.com/presentations/Presentations/foss4g-na-2013/mapfart_splash.jpg" width="300" height="300" title="MapFart" ></a></p>

<p>After some great food and drinks out with the CUGOS crew&#8230; it was time to get some sleep in prep for day 2.</p>

<p>Day 2 was more of the same&#8230; great talks and great conversation.  We started off with a very inspirational talk by <a href="http://www.mapbox.com/about/team/#eric-gundersen">Eric Gundersen</a> who I cant speak highly enough about.  What he is driving over at <a href="http://www.mapbox.com/">mapbox</a> is truly inspirational&#8230; and I came out of the morning plenary all pumped up.  Day 2 saw more talks by CUGOS members with Nick Dimiduk of Hortonworks talking about <a href="https://github.com/ndimiduk/tilebrute">tilebrute</a> and scaling out Mapnik tile generation via Hadoop (yes&#8230; he is that smart)!  Second we had Jared Erickson and Michael Payne of <a href="http://www.co.pierce.wa.us/index.aspx?NID=2281">Pierce County IT/GIS</a> talking about Open Source projects within their county.  If you want to see a local small government doing it right&#8230; go check them out.  Jared is a regular CUGOSian as well and very involved in other cool projects like <a href="http://jericks.github.io/geometrycommands/index.html">geometrycommands</a> which where featured in the mapfart talk.  Sharp folks&#8230; with great messages to deliver.  Could not have been more proud of the great showing our local CUGOS group made at this event.</p>

<p>After this we where all off to the Gala Event down at the <a href="http://www.millcitymuseum.org/">Mill City Museum</a>.  We where treated to a great venue, great food, and just a <a href="https://twitter.com/reprojected/status/337721910714568707">wonderful evening</a>.  Late night drinks and then off to bed&#8230; I had a 7am flight out the next morning.</p>

<p>While not geo related, I got off the plane the next morning in Seattle to hop directly into a car to drive to Spokane to compete in the <a href="http://roundandround.com/">24 hours round the clock</a> mountain bike race.  We finished 6th out of 19 teams in the 4 person open division&#8230; and I must say it was hard as hell&#8230; but so so so fun.</p>

<p><img class="right" src="http://www.reprojected.com/images/foss4g2013.png" width="300" height="200" title="Foss4G" ></p>

<p>So&#8230; back at home for the first time in a week and I am already contemplating how to get to <a href="http://2013.foss4g.org/">foss4g 2013 international</a> later this year!  This community we have is like no other&#8230; I appreciate it more and more every day and I encourage all of you sitting out there&#8230; dive in and make some mapfarts&#8230; you wont regret it.</p>
]]></content>
  </entry>
  
  <entry>
    <title type="html"><![CDATA[GIS Apprenticeship Program]]></title>
    <link href="http://www.reprojected.com/blog/2012/09/28/gis-apprenticeship-program/"/>
    <updated>2012-09-28T11:51:00-07:00</updated>
    <id>http://www.reprojected.com/blog/2012/09/28/gis-apprenticeship-program</id>
    <content type="html"><![CDATA[<p><img class="left" src="http://www.reprojected.com/images/will_gis.jpg" width="200" height="400" title="Will Simms" ></p>

<p>This last spring (2012) I had the opportunity to host a local 7th grader for 3 months as an &#8220;apprentice&#8221;.  This was the first time for me as a small business owner to participate&#8230; but it turned out to be a great experience.</p>

<p>We had the opportunity to <a href="http://www.openstreetmap.org/?lat=48.03622&amp;lon=-122.40634&amp;zoom=16&amp;layers=M">edit OSM data</a> in our local community, get out and do some GPS data collection, and <a href="http://www.serviceeducationadventure.org/">share our experience with other apprenticeship programs</a> in the region.</p>

<p>Will Simms (my apprentice and all around great kid) did some great work and as part of the program generated a presentation in OpenOffice (on an Ubuntu laptop) which you can check out here:</p>

<p><a href="http://www.reprojected.com/presentations/gis_apprentice_2012/GISApprenticeship_final.pdf">Final presentation</a> <a href="http://www.reprojected.com/presentations/gis_apprentice_2012/GISApprenticeship_final.pdf"><img class="right" src="http://www.reprojected.com/images/will_first_page.png" title="Presentation" ></a></p>

<p>Looking forward to participating in the program again this spring&#8230; and encourage all you GIS folks out there to find a way to participate in education through your local school system&#8230; there are always lots of opportunities!!</p>
]]></content>
  </entry>
  
  <entry>
    <title type="html"><![CDATA[Where did all my space go]]></title>
    <link href="http://www.reprojected.com/blog/2012/09/27/where-did-all-my-space-go/"/>
    <updated>2012-09-27T15:01:00-07:00</updated>
    <id>http://www.reprojected.com/blog/2012/09/27/where-did-all-my-space-go</id>
    <content type="html"><![CDATA[<p>So I am sitting here on my trusty Ubuntu workstation in the office and realised I am running out of space.  Well, here is an easy command to find out where your top offending directories are:</p>

<pre><code>du -h --max-depth=1 | sort -rh | head
</code></pre>

<p>Here it is in action:</p>

<pre><code>aaronr@aaron-zlinux-office1:~$ du -h --max-depth=1 | sort -rh | head
146G                           .
52G                            ./.VirtualBox
34G                            ./downloads
18G                            ./work
12G                            ./Dropbox
8.9G                           ./VirtualBox VMs
7.5G                           ./.local
4.0G                           ./purgatory
1.5G                           ./tmp
1.4G                           ./vm_shared
aaronr@aaron-zlinux-office1:~$ 
</code></pre>

<p><code>du</code> to look from your current location down (recurse), <code>-h</code> for human readable, <code>--max-depth=1</code> so you just get top level dir summaries&#8230; piped into <code>sort</code> in reverse order with <code>-r</code> and top that off with <code>-h</code> to make sure it sorts on human readable sizes&#8230; finally pipe that into head to look at the first 10 with an optional <code>-n 20</code> to look at more.</p>
]]></content>
  </entry>
  
  <entry>
    <title type="html"><![CDATA[simple psql formating tips]]></title>
    <link href="http://www.reprojected.com/blog/2012/09/27/some-simple-psql-formating-tips/"/>
    <updated>2012-09-27T13:17:00-07:00</updated>
    <id>http://www.reprojected.com/blog/2012/09/27/some-simple-psql-formating-tips</id>
    <content type="html"><![CDATA[<p>So you are neck deep in <code>psql</code> and are doing some queries&#8230; but the output looks like crap and the pager keeps getting in your way.</p>

<p><img class="center" src="http://www.reprojected.com/images/simple_query_result.png" title="Horible Output" ></p>

<p>First&#8230; turn off the pager</p>

<pre><code>\pset pager
</code></pre>

<p>Next, turn on expanded display</p>

<pre><code>\x
</code></pre>

<p>Now&#8230; things look a bit better.  You dont loose your initial page by going into the pager, and your output is readable.  This is especially true for very wide columns as is always happens with GIS data in postgis.</p>

<p><img class="center" src="http://www.reprojected.com/images/simple_query_better.png" title="Better Output" ></p>
]]></content>
  </entry>
  
  <entry>
    <title type="html"><![CDATA[Lets quickly batch reproject some files...]]></title>
    <link href="http://www.reprojected.com/blog/2012/09/13/lets-quickly-batch-reproject-some-files-dot-dot-dot/"/>
    <updated>2012-09-13T12:02:00-07:00</updated>
    <id>http://www.reprojected.com/blog/2012/09/13/lets-quickly-batch-reproject-some-files-dot-dot-dot</id>
    <content type="html"><![CDATA[<p>Lets say we have a directory full of .jpg files that are geo-referenced (could be any extension like .tif as well):</p>

<pre><code>for f in *.jpg; do gdalwarp -t_srs EPSG:900913 $f ${f/.jpg}_900913.jpg; done
</code></pre>

<p>Boom&#8230; that simple.  Love GDAL.</p>
]]></content>
  </entry>
  
  <entry>
    <title type="html"><![CDATA[Extracting extent from gdalinfo on the command line]]></title>
    <link href="http://www.reprojected.com/blog/2012/09/12/extracting-extent-from-gdalinfo-on-the-command-line/"/>
    <updated>2012-09-12T13:00:00-07:00</updated>
    <id>http://www.reprojected.com/blog/2012/09/12/extracting-extent-from-gdalinfo-on-the-command-line</id>
    <content type="html"><![CDATA[<p>Had a question on #gdal IRC yesterday on how to get the extent from <code>gdalinfo</code>.</p>

<p>Well&#8230; here is some command line hackity hack to get it in a format that can be passed into things like <code>gdal_translate</code> with the <code>-projwin</code> flag:</p>

<pre><code>gdalinfo my.tif | awk '/(Upper Left)|(Lower Right)/' | awk '{gsub(/,|\)|\(/," ");print $3 " " $4}' | sed ':a;N;$!ba;s/\n/ /g'
</code></pre>

<p>From this you get some simple output of the UL and LR corners of the image:</p>

<pre><code>418081.036 3613108.883 1589231.036 2678608.883
</code></pre>

<p>Hope that helps someone else out&#8230;</p>
]]></content>
  </entry>
  
  <entry>
    <title type="html"><![CDATA[MirrorMap]]></title>
    <link href="http://www.reprojected.com/blog/2009/02/17/mirrormap/"/>
    <updated>2009-02-17T22:39:35-08:00</updated>
    <id>http://www.reprojected.com/blog/2009/02/17/mirrormap</id>
    <content type="html"><![CDATA[<p>Another QGIS plugin idea I have had is to create a method of splitting the map canvas within QGIS to have two side-by-side maps that can track and interact with each other. There are lots of possibilities for this type of &#8220;reconfiguring&#8221; of the QGIS interface on the fly via plugins, so I decided to dive in and give it a go.</p>

<p><a href="http://media.reprojected.com/presentations/Videos/mirrormap/alpha/mirrormap_final.html">Here is a link to a video</a> showing some of the basic operation of the MirrorMap plugin.</p>

<p>*** This plugin is very &#8220;Alpha&#8221; in that it makes the size of the map canvas static after invoking the plugin (until you launch QGIS again), does not handle layers of differing projections, does not allow for re-ordering layers in the mirror canvas, and many other deficiencies I am sure. But hey, its just a test!</p>

<p><img src="http://media.reprojected.com/geoblog/wp-content/uploads/2009/02/mirrormap-300x248.png" alt="MirrorMap in action" /></p>

<p><a href="http://media.reprojected.com/presentations/Videos/mirrormap/alpha/mirrormap_final.html">Presentation</a></p>
]]></content>
  </entry>
  
  <entry>
    <title type="html"><![CDATA[Tidal Power DSS]]></title>
    <link href="http://www.reprojected.com/blog/2009/02/10/tidal-power-dss/"/>
    <updated>2009-02-10T23:03:26-08:00</updated>
    <id>http://www.reprojected.com/blog/2009/02/10/tidal-power-dss</id>
    <content type="html"><![CDATA[<p>One of the things I have been working on this last couple of months was a prototype of a Decision Support System (DSS) for web based interaction with <a href="http://en.wikipedia.org/wiki/Tidal_power">In-Stream Tidal Power</a> data and models. Renewable energy is a big interest of mine and I was lucky enough to be involved in a local effort to look at In-Stream Tidal Power potential for Washington State.</p>

<p><a href="http://media.reprojected.com/presentations/Videos/tisec/phase1/tisec_final.html">Here is a link to a video</a> showing some of the basic operation of the tool. We worked to integrate some post-processing analysis of 2-D circulation modeling to create both visual (maps) and tabular (graphs) on the fly via the web interface. The work is based on <a href="http://www.djangoproject.com/">Django</a>, <a href="http://extjs.com/">ExtJS</a>, <a href="http://www.openlayers.org/">OpenLayers</a>, <a href="http://mapserver.org/">Mapserver</a> and a few other Open Source GIS projects from <a href="http://www.osgeo.org/">OSGeo</a>. Hopefully round 2 funding will happen to continue allow us to continue on with this fun project.</p>

<p><a href="http://media.reprojected.com/presentations/Videos/tisec/phase1/tisec_final.html"><img src="http://media.reprojected.com/geoblog/wp-content/uploads/2009/02/120308_wi_params-300x218.jpg" alt="120308_wi_params" /></a></p>
]]></content>
  </entry>
  
  <entry>
    <title type="html"><![CDATA[RefMap - WebKit in PyQt]]></title>
    <link href="http://www.reprojected.com/blog/2009/02/09/refmap-webkit-in-pyqt/"/>
    <updated>2009-02-09T10:25:39-08:00</updated>
    <id>http://www.reprojected.com/blog/2009/02/09/refmap-webkit-in-pyqt</id>
    <content type="html"><![CDATA[<p>So one of the ideas I have been pondering is how WebKit integration into QT (and PyQt) could be leveraged inside of my favorite open source desktop GIS, QGIS. I decided to make a very alpha plugin to show some of the cool possibilities, but I am still looking for a final direction to take the plugin. As always my plugins for QGIS <a href="http://qgisplugins.z-pulley.com/">can be found here</a>.</p>

<p>The general idea is to integrate many of the web based mapping API&#8217;s that exist into QGIS via a WebKit interface and try to link the QGIS map canvas to actions in those web pages.</p>

<p><a href="http://media.reprojected.com/presentations/Videos/refmap/alpha/refmap_final.html">Here is a quick video</a> of the initial version of RefMap in action. There are still kinks to be worked out and more providers to add, but it is a good attempt at linking in bi-directional communication between a web page in WebKit and python in PyQt.</p>

<p><img src="http://media.reprojected.com/geoblog/wp-content/uploads/2009/02/refmap-226x300.png" alt="RefMap Plugin at work" /></p>

<p><a href="http://media.reprojected.com/presentations/Videos/refmap/alpha/refmap_final.html">Presentation</a></p>
]]></content>
  </entry>
  
  <entry>
    <title type="html"><![CDATA[Debugging QGIS Plugins...]]></title>
    <link href="http://www.reprojected.com/blog/2009/02/06/debugging-qgis-plugins/"/>
    <updated>2009-02-06T14:08:12-08:00</updated>
    <id>http://www.reprojected.com/blog/2009/02/06/debugging-qgis-plugins</id>
    <content type="html"><![CDATA[<p>Well, the title might better read &#8220;debugging <a href="http://www.riverbankcomputing.co.uk/software/pyqt/intro">PyQt</a> applications&#8230;&#8221;, but much of my PyQt foo happens when developing <a href="http://qgisplugins.z-pulley.com/">QGIS plugins</a>. In general I am old school&#8230; <a href="http://www.gnu.org/software/emacs/">emacs</a> and <a href="http://www.gnu.org/software/gdb/">gdb</a> are my friends. When it comes to developing in PyQt there is one life saving code snip that will make your life much easier:</p>

<pre><code>from PyQt4 import QtCore
import pdb
...
QtCore.pyqtRemoveInputHook()
pdb.set_trace()
</code></pre>

<p>This not only sets a trace (breakpoint) in your code, but it stops the PyQt event loop. The call to <a href="http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/pyqt4ref.html#using-pyqt-from-the-python-shell">pyqtRemoveInputHook()</a> is a tasty little tidbit in PyQt to allow for this &#8220;stop it in it&#8217;s tracks&#8221; behavior.  This is a must have for debugging PyQGIS or Python based plugins.</p>

<p>Once you are in <a href="http://docs.python.org/library/pdb.html">pdb</a>, you are set to go with interactive debugging:</p>

<pre><code>--Return--
&gt; /home/aaronr/.qgis/python/plugins/refmap/refmap.py(101)__init__()-&gt;None
-&gt; pdb.set_trace()
(Pdb) bt
&lt;string&gt;(1)&lt;module&gt;()
/home/aaronr/.qgis/python/plugins/refmap/refmap.py(144)initGui()
-&gt; self.refmap_gui = ReferenceMapWindow(self.iface,flags,self)
&gt; /home/aaronr/.qgis/python/plugins/refmap/refmap.py(101)__init__()-&gt;None
-&gt; pdb.set_trace()
(Pdb) print self
&lt;refmap.refmap.ReferenceMapWindow object at 0x8cc6c2c&gt;
(Pdb) print self.iface.mainWindow().windowTitle()
Quantum GIS - 1.1.0-Unstable-trunk
(Pdb)
</code></pre>

<p>Happy debugging!!!</p>
]]></content>
  </entry>
  
  <entry>
    <title type="html"><![CDATA[Back in the saddle...]]></title>
    <link href="http://www.reprojected.com/blog/2009/02/05/back-in-the-saddle/"/>
    <updated>2009-02-05T12:28:13-08:00</updated>
    <id>http://www.reprojected.com/blog/2009/02/05/back-in-the-saddle</id>
    <content type="html"><![CDATA[<p><img src="http://farm4.static.flickr.com/3117/3245828253_31750976af_m.jpg" alt="Spring pruning begins" /></p>

<p>Well, its been a while since I have had a chance to even think about blogging. I am currently in-between projects and it has been a great time to catchup on getting my development environment up-to-date, test out some new ideas, and of course prune the orchard! Spring is here and with over 70 trees to get in shape much of the next couple of months will be on a ladder. Another development in the works is trying to start 2 bee hives in the orchard this year.</p>

<p>I have been starting to dive back into QGIS and plugin development. There are some really cool things on the horizon and I will be posting about some of the things I am looking at over the next couple of weeks. Of particular interest to me is the new WebKit integration to QT that happened at QT version 4.4+.</p>

<p>More to come soon&#8230;</p>
]]></content>
  </entry>
  
  <entry>
    <title type="html"><![CDATA[Moving on...]]></title>
    <link href="http://www.reprojected.com/blog/2008/07/22/moving-on/"/>
    <updated>2008-07-22T13:52:09-07:00</updated>
    <id>http://www.reprojected.com/blog/2008/07/22/moving-on</id>
    <content type="html"><![CDATA[<p><img src="http://media.reprojected.com/images/general/moving_on.jpg" alt="Moving on..." /> Well, as of July 8th I have made the transition out of Ecotrust and now am working on a contract basis full time. I am very excited about the move and look forward to continuing on with some of my ongoing contract work as well as starting to hit the pavement and drum up some new work. More to come as I get my feet on the ground and back up and running!</p>
]]></content>
  </entry>
  
  <entry>
    <title type="html"><![CDATA[LinuxFestNW 2008 - Another great event!]]></title>
    <link href="http://www.reprojected.com/blog/2008/04/28/linuxfestnw-2008-another-great-event/"/>
    <updated>2008-04-28T12:22:27-07:00</updated>
    <id>http://www.reprojected.com/blog/2008/04/28/linuxfestnw-2008-another-great-event</id>
    <content type="html"><![CDATA[<p><img src="http://media.reprojected.com/presentations/Presentations/linuxfestnw2008/totem350a.png" alt="LinuxFestNW" /></p>

<p>I had the privilege of giving a talk at <a href="http://www.linuxfestnorthwest.org/">LinuxFest Northwest</a> this year&#8230; and what a cool event this is.  We had a great room full of people interested in Geospatial technology, some great questions and I think some genuine interest from participants that could lead to some folks going home and hacking away with some mapping.  Great job to the organizers of the event and looking forward to helping make LinuxFestNW 2009 an even bigger and better event!</p>

<p>Here are the links to my talk:</p>

<p><a href="http://media.reprojected.com/presentations/Presentations/linuxfestnw2008/racicot_linuxfest042708.pdf">PDF 4.5M</a>
<a href="http://media.reprojected.com/presentations/Presentations/linuxfestnw2008/racicot_linuxfest042708.odp">ODP 8M</a>
<a href="http://media.reprojected.com/presentations/Presentations/linuxfestnw2008/racicot_linuxfest042708.ppt">PPT 8M</a></p>

<p>(UPDATE 042808): They have now posted a link to the video of my talk:</p>

<p><a href="http://www.ustream.tv/recorded/377931">http://www.ustream.tv/recorded/377931</a></p>

<p><a href="http://www.cugos.org">CUGOS</a> - For those local to the Pacific Northwest, come visit us and make some local Geospatial friends!!</p>
]]></content>
  </entry>
  
  <entry>
    <title type="html"><![CDATA[New python qgis plugin... raster file path info...]]></title>
    <link href="http://www.reprojected.com/blog/2008/01/14/new-python-qgis-plugin-raster-file-path-info/"/>
    <updated>2008-01-14T12:23:46-08:00</updated>
    <id>http://www.reprojected.com/blog/2008/01/14/new-python-qgis-plugin-raster-file-path-info</id>
    <content type="html"><![CDATA[<p><a href="http://blog.qgis.org/?q=node/104">http://blog.qgis.org/?q=node/104</a></p>

<p>As I noted over on the QGIS blog I have started to organize my python plugins and will be adding more soon.</p>
]]></content>
  </entry>
  
  <entry>
    <title type="html"><![CDATA[Updated install notes for Mapserver 5.0 with AGG on FC8]]></title>
    <link href="http://www.reprojected.com/blog/2008/01/14/updated-install-notes-for-mapserver-50-with-agg-on-fc8/"/>
    <updated>2008-01-14T11:19:45-08:00</updated>
    <id>http://www.reprojected.com/blog/2008/01/14/updated-install-notes-for-mapserver-50-with-agg-on-fc8</id>
    <content type="html"><![CDATA[<p>Had the need to install Mapserver/PostGIS/GDAL etc on a FC8 box. While 99% of what I do now is on Ubuntu (<a href="http://www.reprojected.com/how-tos/video/">here are some notes and vids on installing there</a>)&#8230; I occasionally need to play on a Fedora box. So, <a href="http://www.reprojected.com/how-tos/fc8-oh-why-am-i-installing-on-fedora/">here are some recent install notes</a> from a bare bones FC8 box to get it all going from source&#8230;</p>
]]></content>
  </entry>
  
  <entry>
    <title type="html"><![CDATA[QGIS on the eee...]]></title>
    <link href="http://www.reprojected.com/blog/2008/01/06/qgis-on-the-eee/"/>
    <updated>2008-01-06T00:46:26-08:00</updated>
    <id>http://www.reprojected.com/blog/2008/01/06/qgis-on-the-eee</id>
    <content type="html"><![CDATA[<p>Well, I got Ubuntu 7.10 installed on an 8 gig SDHC card and away I go&#8230;</p>

<p>4.5 gigs used for the base Ubuntu system as well as the base GIS software:</p>

<p>1) Proj4 (4.6.0)
2) GDAL/OGR (1.5.0)
3) GEOS (3.0.0)
4) Postgresql (8.2.5)
5) PostGIS (1.3.2)
6) QT dev environment (4.3.2)
7) QGIS svn (0.9.2)</p>

<p>What do you get?  Well, an ultra portable GIS workstation weighing in at less than 2 lbs that is very fun!</p>

<p><a href="http://media.reprojected.com/presentations/Videos/eee_qgis_install/eee_qgis_install.html">Check out a video:</a></p>

<p><a href="http://media.reprojected.com/presentations/Videos/eee_qgis_install/eee_qgis_install.html">http://media.reprojected.com/presentations/Videos/eee_qgis_install/eee_qgis_install.html</a></p>
]]></content>
  </entry>
  
  <entry>
    <title type="html"><![CDATA[The new eee....]]></title>
    <link href="http://www.reprojected.com/blog/2007/12/19/the-new-eee/"/>
    <updated>2007-12-19T23:28:33-08:00</updated>
    <id>http://www.reprojected.com/blog/2007/12/19/the-new-eee</id>
    <content type="html"><![CDATA[<p>Oh Yeh, this post is being written from my new asus eee pc&#8230; 7 inches of cool gadget.  I dont think I have ever used a machine this small&#8230; so cool.</p>

<p>$399 for the pc, $19 for 1 gig RAM upgrade, $21 for a 4 gig SDHC card and there you have a pretty fun machine.</p>

<p>Here are some pics&#8230;</p>

<p><img src="http://media.reprojected.com/images/eee/DSC04726.JPG" alt="RAM install" />New RAM going in&#8230;</p>

<p><img src="http://media.reprojected.com/images/eee/DSC04733.JPG" alt="QGIS" /></p>

<p>QGIS running from a remote server!</p>

<p><img src="http://media.reprojected.com/images/eee/DSC04735.JPG" alt="Size" /> Size compare with an IPOD&#8230;</p>

<p>Well, as I start to install more stuff I will post more info. So far I am very happy and excited to be playing with the eee</p>
]]></content>
  </entry>
  
  <entry>
    <title type="html"><![CDATA[Getting QGIS to install on windows AND support Python apps...]]></title>
    <link href="http://www.reprojected.com/blog/2007/10/11/getting-qgis-to-install-on-windows-and-support-python-apps/"/>
    <updated>2007-10-11T09:55:56-07:00</updated>
    <id>http://www.reprojected.com/blog/2007/10/11/getting-qgis-to-install-on-windows-and-support-python-apps</id>
    <content type="html"><![CDATA[<p>So here are the simple (kind of) steps as of today to get a windows install of QGIS working that supports PyQt and the python bindings to QGIS&#8230; all with out having to compile anything:</p>

<p>1) Make sure you have Python 2.5 or newer installed on your machine&#8230; if you don&#8217;t have it you can download it from <a href="http://www.python.org/ftp/python/2.5.1/python-2.5.1.msi">HERE</a> (official) or <a href="http://media.reprojected.com/qgis_dev/dev_files/qt4.3.1_based/Python/python-2.5.1.msi">HERE</a> (my archive).</p>

<p>2) Install PyQt4.3.1 from <a href="http://www.riverbankcomputing.com/Downloads/PyQt4/GPL/PyQt-Py2.5-gpl-4.3.1-1.exe">HERE</a> (official) or <a href="http://media.reprojected.com/qgis_dev/dev_files/qt4.3.1_based/PyQt/PyQt-Py2.5-gpl-4.3.1-1.exe">HERE</a> (my archive)</p>

<p>3) Download and unpack <a href="http://media.reprojected.com/qgis_dev/dev_files/qt4.3.1_based/PyQt/PyQt4.zip">THIS</a> zip file.  Copy the PyQt4 directory unpacked from the zip into your Python 2.5 site-packages directory.  Make sure to save the old PyQt4 directory in the site-packages by renaming it in case something goes wrong!</p>

<p>4) Download and install QGIS from <a href="http://media.reprojected.com/qgis_dev/dev_files/qt4.3.1_based/QGIS/qgis_setup0.9.0.11_10_2007.exe">HERE</a> (my archive).  This is the latest release candidate from what_nick that is based on the Qt4.3.1 series.</p>

<p>5) In the QGIS install there are some GRASS documentation files that are missing and can cause warning dialogs to pop up when using the GRASS toolbox.  You can unzip the contents of <a href="http://media.reprojected.com/qgis_dev/dev_files/qt4.3.1_based/QGIS/qgis0.9_grass_docs.zip">THIS</a> archive into the QGISDIR\grass\docs\html directory to stop the warnings.</p>

<p>You can still follow the instructions <a href="http://wiki.qgis.org/qgiswiki/BuildingFromSource">HERE</a> to build QGIS yourself and play to your hearts content, but I know that there are many windows users out there that really would just like to get moving without the hassle of compiling.  This post is for you.</p>
]]></content>
  </entry>
  
  <entry>
    <title type="html"><![CDATA[FOSS4G 2007... Back home]]></title>
    <link href="http://www.reprojected.com/blog/2007/10/02/foss4g-2007-back-home/"/>
    <updated>2007-10-02T15:33:33-07:00</updated>
    <id>http://www.reprojected.com/blog/2007/10/02/foss4g-2007-back-home</id>
    <content type="html"><![CDATA[<p><img src="http://www.foss4g2007.org/images/header_logo.gif" alt="" /></p>

<p>Well, it was a great week in Victoria BC for this years <a href="http://www.foss4g2007.org/">FOSS4G</a> conference!  Besides the great chance to hang out with the OS GIS community, it was a great chance to take a look at what is hot in our field.  Keep checking back to the FOSS4G web site as many of the presentations as well as video from the plenaries are being uploaded.</p>

<p><a href="http://www.foss4g2007.org/presentations/view.php?abstract_id=210">My talk on the use of PyQGIS</a> (Python bindings to QGIS) for development of some stand alone desktop tools went well.  My powerpoints are <a href="http://media.reprojected.com/presentations/Presentations/FOSS4G_2007/racicot_foss4g07_0926.ppt">here (6 meg)</a>.  I even have a <a href="http://media.reprojected.com/presentations/Presentations/FOSS4G_2007/racicot_talk_2.jpg">couple</a> of <a href="http://media.reprojected.com/presentations/Presentations/FOSS4G_2007/racicot_talk_3.jpg">snapshots</a> of <a href="http://media.reprojected.com/presentations/Presentations/FOSS4G_2007/racicot_talk_5.jpg">giving the talk</a> (thanks to Gary Sherman).</p>

<p>Gary Sherman gave a great <a href="http://www.foss4g2007.org/workshops/W-02/">workshop on Monday</a>.  He has <a href="http://blog.qgis.org/?q=node/86">posted the slides</a> and <a href="http://blog.qgis.org/?q=node/85">ISO image of the live CD</a> on the QGIS blog.  Here are a <a href="http://media.reprojected.com/presentations/Presentations/FOSS4G_2007/workshop_gary_1.jpg">couple images</a> that show <a href="http://media.reprojected.com/presentations/Presentations/FOSS4G_2007/workshop_gary_2.jpg">Gary</a> laying it out and some of the <a href="http://media.reprojected.com/presentations/Presentations/FOSS4G_2007/workshop_student_1.jpg">students</a> <a href="http://media.reprojected.com/presentations/Presentations/FOSS4G_2007/workshop_student_2.jpg">soaking it in</a>.  I also had a voice recorder and have made streaming mp3&#8217;s of the session available at the following links:</p>

<p>Clip #1 (<a href="http://media.reprojected.com/presentations/Presentations/FOSS4G_2007/foss4g_qgis_workshop_1.m3u">streaming</a>  or  <a href="http://media.reprojected.com/presentations/Presentations/FOSS4G_2007/foss4g_qgis_workshop_1.mp3">mp3</a>)</p>

<p>Clip #2 (<a href="http://media.reprojected.com/presentations/Presentations/FOSS4G_2007/foss4g_qgis_workshop_2.m3u">streaming</a>  or  <a href="http://media.reprojected.com/presentations/Presentations/FOSS4G_2007/foss4g_qgis_workshop_2.mp3">mp3</a>)</p>

<p>Clip #3 (<a href="http://media.reprojected.com/presentations/Presentations/FOSS4G_2007/foss4g_qgis_workshop_3.m3u">streaming</a>  or  <a href="http://media.reprojected.com/presentations/Presentations/FOSS4G_2007/foss4g_qgis_workshop_3.mp3">mp3</a>)</p>

<p>Clip #4 (<a href="http://media.reprojected.com/presentations/Presentations/FOSS4G_2007/foss4g_qgis_workshop_4.m3u">streaming</a>  or  <a href="http://media.reprojected.com/presentations/Presentations/FOSS4G_2007/foss4g_qgis_workshop_4.mp3">mp3</a>)</p>

<p>Clip #5 (<a href="http://media.reprojected.com/presentations/Presentations/FOSS4G_2007/foss4g_qgis_workshop_5.m3u">streaming</a>  or  <a href="http://media.reprojected.com/presentations/Presentations/FOSS4G_2007/foss4g_qgis_workshop_5.mp3">mp3</a>)</p>

<p>Clip #6 (<a href="http://media.reprojected.com/presentations/Presentations/FOSS4G_2007/foss4g_qgis_workshop_6.m3u">streaming</a>  or  <a href="http://media.reprojected.com/presentations/Presentations/FOSS4G_2007/foss4g_qgis_workshop_6.mp3">mp3</a>)</p>

<p>We also had a great <a href="http://wiki.osgeo.org/index.php/FOSS4G2007_BOF_Sessions">QGIS BOF</a> session which was well attended by a <a href="http://media.reprojected.com/presentations/Presentations/FOSS4G_2007/bof_2.jpg">diverse group</a> of <a href="http://media.reprojected.com/presentations/Presentations/FOSS4G_2007/bof_3.jpg">developers</a>, <a href="http://media.reprojected.com/presentations/Presentations/FOSS4G_2007/bof_1.jpg">users</a>, and interested newbies.  All in all I think QGIS had a great showing at FOSS4G and am looking forward to pushing many of the ideas talked about there forward.</p>
]]></content>
  </entry>
  
</feed>
