Tag Info

New answers tagged

1

Your issue is rooted in a well known GDAL Python gotcha - a dataset needs to be closed for it to be written to disk. In Python this happens when the object goes out of scope and is garbage collected or when you manually dereference it. This is usually done by setting it to None or deleting it. In your particular code the error is in the last line: del ...


1

For the sake of explanation let's call your original geotiff source.tif and the manipulated version target.tif. If you use the tool arcpy.management.ExportRasterWorldFile in conjunction with source.tif it will create a world file called source.tfw that contains the tiff's georeferencing information. Assuming that target.tif has the same pixel size, extent ...


1

-a_srs just assigns the given SRS into metadata but nothing else. I believe this is what you did already and I don't know any better way for doing it: gdalbuildvrt -a_srs epsg:4326 ortho_4326.vrt ortho-*.tif gdalwarp -of VRT -s_srs epsg:4326 -t_srs epsg:3857 ortho_4326.vrt ortho_3857.vrt. There is one exception, if your final goal is to use VRT as a ...


0

Looking into your file, it has GCP points, and longitude and latitude subdatasets. But unfortunately the image is interrupted, and for the empty pixels, the coordinate values are also set to NODATA -9999. This makes the GCP interpolation impossible. A save way would be to save the subdataset to VRT format and eliminate the GCP with NODATA values, but these ...


2

there's two tasks here extract the geotag info from the EXIF in your photos rendering that info on your geotiff (or over it, as a separate point layer) From the wording, it sounds like you want to render this directly into a geotiff. This is a bit tricky. If you really do want to go down this route you'll probably need to code. I'd recommend the simpler ...


2

Try r.out.gdal. First, at the layer properties, you can see the raster data type of the original raster. Afterward, at the Modules List of next image, you have the parameters used by me for exporting the raster as *.tif. At the next image you can see that the process was successfully finished. The resulting raster (it was as I expected; without the ...


0

So, I succeed to georeference a tif file with GDAL with the use of 4 gcps (ground control points). To do this reprojection, I use gdal in command line. First, use gdal translate like this : gdal_translate -of GTiff -gcp 0 0 -6.848326 45.501053 -gcp 6862 0 -6.490975 45.501503 -gcp 0 1379 -6.762872 45.377363 -gcp 6862 1379 -6.545354 45.382523 ...


3

Use the ASCII to Raster tool. import arcpy arcpy.ASCIIToRaster_conversion("/path/to/file.asc", "/path/to/output.tif", "INTEGER") Note: A GeoTIFF is just a TIFF file with some extra metadata tags, and the only file extension that should be used for TIFFS in ArcGIS is .tif, not .tiff or .geotiff.


1

Openlayers and leaflet usually render tiles in World Mercator EPSG:3857. So you have to reproject your source file into that projection using gdalwarp, then start the tiling.


1

from this topic: QGIS just installed - styles do not work properly I had a similar error with pseudocolor properties on macboook air mid 2011 OS x 10.10.4 This solved my problem: updated matplotlib using terminal reinstalled QGIS 2.8 Wien instead of QGIS 2.10 (http://www.kyngchaos.com/software/qgis)


0

To be short, this effect is due to the fact that the geotiff is stretched to 8 bits before rendering ( I am guessing you are using JPEG as an output format). The easiest thing to do is to apply a contrast stretch upfront to bring the image to 8 bit and then publish to GeoServer. This is also going to be more performant. FYI in GeoServer 2.8 we are going to ...


0

The WGS84 geoid is not a sphere with a constant radius, but rather an ellipsoid. According to https://en.wikipedia.org/wiki/World_Geodetic_System, the ellipsoid has a = 6378137 m and b = 6356752 m. It seems that without OTFR the distance is calculated using the sphere, and with OTFR using the ellipsoid.


0

The wikipedia page for the BUFR format suggests some libraries that can be used to convert the data. (but some of the links seem to be outdated) Perhaps some of those libraries could be used to convert the data to a desired format (or to some other format that can then be converted to Geotiff/others using GDAL/OGR)?


0

It seems to me your question has two parts--1) what do the tags tell you about the coordinate system, and an implied 2) how to extract positional data based on the image's coordinate system. TAGS: L_Holcombe is right, in that the PCS (projected coordinate system) holds an EPSG code for the coordinate system that is supposed to describe the image. I prefer ...



Top 50 recent answers are included