Thanks Nicolas, 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. 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. 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. Thanks again for the tips all.
Matt On Thu, Dec 19, 2019 at 10:54 PM Nicolas Cadieux < [email protected]> wrote: > Hi, > > If it’s a regularly spaced grid, I would dump this in a numpy array and > read it as a raster. Some examples here > > https://pcjericks.github.io/py-gdalogr-cookbook/index.html > Nicolas > > Le 19 déc. 2019 à 05:56, Matt Boyd <[email protected]> a écrit : > > > > Hi QGISers, > 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. > The points start in the bottom left and move left to right with the final > point being the top right corner. > 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. > > Thanks > Matt > _______________________________________________ > Qgis-user mailing list > [email protected] > List info: https://lists.osgeo.org/mailman/listinfo/qgis-user > Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user > >
_______________________________________________ Qgis-user mailing list [email protected] List info: https://lists.osgeo.org/mailman/listinfo/qgis-user Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
