We’re rewarding the question askers & reputations are being recalculated! Read more.

Questions tagged [geotiff-tiff]

Use this tag when referring to georeferenced or ungeoreferenced TIFF (Tagged Image File Format) files.

Filter by
Sorted by
Tagged with
31
votes
5answers
8k views

How to reproject raster from 0 360 to -180 180 with cutting 180 meridian

I have a geotiff raster image that has a coordinate system with longtitudes from 0 to 360. The horizontal center of the image is 180 longtitude. See image below: I want to transform it to EPSG:4326 ...
13
votes
4answers
11k views

Splitting .tif image into several tiles? [closed]

I have an image of size 1GB (.tif), with the width and height 94000x71680. I would like to chunk this image into 20000X20000 tiles so that I can process them. How can I do this?
19
votes
1answer
5k views

File size inflation normal with gdalwarp?

After using gdalwarp to project and align-to-grid (via -tap) a number of rasters I noticed that the output rasters were significantly larger than the original rasters. A fairly thorough web search ...
1
vote
1answer
899 views

Reverse gdal_rasterize (-i option) does not work

When I use: gdal_rasterize -b 1 -b 2 -b 3 -burn 255 -burn 255 -burn 255 polygon.shp tiff.tiff I get a new tiff with a white hole in it with the shape of the polygon shp. However, when I use the ...
11
votes
2answers
20k views

Convert .tif with .tfw to a GeoTiff?

I have a tif image file, and a .tfw world file (created from OSM data with Mapertive). How can I (using linux command line) convert that to a GeoTIFF file? (i.e. I want to have one file, not 2). I'm ...
10
votes
10answers
15k views

Can QGIS export Geospatial PDF for Avenza PDF map app?

Since QGIS uses GDAL, does any map exported as a PDF become a Geospatial PDF? I am hoping to import maps from QGIS into the Avenza PDF Map app on my phone. Previous posts mentioned exporting as ...
10
votes
7answers
45k views

How to export/save a layer composition to GeoTiff?

I want to export/save a QGIS composition of raster/vector layers to a GEOTIFF or ECW raster with high resolution (20 000 * 20 000 Pixel).
4
votes
2answers
18k views

convert geotiff to simple xyz elevation file?

I have looked everywhere and can not find a tool to convert a geotiff file to a simple ascii elevation file... did I miss something? thanks for any pointers!
51
votes
8answers
20k views

Should GDAL be set to produce GeoTIFF files with compression? Which algorithm should be used?

I have a folder of GIS data that consists mainly of GeoTIFF files. The whole set weighs in at about 1.2 GB. I noticed that if I pack the contents into a tarball, it smashes down to about 82 MB. I ...
13
votes
2answers
8k views

How to get GDAL to create statistics for GTiff in Python

I regularly create my own GeoTIFF rasters with GDAL in Python, e.g.: from osgeo import gdal from numpy import random data = random.uniform(0, 10, (300, 200)) driver = gdal.GetDriverByName('GTiff') ds ...
11
votes
1answer
8k views

Convert huge XYZ CSV to GeoTIFF

I have a huge amount of data in the form of CSV containing UTM coordinates as X and Y and an elevation value as Z information. I need to convert these data into a DEM as GeoTIFF for further analysis. ...
11
votes
6answers
19k views

Batch convert GeoTIFF's to KMZ files

I have about 600 GeoTIFF map files, each about 140 mb in size that I'd like to convert to KMZ files so people can download them and use them with Garmin GPS units, Google Earth, etc. Anyone know an ...
6
votes
2answers
12k views

Convert specific RGB (GeoTIFF) color to transparent

