<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Hi Justin,<br>
      <br>
      Have a look at
      <meta http-equiv="content-type" content="text/html;
        charset=ISO-8859-1">
      <a href="http://www.qgis.org/pyqgis-cookbook/vector.html">http://www.qgis.org/pyqgis-cookbook/vector.html</a><br>
      This should provide you with all the information you need.<br>
      <br>
      Regards,<br>
      Matthias<br>
      <br>
      On 11/15/2012 03:00 PM, Justin Hubbard wrote:<br>
    </div>
    <blockquote
cite="mid:CAMFSZzqefs1xCEwnj0fAiu21_RA7+iCrJ1ofxNRByFeVpkeAcw@mail.gmail.com"
      type="cite">Hi All
      <div><br>
      </div>
      <div>I am trying to select all features in a layer where the value
        of a particular attribute is something specific.</div>
      <div>I would then like to iterate over each of these features and
        validate certain other attributes and update other attributes
        based on whether that validation passes or fails.</div>
      <div><br>
      </div>
      <div>Any idea how I can do something like this in Python?<br
          clear="all">
        <div><br>
        </div>
        -- <br>
        <p><span style="font-family:verdana,geneva;font-size:x-small">Warm
            regards</span><br>
          <strong><span
              style="font-family:verdana,geneva;font-size:x-small">Justin
              Hubbard</span></strong><br>
          <br>
          <strong><span
              style="font-family:verdana,geneva;font-size:x-small">--</span></strong><br>
        </p>
        <table
          style="background-color:rgb(0,51,102);width:250px;height:217px"
          border="0" cellpadding="0" cellspacing="1">
          <tbody>
            <tr>
              <td
style="margin:0px;padding:1.5pt;font-family:arial,sans-serif;background-color:white">
                <table
                  style="background-color:white;width:241px;height:207px"
                  border="0" cellpadding="0">
                  <tbody>
                    <tr>
                      <td colspan="2" style="margin:0px;padding:0.75pt">
                        <table style="width:347px;height:212px"
                          border="0" cellpadding="0" cellspacing="0">
                          <tbody>
                            <tr style="min-height:10.5pt">
                              <td
                                style="margin:0px;padding:0in;min-height:10.5pt;width:10.5pt"
                                valign="top" width="14"> </td>
                              <td
                                style="margin:0px;padding:0in;min-height:10.5pt">
                                 
                                <p dir="ltr"
                                  style="margin:0px;text-align:justify"> </p>
                              </td>
                              <td
                                style="margin:0px;padding:0in;min-height:10.5pt"> 
                                <p dir="ltr"
                                  style="margin:0px;text-align:justify"><span
                                    style="font-family:verdana,geneva"><strong><span
                                        style="font-size:10pt;color:red">Justin
                                        Hubbard</span></strong></span></p>
                                <p dir="ltr"
                                  style="margin:0px;text-align:justify"><span
style="font-size:7.5pt;color:rgb(0,51,102)">Software Engineer and
                                    Support<br>
                                    <br>
                                  </span></p>
                              </td>
                            </tr>
                            <tr style="min-height:10.5pt">
                              <td
                                style="margin:0px;padding:0in;min-height:10.5pt;width:10.5pt"
                                valign="top" width="14">
                                <p style="margin:0px"> </p>
                              </td>
                              <td
                                style="margin:0px;padding:0in;min-height:10.5pt">
                                <p style="margin:0px;line-height:10.5pt"><span
style="font-size:7.5pt;color:rgb(0,51,102)">  Mobile:</span></p>
                              </td>
                              <td
                                style="margin:0px;padding:0in;min-height:10.5pt">
                                <p style="margin:0px;line-height:10.5pt"><span
style="font-size:7.5pt;color:rgb(0,51,102)">  +27 (0)79 827 1657</span></p>
                              </td>
                            </tr>
                            <tr style="min-height:10.5pt">
                              <td
                                style="margin:0px;padding:0in;min-height:10.5pt;width:10.5pt"
                                valign="top" width="14">
                                <p style="margin:0px"> </p>
                              </td>
                              <td
                                style="margin:0px;padding:0in;min-height:10.5pt">
                                <p style="margin:0px;line-height:10.5pt"><span
style="font-size:7.5pt;color:rgb(0,51,102)">  Fax:</span></p>
                              </td>
                              <td
                                style="margin:0px;padding:0in;min-height:10.5pt">
                                <p style="margin:0px;line-height:10.5pt"><span
style="font-size:7.5pt;color:rgb(0,51,102)">  +27 (0)86 540 6016</span></p>
                              </td>
                            </tr>
                            <tr style="min-height:10.5pt">
                              <td
                                style="margin:0px;padding:0in;min-height:10.5pt;width:10.5pt"
                                valign="top" width="14">
                                <p style="margin:0px"> </p>
                              </td>
                              <td
                                style="margin:0px;padding:0in;min-height:10.5pt">
                                <p style="margin:0px;line-height:10.5pt"><span
style="font-size:7.5pt;color:rgb(0,51,102)">  Email:</span></p>
                              </td>
                              <td
                                style="margin:0px;padding:0in;min-height:10.5pt">
                                <p style="margin:0px;line-height:10.5pt"><span
                                    style="font-size:7.5pt;color:navy">  <span
                                      style="color:blue"><span
                                        style="color:rgb(0,0,204)"><a
                                          moz-do-not-send="true"
                                          title="Email Me"
                                          href="mailto:robert@plannermunicipalsoftware.co.za"
                                          target="_blank">justin@pyrotechsoftware.com</a></span></span></span></p>
                              </td>
                            </tr>
                            <tr style="min-height:10.5pt">
                              <td
                                style="margin:0px;padding:0in;min-height:10.5pt;width:10.5pt"
                                valign="top" width="14">
                                <p style="margin:0px"> </p>
                              </td>
                              <td
                                style="margin:0px;padding:0in;min-height:10.5pt">
                                <p style="margin:0px;line-height:10.5pt">
                                  <span
                                    style="font-size:7.5pt;color:rgb(0,51,102)"> 
                                    Web Site:</span></p>
                              </td>
                              <td
                                style="margin:0px;padding:0in;min-height:10.5pt">
                                <p style="margin:0px;line-height:10.5pt"><span
                                    style="font-size:7.5pt;color:navy">  <span
                                      style="color:blue"><span
                                        style="color:rgb(0,0,204)"><a
                                          moz-do-not-send="true"
                                          title="About Me"
                                          href="http://www.plannermunicipalsoftware.co.za/"
                                          target="_blank">www.pyrotechsoftware.co</a>m</span></span></span></p>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </td>
                    </tr>
                  </tbody>
                </table>
              </td>
            </tr>
          </tbody>
        </table>
        <br>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Qgis-developer mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Qgis-developer@lists.osgeo.org">Qgis-developer@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/qgis-developer">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>