Reputation
389
Top tag
Next privilege 500 Rep.
Access review queues
Badges
1 9
Newest
 Yearling
Impact
~5k people reached

  • 0 posts edited
  • 0 helpful flags
  • 1 vote cast
Nov
11
answered Unable to stylize raster data as pseudocolor render type on MAC OSX
Nov
4
revised How to reproject 500 CSV files efficiently and easily using QGIS?
Made rather messy comments to my own answer. Tried to tidy them up by adding code here instead.
Nov
4
comment How to reproject 500 CSV files efficiently and easily using QGIS?
Yup, but then it wasn't really an update, more like an additional. Pretty messy, I agree. I guess I should update the original answer. Thanks
Nov
2
comment How to reproject 500 CSV files efficiently and easily using QGIS?
The last comment was a bit messy. Use this line in the above bash script to loop through all files paste -d',' ${i} <(awk -v OFS="," -F " " 'NR>1 {print $1 " " $2}' ${i} | gdaltransform -s_srs EPSG:4326 -t_srs EPSG:32633 | awk '{gsub(" ",",",$0); print $0}' | /usr/local/bin/sed "1i\X,Y,Z") > utm${i} Replace the /usr/local/sed with just sed if you aren't on OSX. This isn't ideal if your csv files are space separated, as the above line assumes, but it works. If you have comma separated then change -F " " to -F ","
Nov
2
comment How to reproject 500 CSV files efficiently and easily using QGIS?
I just remembered doing something similar a while ago and posting a solution to my blog. It's written for Mac but is bash based. The biggest difference is the issue with sed on OS X, which I deal with at the end of the post: mercergeoinfo.blogspot.se/2014/01/…
Oct
30
awarded  Yearling
Oct
30
answered How to reproject 500 CSV files efficiently and easily using QGIS?
Aug
5
awarded  Self-Learner
Jun
18
comment QGIS interface very slow on OSX
Its the KyngChaos version. I opened the same project in a VirtualMachine Lubuntu installation and it was fine, but I took the opportunity to remove some large rasters from the project, rasters that weren't visible but still listed. Upon returning to the OSX version everything was back to normal. It seems odd to me that the OSX version fills the assigned memory with data not being used, metadata alone would be sufficient. Of course this could be another "feature" of 10.10 on a Mac with HDD rather than SSD (see previous rants distributed across the web).
Jun
17
asked QGIS interface very slow on OSX
Nov
11
comment PyQGIS cookbook seems out of date
Thanks for the links. The problems are the same following the non-testing cookbook, and the solution in the second link really only considers that one problem rather than providing a general solution, i.e. an up to date guide. I'm running the latest QGIS (2.6.0) which may, I suppose, be part of the problem.
Nov
11
asked PyQGIS cookbook seems out of date
Nov
11
asked Qgis Python console print statements not working
Sep
24
awarded  Autobiographer
Jul
2
awarded  Curious
Jun
10
comment gdalwarp won't export AAIGrid
The solution you gave is approximately my "workaround". Seems an odd limitation for gdalwarp.
Jun
9
asked gdalwarp won't export AAIGrid
Mar
27
comment Gdal: how to get the max and min altitudes of my topographic raster?
I've put colour highlighting on the commands. Most of the text is the output from gdalinfo and the 'short' version is a couple of comments above here. There isn't any more to it really, gdal_translate -stats fileIn.tif fileOut.tif then gdalinfo fileOut.tif
Mar
26
comment Gdal: how to get the max and min altitudes of my topographic raster?
I've posted a more complete example on my blog (mercergeoinfo.blogspot.com/2014/03/gdalinfo-and-statistics.html). If that's against the rules here then I apologise now. Feel free to remove this if it is the case.
Mar
26
comment Gdal: how to get the max and min altitudes of my topographic raster?
Well, I don't have room to show all the details but using a SPOT4 scene: gdalinfo SPOT4_HRVIR1_042-209_0_080831_111638.tif gave metadata but no min-max. the same command with -mm produced the min-max. gdal_translate -stats SPOT4_HRVIR1_042-209_0_080831_111638.tif output.tif produces a new file and gdalinfo output.tif on that gives metadata with min-max values plus more