<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>Hi,</p>
    <p>I think you touch a quiet common problem, and I decided to find a solution for the last hours (my dog is already very unpatient), cause I need this also once in a while. All searches for quick solutions ended without good results.</p>
    <p>For the python-freaks, I think this would be a piece of cake, but so far obviously no one came up with a one-fits-all solution.
</p>
    <p>So, here we go manually:</p>
    <p>First, you have to decide how many "lines" of numbers you want to generate to get a reasonable result.</p>
    <p>In the tool box use "Create" Grid and choose a line grid with a vertical spacing that will generate to desired amount of lines. for horizontal spacing choose a big distance so only few vertical lines are generated (will be deleted anyway). For the grid extend, choose your point layer.</p>
    <p>(Alternative way: Draw one line in your first "row" of points and the use "Array of offset (parallel) lines" from the tool box)</p>
    <p><style type="text/css">
p, li { white-space: pre-wrap; }
</style></p>
    <p>Having that grid, delete the vertical lines, so that you only keep the horizontal lines that now evenly distribute over your points.</p>
    <p>Now, in the tool box, use "Snap points to lines" from the SAGA functions. This produce a new layer with points, that now sit on those lines (choose a good search radius!)</p>
    <p>To this result layer, add columns for x and y-values. Do this manually in the field calculator or in the tool box with "Add ccordinates to points"</p>
    <p>Now, you unfortunately need a plugin (could not find a working function in the toolbox for this), cause you will have to reorder your layer by those two coordinate values, first by y decending (upmost first), and then x (ascending)</p>
    <p>The plugin is called "Sort and Number": 1st field: y (invert), 2nd field x. The plugin will add a new column "order" to you points.
</p>
    <p>Now, to get the numbering to your oringinal points, use "join attributes by field value" to join your original points with the new ordered snapped points. (Take care that your original points have a unique id beforehand!)</p>
    <p>The resulting layer is now your point layer which can be labeled by the "order" column.</p>
    <p>If you would post a question on this on gis.stackexchange.com , I can give there an answer with some screenshots as well.</p>
    <p>
</p>
    <p>Cheers,</p>
    <p>Bernd
</p>
    <p>
</p>
    <div class="moz-cite-prefix">Am 01.05.19 um 23:38 schrieb Apoyo
      Carbono:<br>
    </div>
    <blockquote type="cite"
cite="mid:CACWgNhTPgwChCmSU4+5spoqV72xf1XQhKwdPyJmBxTCAr2GHWw@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">
        <div>Hi!<br>
          I need your help. I need to Create a numbers sequentially in a
          "Points<br>
          shapefile"  with a spacial pattern.<br>
          For example, the point number 1 start northwestern and the
          next  numbers<br>
          points will be order from west to east. For the next row (to
          South) going<br>
          from west to east too.<br>
          And so on, the values points increase to the south. Therefore
          the last<br>
          point will be in the southeast.<br>
          For now I'm doing manual but it is around 1,000 points!<br>
          <br>
          I hope that you understand my situation. Can you help me? I
          could send you<br>
          the shapefile with an example better explained<br>
          <br>
          Thanks,<br>
          <br>
          Ana  <br>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-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>
  </body>
</html>