I have an RGB GeoTIFF file and I want to convert a specific RGB colour to transparent. I would like to use GDAL for doing this, but external Python scripts are also an option (though I haven't learned ...
5
votes
3answers
11k views

GDAL_translate: converting ESRI GRID to Geotiff in batch

The Challenge: To batch convert 1000 rasters in ESRI Grid binary to Geotiff using either using a batch file or Python 2.7 without ArcGIS/Arcpy module. The Tools: Win7Pro, GDAL 1.9.2 (via OSGeo4W), ...
13
votes
2answers
8k views

GeoServer: Best way to publish 2500 TIFF or 71 ECW files?

I have ortophotos of an area that I need to serve as a background map for my vectors. I got it as 2500 files (71,5MB each) in raw TIFF format with corresponding TFW word file - 180GB of data. ...
14
votes
5answers
23k views

Creating TFW and PRJ files for folder of GeoTIFF files? [on hold]

I have a folder which contains a large number of files in GeoTIFF format. I need to generate both PRJ and TFW files for each of these images. Is there some way to do this?
9
votes
2answers
8k views

Using Rasterio or GDAL to stack multiple bands without using subprocess commands

Does anyone have a eloquent way of stacking multiple .tif files into a multiple band stack using Rasterio and/or GDAL? I am looking for a way to avoid using a subprocess command like gdal_merge.py ...
4
votes
3answers
17k views

Merging tif images into a single GeoTiff with QGIS

For this example, I have 3 tif images that are tiles. They fit together to form a single image. I load the 3 images into QGIS and it merges them directly and I see my completed image. The problem ...
14
votes
2answers
9k views

GEOTIFF explanation of .aux xml and tfw world file

I want to know how raster images work, I have a set of geotiffs that has no aux, tfw or xml when I check the spatial information in arccatalog, they do have an projection. and they shows correctly. ...
10
votes
2answers
4k views

Finding centre point of a raster in ArcGIS?

If I have, say, a rectangular and georeferenced raster file loaded in an ArcMap 10 document (.tiff w/ associated tfw), how do I easily find its centre point and store that point in a points vector ...
7
votes
2answers
2k views

How to generate TFW files for a list of images?

I have a few digital images that are not georeferenced. E.g.: Img01.tif Img02.tif ... Img99.tif On the other hand, I have a text file, which contains georeferencing information for these ...
5
votes
5answers
4k views

How do I create blank geotiff with same spatial properties as existing geotiff?

How do I use gdal to create a blank geotiff with the same spatial properties (size, resolution, extent, projection) as an existing geotiff? (The reason that I want to do this is that I'm using ...
3
votes
2answers
3k views

QGIS export “save as image” automate with python?

Have several hundred grid views with OpenLayers WMS that are being exported in QGIS using Project > "Save as Image". Doing it manually selecting individual grids, "zoom to selected", Project tab > "...
2
votes
2answers
5k views

Exporting GRID to TIFF keeping (classified) symbology using ArcGIS for Desktop?

I want to export an esri grid-raster into a *.tiff without losing the symbology I created for the grid (the symbology is classified). No matter how I try to solve it I get a stretched symbology in a ...
2
votes
1answer
679 views

How to define a projection for a file with geo points?

I have a HDF file that I want to convert to tif or ENVI file. I know that the +Proj of the original file is: "+proj=cea +lon_0=0 +lat_ts=30 +ellps=WGS84 +units=m" so: gdal_translate -of "ENVI" -...
1
vote
1answer
2k views

Using arcpy.mapping.ExportToTIFF() to create dataframe geotiff

Has anyone created a dataframe geotiff using arcpy.mapping.ExportToTIFF() with satisfactory results? My output has poor quality and the georeferencing is significantly off. This example is the ...
14
votes
2answers
25k views

How to convert QGIS generated tiff images into jpg/jpeg using GDAL command line utilities?

I want to develop a web portal that will show the images dynamically produced by QGIS, but QGIS provided tiff images are too big in size and it is not possible to show it on website using image ...
10
votes
2answers
27k views

Manipulating ASCII (.asc) files in QGIS?

I have an .asc file and I want to import in QGIS. The standard way to open it is from "add Raster layer" ("import Raster Layer") but is there another way? I need to convert the .asc file to .tif or ...
17
votes
3answers
14k views

How do I change geotiff “no data” color to white/transparent rather than black?

I am preparing data for inclusion into a geonetwork node, where the maps are displayed via geoserver. The problem is that cells that have"no data" are displaying as black in the geotiff and I am ...
10
votes
2answers
22k views

Obtain coordinates and corresponding pixel values from GeoTiff using python gdal and save them as numpy array

How can I obtain projected coordinates as well as the actual pixel values at those coordinates from a GeoTiff file and then save them into a numpy array? I have arsenci020l.tif file, and its ...
9
votes
1answer
5k views

Is there image editing software that will not alter a GeoTIFF's embedded georeferencing?

I know there are a couple workarounds for this but I was hoping a direct solution exists. I am looking for an image editor (like Photoshop but hopefully free software) which can be used to edit ...
9
votes
3answers
4k views

Filtering out canopies and buildings from DSM to have a bare earth elevation

Can anyone suggest methods in filtering out trees and buildings from a DSM so as to come up with a reliable DEM? What I have is a grid from a LIDAR data (.tif file, with 1m resolution). I was going ...
5
votes
2answers
7k views

Understanding GeoTIFF tags?

I'm trying to understand GeoTIFF info, but not getting far. For instance, using listgeo with one file I can get this output: Geotiff_Information: Version: 1 Key_Revision: 1.0 Tagged_Information:...
4
votes
1answer
1k views

Changing projection of geotiff file (raster data) in QGIS?

After downloading an SRTM geotiff (DEM) from USGS's website, I would like to convert it from GCS to a projected coordinate system. After opening it in QGIS: Is that enough if I simply just click on '...
10
votes
1answer
7k views

How to import GeoTIFF via postGIS into GeoServer?

As a simple test case, I'm trying to configure the software stack of OpenGeo such that I can display a GeoTIFF as an overlay to a normal map like OSM. So I perform the following steps: Create a ...
6
votes
3answers
20k views

Create a Raster file out of a ASCII grid file?

im using a special system to do geomagnetic surveys. Its software let me output the information as image files, ASCII or in its own proprietary file format. Now i want to get its information in my GIS ...
6
votes
2answers
4k views

GDAL rotate DEM

Is it possible using any of the command line GDL tools such as gdalwarp, etc to perform a rotation of DEM data - a GeoTiff for example? Anyone know how to do this? UPDATE1 After clearing out ...
5
votes
2answers
2k views

Converting TIFF file to LAS file in QGIS?

I've been asked by a client to compile LiDAR files (currently in GeoTiff format) into a LAS dataset. Is this possible within QGIS? I have downloaded LAStools, but I'm still fairly new to LiDAR so ...
4
votes
3answers
5k views

Use GDAL command line to copy projections

I have two images, a georeferenced Tiff and a second Tiff without a reference. The second image is a copy of the first, but it lost its reference. Now, I want to copy the reference from the first Tiff ...
4
votes
2answers
2k views

Converting 4-band TIF to PNG while keeping all 4 bands?

I have a number of aerial photos containing both RGB and a near-infrared band. The images are in TIF-format, however I need to convert them to PNG without losing any of the bands. I have tried ...
3
votes
1answer
1k views

gdal2tiles generates small picture inside 256x256 tile

I've used gdal2tiles for generating tiles in number of different polar projections and always experienced the same problem — strange small picture inside normal 256x256 png with the rest of space ...
1
vote
1answer
180 views

Using GDALwarp for reprojecting netCDF file?

I am trying to re-project a netCDF file using the gdalwarp command. However, the gdalwarp is giving me a black output. Below is my code: import gdal import osr import netCDF4 from osgeo.gdalconst ...
1
vote
1answer
2k views

How to remove black box around georeferenced grayscale image in QGIS?

i'am trying to georeference a grayscale image (*.tif) in QGIS 2.2.0 Valmeria. It is working but QGIS draws a black box around the georeferenced raster image. If i use the option set 0 transparent, not ...
0
votes
1answer
316 views

Erase shapefile (polygon) area from GeoTIFF

I've been reading several posts to do so and one option would be to use gdalwarp -cutline, but I would need to keep what it is NOT inside the polygon area. GDAL or any command-line tool does that?
11
votes
4answers
1k views

Best way to manage large number of GeoTIFF rasters?

I have around 2-3000 1-bit GeoTIFFs of size 11000x9400. Color 0 should be transparent, and QGIS gets it wrong in the first place, so I used a .vrt file to set all the parameters in one single place. ...
9
votes
2answers
3k views

Creating image with specific latitude/longitude positions using GDAL?

I have an ASCII file with latitude, longitude, and data_val in the following format. 35-13.643782N, 080-57.190157W, 118.6 ... I have a GeoTiff image file, and I can easily view it. I want to place ...
7
votes
2answers
15k views

QGIS raster GeoTIFF file covert to kml?

I have a NDVI image, which I Geo-referenced in QGIS (raster). Now I have to open the image in Google Earth - how do I convert the GeoTIFF raster file to a kml file in QGIS, so that I can open the ...
7
votes
7answers
11k views

Creating Store in GeoServer using ImageMosaic Plugin gives Error?

I am creating a GeoServer 2.4.1 store with GeoTiffs using the Image Mosaic Plugin and I get the following error when pressing the button Could not list layers for this store, an error occurred ...
6
votes
1answer
3k views

gdal_translate- why jpg compressed tif is 2 times greater than jpg file?

Using the following two commands yields completely different file sizes: gdal_translate test.tif -of GTiff -co "COMPRESS=JPEG" -co "JPEG_QUALITY=100" output.tif and gdal_translate test.tif -of JPEG ...
6
votes
2answers
8k views

Convert PNG to GeoTiff using GDAL

I have a map portion PNG and its associated PRJ file. I want to convert the PNG to a GeoTIFF. I know how to convert a PNG to a GeoTiff if the bounding box is available: gdal_translate -of Gtiff -...