Tag Info

New answers tagged

3

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} ...


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

you can use gdal: (you can change PNG to JPG or TIFF too) for %i in (*.tif) do gdal_translate -of PNG -scale -co worldfile=no %i %~cnvt.png i hope it helps you...


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] + ...


0

The easiest way to do this is through the GDAL API - see the tutorial - your question then comes down to: if( poDataset->GetProjectionRef() != NULL ) printf( "Projection is `%s'\n", poDataset->GetProjectionRef() ); if( poDataset->GetGeoTransform( adfGeoTransform ) == CE_None ) { printf( "Origin = (%.6f,%.6f)\n", ...


1

It is not possible for autocad (base) to understand georeferencing information in the tiff. If a colleague were to load the image for you with a projection and the georeferenced image into a drawing (using autocad map 3d), that drawing can be opened and used in autocad.


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


0

In a generic sense, use the affine transform parameters, which should be available with any raster file format. With GDAL, this is available with GetGeoTransform(), or PostGIS' ST_GeoReference() function. After finding these six parameters, one only needs to determine which ones they are, then a function can be made to transform in linear space. E.g., with ...


0

Solved by simply checking "create output aplha band". The reason of the message is because gdalwarp uses the byte type by default, so only 8bits are allowed for every pixel (values from 0 to 255). you can use the -of Int16 option to extend the ranges, but it will increase the size of the raster and shift the colors (I suppose it's because of the resampling). ...


0

I figure out finally. Global Mapper did: 1. LZW compression 2. RGB to 256 palette the tiff files are almost 10 times smaller size than before. I use: gdal_translate: 1. with LZW compression 2. quality compress 40% but still RGB gdaladdo make 6 levels of overview.


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: ...



Top 50 recent answers are included