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
35
votes
5answers
10k views

Reprojecting raster from 0 360 to -180 180 with cutting 180 meridian using gdalwarp

I have a geotiff raster image that has a coordinate system with longitudes from 0 to 360. The horizontal center of the image is 180 longitude. See image below: I want to transform it to EPSG:4326 SRS ...
16
votes
4answers
16k 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?
20
votes
1answer
6k 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 ...
13
votes
2answers
12k 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 ...
1
vote
1answer
1k 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 ...
57
votes
8answers
24k 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 ...
14
votes
2answers
22k 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
17k 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 ...
12
votes
7answers
49k 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
20k 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!
11
votes
2answers
11k 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. ...
14
votes
2answers
10k 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
6answers
20k 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 ...
10
votes
2answers
7k 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 ...
6
votes
2answers
13k 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 ...
6
votes
3answers
12k 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), ...
6
votes
5answers
5k 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 ...
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. ...
16
votes
5answers
25k views

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

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?
5
votes
3answers
21k 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
10k 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 ...
3
votes
2answers
4k 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
1answer
1k views

Changing background color to transparent in GeoServer?

How to set the background color to transparent. I want use style which describe in *.sld file for all my photo with tif format. How to do that?
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 ...
8
votes
7answers
12k 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 ...
8
votes
2answers
18k 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 ...
2
votes
1answer
832 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 ...
15
votes
3answers
61k views

Steps to creating a GeoTIFF

First off, I'd like to mention that I'm pretty new to working with GIS, so please forgive my inexperience. My situation is as follows: I'm tasked with georectifying a set of imagery and importing ...
14
votes
2answers
30k 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
29k 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 ...
3
votes
1answer
2k views

Store GeoTIFF with color table - Python [closed]

I have a large number of GeoTIFFs for which I would like to add and store symbology as Color table. What is the easiest way for doing that? I would like to use Python, maybe with GDAL.
18
votes
3answers
15k 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
28k 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 ...
10
votes
3answers
5k 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 ...
6
votes
1answer
2k 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 '...
5
votes
2answers
8k 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:...
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 ...
9
votes
3answers
24k views

Create a Raster file out of a ASCII grid file?

I'm using a special system to do geomagnetic surveys. The software let's me output the information as image files, ASCII grid or in its own proprietary file format. Now I want to get its information ...
7
votes
4answers
7k views

Replacing NaN pixel values in GeoTIFF using GDAL?

I was wondering if there is a easy way (GDAL) to replace GeoTIFF pixels that are -nan with a different value (e.g. 100)? I tried gdal_calc.py -A my.tif --outfile=result.tif --calc="A-(A==-nan)*(-...
7
votes
2answers
6k 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 ...
6
votes
2answers
3k 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 ...
5
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 ...
4
votes
3answers
6k 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 ...
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 ...
2
votes
1answer
704 views

List of lat-long, need values in a raster

Apologies in advance as I am not a GIS specialist by any means. I have a set of 1 million points and I'm trying to find their values in a geotiff raster. I've tried various versions of this answer ...
2
votes
1answer
3k views

How to replicate gdalwarp -cutline in Python to cut out tif image based on the extents.kml file

In my python code I run the following command: command = 'gdalwarp rgb.tif rgb_output_cut.tif -cutline extent.kml -dstnodata 0 -q' os.system(command) This cuts rgb.tif based on the extents specified ...
1
vote
0answers
179 views

Calculation of mean and standard deviation of raster images in R

I have a set of raster images (GeoTIFF, Landsat 1984-2018) which I cropped with my AOI using a shapefile. Now I want to stack them and calculate the mean and standard deviation of every pixel of the ...