Questions tagged [geotiff]

GeoTIFF is a public domain metadata standard which allows georeferencing information to be embedded within a TIFF file.

GeoTIFF is a public domain metadata standard which allows georeferencing information to be embedded within a TIFF file. The potential additional information includes map projection, coordinate systems, ellipsoids, datums, and everything else necessary to establish the exact spatial reference for the file. The GeoTIFF format is fully compliant with TIFF 6.0, so software incapable of reading and interpreting the specialized metadata will still be able to open a GeoTIFF format file

more information - http://en.wikipedia.org/wiki/GeoTIFF

505 questions
52
votes
1 answer

How to make R's 'raster' package distinguish between positive and negative rotation matrices in GeoTIFFs?

It appears that the raster package in R doesn't distinguish between positive and negative rotations of GeoTIFFs. I have a feeling that it is because R is ignoring the negative signs in the rotation matrix. I'm not quite savvy enough to dig down…
Tedward
  • 1,652
  • 15
  • 19
29
votes
4 answers

R: Write RasterStack and preserve layer names

I have a raster stack, stk, consisting of three raster images in R. Here is a simple example # set up a raster stack with three layers > library(raster) > r <- raster(nrows=10,ncols=10) > r[] <- rnorm(100) > stk <- stack(r,r,r) # layer names are…
kguay
  • 391
  • 1
  • 3
  • 7
28
votes
2 answers

What is a good GeoTiff Viewer?

I'm working with GeoTiff related files and would like to know what's a good viewer to see the outcome of my work? It needs to work on a Windows machine. Thanks.
VerticalEvent
  • 619
  • 1
  • 11
  • 18
21
votes
1 answer

How do I write/create a GeoTIFF RGB image file in python?

I have 5 numpy arrays of shape nx, ny lons.shape = (nx,ny) lats.shape = (nx,ny) reds.shape = (nx,ny) greens.shape = (nx,ny) blues.shape = (nx,ny) The reds, greens and blues arrays contain values that range from 0–255 and the lat/lon arrays are…
Andy
  • 353
  • 1
  • 2
  • 10
18
votes
5 answers

Reading hdf files into R and converting them to geoTIFF rasters

I'm trying to read MODIS 17 data files into R, manipulate them (cropping etc.) and then save them as geoTIFF's. The data files come in .hdf format and there doesn't seem to be an easy way to read them into R. Compared to other topics there isn't a…
James
  • 1,164
  • 2
  • 15
  • 36
18
votes
11 answers

Exception while using GDAL in C#

I started to use gdal_csharp dll in my application and read a geotiff file. but it says: The type initializer for 'OSGeo.GDAL.GdalPINVOKE' threw an exception. it's my code string fileName = @"/path to geotiff file"; OSGeo.GDAL.Dataset DS = …
Hossein Narimani Rad
  • 31,361
  • 18
  • 86
  • 116
12
votes
4 answers

Rasterio Source shape is inconsistent with given indexes 1

I need to save out a 3 band geotiff to file. I am currently using rasterio and when I go to write out the 3 band imagery I get the error Source shape (1, 3445, 4703, 4) is inconsistent with given indexes 1. My final goal is to be able to perform…
freegnome
  • 121
  • 1
  • 1
  • 5
11
votes
2 answers

How to use GDAL to create geotiff from tiff and 4 corners latitude and longitude

I have an image (map) without geo data in TIFF format. I need to get GeoTIFF file from my image. I have latitude and longitude for each corner of my map. How can I add my geo data to my image in Google spatial refence to get geotiff? I know that…
rowwingman
  • 5,589
  • 7
  • 33
  • 50
10
votes
1 answer

GDAL - gdalbuildvrt "tif file not recognized as a supported file format"

I am trying to create a virtual raster (VRT file), that joins a large amount of GeoTIFF rasters. I am using gdalbuildvrt command in a Windows 7 environment. Below is the syntax used. gdalbuildvrt -input_file_list C:\listing.txt -srcnodata 0…
jhc
  • 1,739
  • 3
  • 21
  • 46
9
votes
3 answers

How to read GeoTIFF file from C#

I have acquired Digital Elevation Maps(Height Map of Earth) of some area. My aim was to create Realistic Terrains. Terrain Generation is no problem. I have practiced that using VC# & XNA framework. The problem is that those Height Map Files are in…
Moon
  • 19,518
  • 56
  • 138
  • 200
9
votes
1 answer

Saving array as Geotiff using rasterio

I have the following numpy array: supervised.shape (1270, 1847) I am trying to use the following code to save it to GeoTIFF using rasterio: with rasterio.open('/my/path/ReferenceRaster.tif') as src: ras_meta = src.profile with…
GCGM
  • 901
  • 1
  • 17
  • 38
9
votes
1 answer

Convert NetCDF (.nc) to GEOTIFF

I have .nc file sizing around 300MB with a couple of datasets (TEMP, DEWPOINT) forecast data. I need to convert (TEMP) dataset to multiple GEOTIFF (one .tif for each time slice). Here is how the .nc file looks like. Looked into this answer but it…
johnny
  • 2,032
  • 1
  • 25
  • 45
8
votes
4 answers

How can I write a GEOTIFF in Java?

I want to write a GEOTIFF, with all the geographic metadata in Java. Which library etc. works best for this purpose?
Mnementh
  • 50,487
  • 48
  • 148
  • 202
7
votes
1 answer

R: reading geotiff data straight from web url (httr::GET raw content)

I would like to create a RasterLayer from GeoTIFF data provided by a server. I'll query the server for this data using a httr::GET call (the data is provided on-demand, so in the application there won't be a url ending in .tif but a query…
7
votes
1 answer

Using mosaic in r to merge multiple geotiff

I have 50 geotiff files in the same folder. All of them represent elevation data in different parts of the world. I would like to merge certain geotiff files, and I found mosaic in R might help us. I have moved those geotiff into the same folder,…
Bing-Hong Huang
  • 125
  • 1
  • 9
1
2 3
33 34