New answers tagged

0

You can either leave the -s_srs empty or use +proj=sinu +R=6371007.181 +nadgrids=@null +wktext gdalwarp -of GTIFF -s_srs '+proj=sinu +R=6371007.181 +nadgrids=@null +wktext' -r cubic -t_srs '+proj=longlat +datum=WGS84 +no_defs' {inputfile} {outputfile} Note that inputfile must be the full subdataset (SDS) name, which you can get from gdalinfo. For example, ...


1

Your raster and your polygon do not overlap. If they do: > r1 = raster(extent(c(107,110,38,40))) > polygon_mus <- extent(c(107, 111, 37, 40)) > cell <- extract(r1, polygon_mus) Then that works. If they don't: > r1 = raster(extent(c(112,114,38,40))) > cell <- extract(r1, polygon_mus) Error in (function (classes, fdef, mtable) : ...


0

I tried number of different things with my geotiff file, including the process of creating custom projection in Autocad to match the one used with that file but I haven't had any luck. I tried to save the raster with different coordinate system (UTM Zone 30N, WGS84) - that at least gave me a file where the insertion point in Autocad Map 3D was very close to ...


0

I believe the key problem is as you mentioned in your question, that you use OpenLayers plugin. There are two simple ways how to overcome forced CRS (EPSG 3857) by OpenLayers plugin: Convert OpenLayers layer into georeferenced image In the map window load Google Satelite (or any other) map Turn of all other layers Save map as image (Project - Save as ...


1

If you use the latest version of QGIS, it has no problem reading and displaying the tif files. You need to extract the .tif.gz files to .tif in advance using your operating systems tools. Then add the .tif to the canvas: You can extract a subregion with Raster -> Clipper by dragging a rectangle on the screen, or specifying a bounding box in the map ...


0

Not an answer as such, but a couple of tips. You can merge all files in a directory if you check the 'use input directory instead of files' option in the Merge dialog. I do this all the time for OS open data, which comes in folders with 100 images each. If you're having problems calling Merge from QGIS, I suggest you fill in the merge dialog, but don't ...


0

I don't know if this is a mistake (NED = geotiff('nedwashtenaw.tif') Align NED data with LS8 data) but from pyGTiff import geotiff import numpy as np LS8 = geotiff('LC80200312014149LGN00/LC80200312014149LGN00_B5_subset.TIF') NED = geotiff('nedwashtenaw.tif') # Align NED data with LS8 data NEDn = LS8.intersect(NED,nodata=[0],resampleType=2) New I ...


2

The tutorial in the answer posted by Venug uses the Raster > Miscellaneous > Merge functionality. What I don't like about that method is that it requires you to find the files you want to merge in your file system. This can be tedious in a directory with hundreds of files. I prefer to use the Processing tools, which use the layers as inputs. Here I have an ...


2

I hope below link will help you to complete the task as you want.. http://www.qgistutorials.com/en/docs/raster_mosaicing_and_clipping.html


0

I downloaded 2 files B01-4700.tiff and B01-4700.TFwx. renamed B01-4700.TFWx into B01-4700.TFw defined projection as GCS_WGS_1984 RESULT:


0

I have found the problem with the GTiff driver. The problem is that I was not assigning a noDataValue to band2. There is a difference between the GTiff and the MEM drivers. When left unassigned, in the Gtiff driver assigns a nodatavalue for band2 to be equal to band1 noDataValue. However, the MEM driver does not. This inconsistency should be fixed. ...


1

I believe it is possible, but probably not very accurate. Multiple elevations do not have same RGB value if the ramp is continuous and not like having red at both extremes. I would probably start by reducing the number of colors and saving the result into a paletted image by using rgb2pct-py. Then, I would vectorize the paletted version with ...


0

Problem solved. Geoserver had problems with the projection. The tiffs were in EPSG:32633. It works after reprojecting the tiffs to EPSG:3857.


2

--- gdal --- use gdal_contour function. documentation here ---- ArcGIS version----- posted before the software was specified Assuming you are using ArcGIS: 1. Convert the GeoTiff into ESRI GRID (esri raster format) using raster to other formats function, or simply import it in arcGIS and use save (export data) and save it as ESRI GRID. 2. use the Contour ...



Top 50 recent answers are included