Hi Randal,<div>I had noticed the polygons to points converter, but wanted to do it "properly" - i.e. with a polygons in polygons comparison.</div><div><br></div><div>Your method will likely work but adds two extra steps (conversion to points and then from points back to polygons). Does QGIS not have a tool for this then?</div>

<div><br></div><div>Thanks!</div><div><br></div><div>Jonathan<br>
<br><br><div class="gmail_quote">On 8 August 2013 13:12, Randal Hale <span dir="ltr"><<a href="mailto:rjhale@northrivergeographic.com" target="_blank">rjhale@northrivergeographic.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


  
    
  
  <div bgcolor="#FFFFFF" text="#000000">
    <div>Here's how I would do it: You have Two
      polygon layers and you need to count the number of polygons in
      layer 1 that are contained in the polygons in layer 2 <br>
      <br>
      1. Convert the polygons in 1 to points: Vector -> geometry
      -> polygon centroids <br>
      2. then use -> vector -> analysis tools -> points in
      polygon. Count the number of points contained by polygons in layer
      2. <br>
      <br>
      Hope that helps or at least creates an idea. <br>
      Randy<br>
      <pre cols="72">-----------------
Randal Hale, GISP
North River Geographic Systems, Inc
<a href="http://www.northrivergeographic.com" target="_blank">http://www.northrivergeographic.com</a>
<a href="tel:423.653.3611" value="+14236533611" target="_blank">423.653.3611</a> <a href="mailto:rjhale@northrivergeographic.com" target="_blank">rjhale@northrivergeographic.com</a>
<a href="mailto:rjhale@northrivergeographic.com" target="_blank"><mailto:rjhale@northrivergeographic.com></a>
twitter:rjhale
<a href="http://about.me/rjhale" target="_blank">http://about.me/rjhale</a>
</pre><div><div class="h5">
      On 08/08/2013 07:36 AM, Jonathan Moules wrote:<br>
    </div></div></div>
    <blockquote type="cite"><div><div class="h5">Hi List,
      <div>   I have two layers of polygons. I want to do some analysis
        between them, basically doing a spatial join, counting how many
        of one polygon layer there are intersecting with each polygon in
        the other layer.
      </div>
      <div>ArcGIS does this easily with the "Spatial Join" tool
        (ArcToolbox version). How can I do this in QGIS?</div>
      <div><br>
      </div>
      <div>I know there is Vector -> Data Manage Tools -> Join
        attributes by location, but that only acts as a basic join and
        doesn't allow for counting of the number of joins.</div>
      <div><br>
      </div>
      <div>Sextante has a large collection of tools, but none of them
        seem to have any help so I don't know what any of them do. (And
        none of them seem applicable anyway).</div>
      <div><br>
      </div>
      <div>Suggestions welcome, Cheers,</div>
      <div>Jonathan</div>
      <br>
      </div></div><span style="color:rgb(34,34,34);font-family:arial,sans-serif">This
        transmission is intended for the named addressee(s) only and may
        contain sensitive or protectively marked material up to
        RESTRICTED and should be handled accordingly. Unless you are the
        named addressee (or authorised to receive it for the addressee)
        you may not copy or use it, or disclose it to anyone else. If
        you have received this transmission in error please notify the
        sender immediately. All email traffic sent to or from us,
        including without limitation all GCSX traffic, may be subject to
        recording and/or monitoring in accordance with relevant
        legislation.</span>
      <br>
      <fieldset></fieldset>
      <br>
      <pre>_______________________________________________
Qgis-user mailing list
<a href="mailto:Qgis-user@lists.osgeo.org" target="_blank">Qgis-user@lists.osgeo.org</a>
<a href="http://lists.osgeo.org/mailman/listinfo/qgis-user" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-user</a>
</pre>
    </blockquote>
    <br>
  </div>

</blockquote></div><br></div>

<br>
<span style="color:rgb(34,34,34);font-family:arial,sans-serif;background-color:rgb(255,255,255)">This transmission is intended for the named addressee(s) only and may contain sensitive or protectively marked material up to RESTRICTED and should be handled accordingly. Unless you are the named addressee (or authorised to receive it for the addressee) you may not copy or use it, or disclose it to anyone else. If you have received this transmission in error please notify the sender immediately. All email traffic sent to or from us, including without limitation all GCSX traffic, may be subject to recording and/or monitoring in accordance with relevant legislation.</span>