<!DOCTYPE html><html><head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Verdana;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Markeringsbobletekst Tegn";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
        {mso-style-priority:34;
        margin-top:0cm;
        margin-right:0cm;
        margin-bottom:0cm;
        margin-left:36.0pt;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
span.MarkeringsbobletekstTegn
        {mso-style-name:"Markeringsbobletekst Tegn";
        mso-style-priority:99;
        mso-style-link:Markeringsbobletekst;
        font-family:"Tahoma","sans-serif";}
span.EmailStyle20
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.EmailStyle21
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:3.0cm 2.0cm 3.0cm 2.0cm;}
div.WordSection1
        {page:WordSection1;}
/* List Definitions */
@list l0
        {mso-list-id:790827441;
        mso-list-type:hybrid;
        mso-list-template-ids:-1969337998 -1660755130 134807555 134807557 134807553 134807555 134807557 134807553 134807555 134807557;}
@list l0:level1
        {mso-level-start-at:0;
        mso-level-number-format:bullet;
        mso-level-text:-;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        font-family:"Calibri","sans-serif";
        mso-fareast-font-family:Calibri;
        mso-bidi-font-family:"Times New Roman";}
@list l0:level2
        {mso-level-number-format:bullet;
        mso-level-text:o;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        font-family:"Courier New";}
@list l0:level3
        {mso-level-number-format:bullet;
        mso-level-text:\F0A7;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        font-family:Wingdings;}
@list l0:level4
        {mso-level-number-format:bullet;
        mso-level-text:\F0B7;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        font-family:Symbol;}
@list l0:level5
        {mso-level-number-format:bullet;
        mso-level-text:o;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        font-family:"Courier New";}
@list l0:level6
        {mso-level-number-format:bullet;
        mso-level-text:\F0A7;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        font-family:Wingdings;}
@list l0:level7
        {mso-level-number-format:bullet;
        mso-level-text:\F0B7;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        font-family:Symbol;}
@list l0:level8
        {mso-level-number-format:bullet;
        mso-level-text:o;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        font-family:"Courier New";}
@list l0:level9
        {mso-level-number-format:bullet;
        mso-level-text:\F0A7;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        font-family:Wingdings;}
ol
        {margin-bottom:0cm;}
