Hot answers tagged geotiff
3
You probably don't need to convert a GeoTiff to a Tiff.
As a GeoTiff your image will not only be readable by any GIS package but probably can also be read by any image manipulation package too (e.g. Photoshop, GIMP etc) baring some exceptions. Image editing packages simply ignore the bits in the Tiff header that make it a GeoTiff - either that or they ...
2
In GRASS GIS, the command r.out.xyz does this conversion job. Instead of first importing the GeoTIFF file, you can simply register it beforehand with r.external in the GRASS GIS location (i.e. basically the needed project directory).
2
You should be able to do this using the gdal_translate command line tool.
http://www.gdal.org/gdal_translate.html
To convert to Arc/Info ASCII Grid:
gdal_translate -of AAIGrid elevation.tif elevation.asc
To convert to ASCII Gridded XYZ:
gdal_translate -of XYZ elevation.tif elevation.xyz
Binary executables of the GDAL tools are available here: ...
2
AWK is perhaps the most effective tool for such text conversion (although if you're familiar with Perl you might prefer it, out of habit): it was designed for exactly this kind of one-off quick reformatting work.
Here is the full AWK code to perform the requested operation on the input specified:
BEGIN {OFS="\n"}
{print $2, $3, $4, $5 $6, $7, $8 > $1}
...
1
It isn't nice code, but for your specific circumstance, here is some python that should have typing them out by hand:
f = open('list.txt', 'r')
lines = f.readlines()
for line in lines:
lineparts = line.split(' ')
outfile = open(lineparts[0], 'w')
for i in range(1, 4):
outfile.write(lineparts[i] + '\n')
outfile.write(lineparts[4] + ...
1
This doesn't directly address adding your image from a local source, but take a look at this free tool from ESRI to work with web services in AutoCAD. With this tool you can use many web services in AutoCAD directly--including imagery base maps.
http://www.esri.com/software/arcgis/arcgis-for-autocad
Only top voted, non community-wiki answers of a minimum length are eligible
