<div dir="ltr">Thanks Nicolas,<div>yes, I started out doing a lot of the raster / point generation in numpy but (so far) I've found that manipulating the data as points in QGIS is a lot more efficient for my workflow using existing tools than trying to do something similar with rasters and numpy. This is essentially pre-processing work to set up a model.</div><div>I did a little more digging and thinking and I can order / sort the points the way I need by using the mmqgis tool or the sort plugin. </div><div>Ascending / descending on X/Y  and there's an option to add some SQL to one of the export command options that (if it allows ORDER BY) will enable me to make a simple script to export all my datasets.</div><div>Thanks again for the tips all.</div><div><br></div><div>Matt</div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Dec 19, 2019 at 10:54 PM Nicolas Cadieux <<a href="mailto:nicolas.cadieux@archeotec.ca" target="_blank">nicolas.cadieux@archeotec.ca</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto"><div dir="ltr">Hi,</div><div dir="ltr"><br></div><div dir="ltr">If it’s a regularly spaced grid, I would dump this in a numpy array and read it as a raster. Some examples here</div><div dir="ltr"><br></div><div dir="ltr"><a href="https://pcjericks.github.io/py-gdalogr-cookbook/index.html" target="_blank">https://pcjericks.github.io/py-gdalogr-cookbook/index.html</a></div><div dir="ltr">Nicolas</div><div dir="ltr"><br></div><div dir="ltr">Le 19 déc. 2019 à 05:56, Matt Boyd <<a href="mailto:mattslists@gmail.com" target="_blank">mattslists@gmail.com</a>> a écrit :</div><div dir="ltr"><blockquote type="cite"><br></blockquote></div><blockquote type="cite"><div dir="ltr"><div dir="ltr">Hi QGISers,<br><div>I need to export a point dataset of a regularly spaced grid in a particular order as a csv / text file. Its one of the demands of some python code that I use the points in, its not my code so I don't have any say in this.</div><div>The points start in the bottom left and move left to right with the final point being the top right corner.</div><div>Is there an easy way to do this in the export options? I have created a column that in the point data that I use to sort the data so it goes in the right order, but it's clunky.</div><div><br></div><div>Thanks</div><div>Matt</div></div>
<span>_______________________________________________</span><br><span>Qgis-user mailing list</span><br><span><a href="mailto:Qgis-user@lists.osgeo.org" target="_blank">Qgis-user@lists.osgeo.org</a></span><br><span>List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a></span><br><span>Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a></span></div></blockquote></div></blockquote></div>