<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>Hi Neil,</p>
    <p>just a note to  your link: if you provide shapefiles, you'll have
      to put at least 3 files: CC4a_RegionsSub.shp, CC4a_RegionsSub.dbf
      and CC4a_RegionsSub.shx. (shp contains the geometry, dbf the
      attributes and shx is the index between shp and dbf)..</p>
    <p>best regards<br>
    </p>
    <p>stefan<br>
    </p>
    <pre class="moz-signature" cols="72">Mit freundlichen Grüßen
Stefan Giese
Projektleiter/Consultant
****************************************************************************
FOSS Academy Kompaktkurs Winterschule 2018
Grundwissen zum Aufbau von Geodateninfrastrukturen mit Open-Source-Software
<a class="moz-txt-link-freetext" href="https://www.foss-academy.com/schulungstermine/kompaktkurs-winterschule">https://www.foss-academy.com/schulungstermine/kompaktkurs-winterschule</a>
****************************************************************************
WhereGroup GmbH & Co. KG
Schwimmbadstr. 2
79100 Freiburg
Germany

Fon: +49 (0)761 / 519 102 - 61
Fax: +49 (0)761 / 519 102 - 11

<a class="moz-txt-link-abbreviated" href="mailto:stefan.giese@wheregroup.com">stefan.giese@wheregroup.com</a>
<a class="moz-txt-link-abbreviated" href="http://www.wheregroup.com">www.wheregroup.com</a>
Amtsgericht Bonn, HRA 6788
-------------------------------
Komplementärin:
WhereGroup Verwaltungs GmbH
vertreten durch:
Olaf Knopp, Peter Stamm
-------------------------------</pre>
    <div class="moz-cite-prefix">Am 01.02.2018 um 05:42 schrieb Berg,
      Neil:<br>
    </div>
    <blockquote type="cite"
      cite="mid:DAA57B53-C547-475D-A133-BE733303B20C@ioes.ucla.edu">
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
      Hi all,<br class="">
      <font class="" color="#5856d6"><br class="">
      </font>I’m working with (1) a CSV file containing columns of “lat”
      and “lon” which represent grid cell centroids from a gridded model
      product over California (“loca_lat_lon.csv”), and (2) a shape file
      that carves up California into 12 distinct subregions
      (“CC4a_RegionsSub.shp”). 
      <div class=""><br class="">
      </div>
      <div class="">These files can be accessed here:</div>
      <div class=""><br class="">
      </div>
      <div class=""><a
href="https://drive.google.com/drive/folders/1IUrpVSJYBRIoCS4vzGYK9sBEzdwZec-c?usp=sharing"
          class="" moz-do-not-send="true">https://drive.google.com/drive/folders/1IUrpVSJYBRIoCS4vzGYK9sBEzdwZec-c?usp=sharing</a></div>
      <div class=""><font class="" color="#5856d6"><br class="">
        </font>I am trying to determine which grid cells reside in each
        of the 12 subregions (or NA/NULL if outside all subregions)
        using Vector -> Data Management Tools -> Join Attributes
        by Location. I have specified my Target vector layer as
        loca_lat_lon.csv, the Join vector layer as CC4a_RegionsSub.shp,
        the Geometric predicate as “intersects”, and am taking
        attributes of the first located feature, and only keeping
        matching records. <br class="">
        <font class="" color="#5856d6"><br class="">
        </font>The issue is that the returned joined layer assigns just
        1 of the 12 subregions, “Sierra Nevada Mountains”, to all grid
        cells, rather than different subregions (or None) to the cells. <br
          class="">
        <font class="" color="#5856d6"><br class="">
        </font>The shape file has a CRS of NAD83/California Albers and
        the coordinates in the CSV file are simply WGS 84. I’ve tried
        resetting the latter CRS to NAD83/California Albers, but the
        same issue persists. <br class="">
        <font class="" color="#5856d6"><br class="">
        </font>I’m using QGIS 2.18.14. <br class="">
        <font class="" color="#5856d6"><br class="">
        </font>Any help is greatly appreciated. Thanks in advance! <br
          class="">
        <font class="" color="#5856d6"><br class="">
        </font>
        <div class="">
          <div class="" style="word-wrap: break-word; line-break:
            after-white-space;">
            <div dir="auto" class="" style="word-wrap: break-word;
              line-break: after-white-space;">
              <div class="">Neil </div>
            </div>
          </div>
        </div>
        <br class="">
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Qgis-user mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Qgis-user@lists.osgeo.org">Qgis-user@lists.osgeo.org</a>
List info: <a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/qgis-user">https://lists.osgeo.org/mailman/listinfo/qgis-user</a>
Unsubscribe: <a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/qgis-user">https://lists.osgeo.org/mailman/listinfo/qgis-user</a></pre>
    </blockquote>
    <br>
  </body>
</html>