tag:blogger.com,1999:blog-7944244193491078105.post2881160370894301359..comments2023-11-01T05:12:21.723-04:00Comments on UXBlog | IDV Solutions' User Experience: A Hack for Scaling Your Hex Mapjohn.nelsonhttp://www.blogger.com/profile/05293746895235613547noreply@blogger.comBlogger1125tag:blogger.com,1999:blog-7944244193491078105.post-20731043781277138722013-12-27T13:45:33.836-05:002013-12-27T13:45:33.836-05:00Hi All,
I got this great email from Stuart Anderso...Hi All,<br />I got this great email from Stuart Anderson at the Nerdery. He describes a method using inverse buffers to get multi-variate (color AND size) hex binning entirely in QGIS. Here is his email in its entirety:<br />__________________________________________<br /><br />I found a way to get multi-variate hex-binning entirely in QGIS. The trick was using a combination of Negative Buffers and then Clipping the results.<br /><br />tl;dr here's the image set I made on imgur:<br />http://imgur.com/3wtyh8D,3dQbf1a,rEJuu5b,NkE0mCX,BUH04sx,TjCjCiP,4bToTBR,6yi7ext,i1gFWqj,mOIIH2X,B0n74KQ,c8A8ENJ,8oBj8xG#0<br /><br />For the sake of example, let's start with making a bunch of hexagons in mmqgis like you did:<br />http://i.imgur.com/3dQbf1a.png<br />http://i.imgur.com/rEJuu5b.png<br /><br />Great, now we have a bunch of hexagons. For the sake of example, I needed to create some fake data for each of the polygons. I decided to make two new columns: 1 is full of arbitrary data, and the other is a percentage (also fake). You can see how I calculated it here:<br />http://i.imgur.com/BUH04sx.png<br />http://i.imgur.com/TjCjCiP.png<br /><br />Good. Now we can move along with our example. We want to track both columns as size and color because we want to be cool. We're going to use a qgis plugin called "Buffer By Percentage" (oh and I'm using QGIS 2.0 for this). Run this plugin and save the shape.<br />http://i.imgur.com/4bToTBR.png<br />http://i.imgur.com/6yi7ext.png<br /><br />But OH NOES! Our new hex bin has no data! Where is all our fake data? What-ever shall we do?<br />http://i.imgur.com/i1gFWqj.png<br /><br /><br />Use [ITEM] Vector/Geoprocessing Tools/Clip! The data-layer is your input.<br />http://i.imgur.com/mOIIH2X.png<br /><br />Great! Now you have a new layer that is the size you want and STILL has all your datas!<br />http://i.imgur.com/B0n74KQ.png<br /><br />Now style away!<br />http://i.imgur.com/c8A8ENJ.png<br />http://i.imgur.com/8oBj8xG.png<br /><br /><br />Again, whole image set here:<br />http://imgur.com/3wtyh8D,3dQbf1a,rEJuu5b,NkE0mCX,BUH04sx,TjCjCiP,4bToTBR,6yi7ext,i1gFWqj,mOIIH2X,B0n74KQ,c8A8ENJ,8oBj8xG#0<br /><br />Hope this helps all ya'll out!<br />Stuart Anderson<br />Software Engineer and a Co-President <br />The Nerderyjohn.nelsonhttps://www.blogger.com/profile/05293746895235613547noreply@blogger.com