<html><head></head><body>Following-up on my own question, I *can* view the raster in Grass 6.4, so it did get imported. So I guess the problem is with the display in grass 7. <br>
<br>
I tried to update to the latest version of 7 from svn, but it failed to build with a pile of errors, so I can't check that.<br>
<br>
Tyler<br><br><div class="gmail_quote">Tyler Smith <tyler@plantarum.ca> wrote:<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<pre class="k9mail">Hello,<br /><br />I am trying to import a .bil raster file into GRASS 7.0. The file is<br />available here:<br /><a href="http://webarchive.iiasa.ac.at/Research/LUC/External-World-soil-database/HTML/HWSD_Data.html?sb=4">http://webarchive.iiasa.ac.at/Research/LUC/External-World-soil-database/HTML/HWSD_Data.html?sb=4</a><br /><br />Unzipping the data, I have three files:<br />hwsd.bil<br />hwsd.blw<br />hwsd.hdr<br /><br />First I tried:<br />g.proj -c location=hwSoilsDB<br />georef=~/grassdata/downloads/harmonized_world_soil_database/hwsd.bil<br /><br />which resulted in:<br />WARNING: Read of file<br />/home/tws/grassdata/downloads/harmonized_world_soil_database/hwsd.bil<br />was successful, but it did not contain projection information. 'XY<br />(unprojected)' will be used<br /><br />I get the same warning if I try with hwsd.blw. Trying with hwsd.hdr instead:<br /><br />g.proj -c location=hwSoilsDB<br
/>georef=~/grassdata/downloads/harmonized_world_soil_database/hwsd.hdr<br />ERROR 1: The selected file is an ESRI BIL header file, but to<br />open ESRI BIL datasets, the data file should be selected<br />instead of the .hdr file.  Please try again selecting<br />the data file (often with the extension .bil) corresponding<br />to the header file:<br />/home/tws/grassdata/downloads/harmonized_world_soil_database/hwsd.hdr<br /><br />ERROR: Could not read georeferenced file<br />/home/tws/grassdata/downloads/harmonized_world_soil_database/hwsd.hdr<br />using either OGR nor GDAL<br /><br />This is confusing, because I already know GRASS won't load the .bil file.<br /><br />GDAL doesn't list bil as a supported format, but since <a href="http://r.in">r.in</a>.bin<br />doesn't support creating a new location I tried it anyways. It looks<br />promising:<br /><br /><a href="http://r.in">r.in</a>.gdal -c input=~/grassdata/downloads/harmonized_world_soil_database/hwsd.bil<br
/>location=hwSoilsDB output=hwSoil<br /><br />This succeeds without complaint. So I switch into the new location and<br />import the raster, again with no complaints:<br /><br /><a href="http://r.in">r.in</a>.gdal input=~/grassdata/downloads/harmonized_world_soil_database/hwsd.bil<br />output=hwSoil<br /><br />However, if I try to display the map I get an error:<br /><br />d.rast map=hwSoil<br />ERROR: Cairo_begin_raster: Failed to create surface<br /><br />Interestingly, if I now try to stop the display, I get another error:<br /><br />d.mon stop=wx0<br />ERROR: PID file not found<br /><br />I also tried <a href="http://r.in">r.in</a>.bin, but the best I could do was:<br /><br /><a href="http://r.in">r.in</a>.bin input=~/grassdata/downloads/harmonized_world_soil_database/hwsd.bil<br />output=hwSoil bytes=1 rows=21600 cols=43200<br />ERROR: Invalid coordinates<br /><br />And now I'm stuck. How do I get this bil file into GRASS?<br /><br />Thanks,<br /><br />Tyler<br /><hr /><br
/>grass-user mailing list<br />grass-user@lists.osgeo.org<br /><a href="http://lists.osgeo.org/mailman/listinfo/grass-user">http://lists.osgeo.org/mailman/listinfo/grass-user</a><br /></pre></blockquote></div></body></html>