ul
        {margin-bottom:0cm;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->

<style type="text/css">body { font-family:'DejaVu Sans Mono'; font-size:12px}</style>
</head>
<body lang="EN-US" link="blue" vlink="purple"><div><div>I think the aim is exactly that, to FIND the radius for each biogas plant which is able to provide the plant with enough resources.</div><div><br></div><div>I once had a quite similar problem, to create new polygons which had to reach a certain sum value of credits per unit, but overlaying other polygons with different credit values.</div><div><br></div><div>My semi-optimal solution was to "rasterize" the polygons to a vector grid.</div><div>I then selected the grid cells and used a statistics plugin to sum up the credits until I reached the desired amount, and then saved the selection as a new feature. The Live Statistics plugin could be used for that.</div><div><br></div><div>It really depends on how many plant points you already have. If they are many, this will be a tedious and boring job and you better might find someone to code a little python script.</div><div><br></div><div>If I had the abilities, I would code something like this:</div><div><br></div><div>Rasterize your polygons to a vector grid with your gas potential value (so if grid size is hectares, then simply your value)</div><div>Iterate over your point layer:</div><div>x = plant gas consuption</div><div>select cell underneath point 1</div><div>y = cell gas potential</div><div><br></div><div>set cell value to 0 (your "vacuum")</div><div>select next cells circularily around the first and add cells values to y</div><div>until y >= x</div><div>copy selected cells, dissolve them and save as a new feature in a new layer</div><div><br></div><div>next point</div><div><br></div><div><br></div><div>Once wanted to code sth like this in R, but I'm sure there are many people with PYQGIS-abilities who could do sth like this easily.</div><div>Could maybe even better work with real raster ... no idea.</div><div><br></div><div>Cheers</div><div>Bernd</div><div><br></div><div><br></div></div><div>Am 03.07.2015, 14:45 Uhr, schrieb Kristian Evers <kreve@gst.dk>:<br></div><br><blockquote style="margin: 0 0 0.80ex; border-left: #0000FF 2px solid; padding-left: 1ex">
<div class="WordSection1">
<p class="MsoNormal"><span style="color:#1F497D">Hi Julie.</span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">You need to define a surrounding area for each of the biogas plants. I suggest you base the surrounding areas on the polygons you already have, so that each plant has a polygon that is a union of several surrounding
 biogas-potential polygons. How to do this is up to you. </span></p>
<p class="MsoNormal"><span style="color:#1F497D">Hereafter you can select all potential-polygons that intersect the plant-polygons and sum up the potentials within each of the  plant-polygons.</span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">I hope that was enough to bring you on the right track.</span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Kristian</span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="DA" style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">Fra:</span></b><span lang="DA" style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> qgis-user-bounces@lists.osgeo.org [mailto:qgis-user-bounces@lists.osgeo.org]
<b>På vegne af </b>Julie Houge Hansen<br>
<b>Sendt:</b> fredag 03. juli 2015 13:35<br>
<b>Til:</b> qgis-user@lists.osgeo.org<br>
<b>Emne:</b> [Qgis-user] Vacuuming a vector polygon layer with a point layer in QGIS 2.8.2 (windows)</span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span lang="EN-GB">Dear all</span></p>
<p class="MsoNormal"><span lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB">I have tried asking my local QGIS expert but unfortunately she is for once not able to help me. I hope someone can.</span></p>
<p class="MsoNormal"><span lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoListParagraph" style="text-indent:-18.0pt;mso-list:l0 level1 lfo2"><span lang="EN-GB"><span style="mso-list:Ignore">-<span style="font:7.0pt "Times New Roman"">         
</span></span></span><span lang="EN-GB">I have a vector polygon layer that contains data for the amount of biogas potentially available in a polygon  - unit is m3/ha/year. The polygons are of varying size.
</span></p>
<p class="MsoListParagraph" style="text-indent:-18.0pt;mso-list:l0 level1 lfo2"><span lang="EN-GB"><span style="mso-list:Ignore">-<span style="font:7.0pt "Times New Roman"">         
</span></span></span><span lang="EN-GB">I have another vector point layer with data for the amount of biogas already produced on specific biogas plants – unit in m3/year.
</span></p>
<p class="MsoListParagraph" style="text-indent:-18.0pt;mso-list:l0 level1 lfo2"><span lang="EN-GB"><span style="mso-list:Ignore">-<span style="font:7.0pt "Times New Roman"">         
</span></span></span><span lang="EN-GB">I would like to combine the two layers so that I “vacuum” the area surrounding the biogas plants for biogas potential. This will reveal where there are still areas with sufficient biomass available for a new
 biogas plant to be build. </span></p>
<p class="MsoNormal"><span lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB">I have no clue how to do this calculation but I think it should be possible. Can anyone help me out?</span></p>
<p class="MsoNormal"><span lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB">The overview I have of my data now looks like this:
</span></p>
<p class="MsoNormal"><span lang="EN-GB" style="mso-fareast-language:EN-GB"><img width="478" height="441" id="Pladsholder_x0020_til_x0020_indhold_x0020_6" src="cid:image002.jpg@01D0B59E.EA35A9B0"></span></p>
<p class="MsoNormal"><span lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB">The size of the shown point data is <b>independent</b> on the polygon layer. I would like it to be
<b>dependent</b> on the biogas potential available (in the polygon layer). I would like the size of the points to reflect how far you would have to drive (radius to the biogas plant) in order to get all the biomass needed to produce the biogas you intend to.
</span></p>
<p class="MsoNormal"><span lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB">I am using QGIS version 2.8.2 64 bit with Windows.
</span></p>
<p class="MsoNormal"><span lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span lang="EN-CA" style="font-size:8.0pt;color:black;mso-fareast-language:EN-GB">Best regards<br>
<br>
</span><b><span lang="EN-GB" style="font-size:7.5pt;font-family:"Verdana","sans-serif";color:black;mso-fareast-language:EN-GB">Julie Houge Hansen</span></b><span lang="EN-CA" style="font-size:8.0pt;color:black;mso-fareast-language:EN-GB"><br>
PhD Student, Inst. of Chemical Eng., Biotechnology and Environmental Tech.</span></p>
<table class="MsoNormalTable" border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td width="40" style="width:30.0pt;padding:0cm 0cm 0cm 0cm"></td>
<td style="padding:0cm 0cm 0cm 0cm"></td>
</tr>
<tr>
<td width="40" style="width:30.0pt;padding:0cm 0cm 0cm 0cm">
<p class="MsoNormal"><span style="font-size:7.5pt;font-family:"Verdana","sans-serif";color:black;mso-fareast-language:EN-GB">Tlf.</span></p>
</td>
<td style="padding:0cm 0cm 0cm 0cm">
<p class="MsoNormal"><span style="font-size:7.5pt;font-family:"Verdana","sans-serif";color:black;mso-fareast-language:EN-GB"><a href="tel:+4565507212"><span style="color:black">+4565507212</span></a></span></p>
</td>
</tr>
<tr>
<td width="40" style="width:30.0pt;padding:0cm 0cm 0cm 0cm">
<p class="MsoNormal"><span style="font-size:7.5pt;font-family:"Verdana","sans-serif";color:black;mso-fareast-language:EN-GB">Email</span></p>
</td>
<td style="padding:0cm 0cm 0cm 0cm">
<p class="MsoNormal"><span style="font-size:7.5pt;font-family:"Verdana","sans-serif";color:black;mso-fareast-language:EN-GB"><a href="mailto:juhh@kbm.sdu.dk">juhh@kbm.sdu.dk</a></span></p>
</td>
</tr>
<tr>
<td width="40" style="width:30.0pt;padding:0cm 0cm 0cm 0cm">
<p class="MsoNormal"><span style="font-size:8.0pt;color:black;mso-fareast-language:EN-GB">Addr.</span></p>
</td>
<td style="padding:0cm 0cm 0cm 0cm">
<p class="MsoNormal"><span lang="DE" style="font-size:7.5pt;color:black;mso-fareast-language:EN-GB">Niels Bohrs Allé 1, DK-5230 Odense M, Denmark</span></p>
</td>
</tr>
</tbody>
</table>
<p class="MsoNormal"><span lang="EN-CA" style="font-size:12.0pt;font-family:"Times New Roman","serif";color:#1F497D;display:none;mso-fareast-language:EN-GB"><o:p> </o:p></span></p>
<table class="MsoNormalTable" border="0" cellspacing="0" cellpadding="0" width="104%" style="width:104.86%">
<tbody>
<tr>
<td style="padding:0cm 0cm 0cm 0cm">
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman","serif";color:#1F497D;mso-fareast-language:EN-GB"><img border="0" width="309" height="44" id="Billede_x0020_1" src="cid:image003.jpg@01D0B59E.EA35A9B0" alt="Description: C:\Users\CIC\Application Data\Microsoft\Signaturer\sduemaillogoUK.jpg"></span></p>
<div class="MsoNormal" align="center" style="text-align:center"><span style="color:#1F497D;mso-fareast-language:EN-GB">
<hr size="2" width="100%" align="center">
</span></div>
</td>
</tr>
</tbody>
</table>
<p class="MsoNormal"><b><span lang="DA" style="font-size:7.5pt;font-family:"Verdana","sans-serif";color:black;mso-fareast-language:EN-GB">Campusvej 55 · 5230 Odense M · Tlf. 6550 1000 ·
</span></b><b><span lang="EN-CA" style="font-size:7.5pt;font-family:"Verdana","sans-serif";color:black;mso-fareast-language:EN-GB"><a href="https://webmail.sdu.dk/owa/redir.aspx?C=866ea63d2ed24495a0928ea339532b2a&URL=http%3a%2f%2fwww.sdu.dk%2f" target="_blank"><span lang="DA" style="color:black">www.sdu.dk</span></a></span></b></p>
<p class="MsoNormal"><span lang="DA"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="DA"><o:p> </o:p></span></p>
</div>
</blockquote><br><br><br><div id="M2Signature"><div>-- </div><div>Erstellt mit Operas E-Mail-Modul: <a href="http://www.opera.com/mail/">http://www.opera.com/mail/</a></div></div></body></html>