New answers tagged

0

The GIMP never let me down when converting any image files. I can't really promise it will work, but it's free so it can't hurt to try. It supports TIF and TIFF, and has countless ways to automatically and/or interactively manipulate image-colors.


2

So, it appears that your TIF is in REAL32 which isn't supported by ECW. It's interesting that you're getting an error, because the writer documentation states that: Any non-eight-bit source data will be rescaled to eight-bit. However, you can force the data to be 8-bit by using a RasterInterpretationCoercer. I would set your output to RGB24 depending ...


0

As per this list the 'OziExplorer .MAP'-format is not supported for writing in GDAL. If that is not actually the format that you are after, you can probably find the one you actually are looking for on the same list.


1

If you have access to FME, you can convert to ECW fairly easily. Just connect the GeoTIFF reader to an ECW Writer.


2

It's a proprietary format, you need a paid license. ERDAS Imagine / ER Mapper ERDAS Geocompressor or GDAL with write ECW/JP2 SDK


0

My free app DogSheep can overlay a jpg or png image on top of an offline map in Mapsforge format. So far, rotation, scaling, and translation is supported. The screenshot in the Google Play store shows a 1917 map of Stanley Park overlayed on top of the modern map. https://play.google.com/store/apps/details?id=com.dogsheep


1

Personally, I've started using rasterio's windowed read/write However, you can use x and y offsets when writing your array to the output dataset. dataset.GetRasterBand(1).WriteArray(array, xoff, yoff)


1

The accepted answer is probably superior, but I just chose a quick and dirty method to merge files. First I build a index file using gdaltileindex. I then use gdal tools to returns a list of files that the bounding box intersects with. I then use gdal_merge.py to merge them the intersecting DEMs into one large dem and used the crop parameter of gdalmerge.py ...


0

Try your gdal_merge statement again this time with setting the output bands no data value using - listed here on the GDAL_Merge page -a_nodata {output_nodata_value}


0

You need to assign no data value when you run the gdal_merge using -n nodata_value. First use a value of 255, if 255 didn't work, then use a value of 0. Other software use a value of 0 as no data value, but for gdal merge it uses 255. You can refer to this answer as background on this issue.


2

You are looking for GDALRasterBand::RasterIO. For efficiency, if you are indexing multiple points, you will want to read data in blocks then index into the resulting array


2

Why does it appear squashed? In the TIFF viewer, the map is in the correct proportions. When a Google map of the same area is overlaid, it matches on-the-ground features almost exactly. Google Maps uses a spherical Mercator projection of WGS84 lat/longs, called WGS84 Web Mercator. Earth is not a sphere, so the Web Mercator projection stretches as a ...


0

I used gladinfo gdalinfo input.tif > info_about_info.txt and compared two files; one of which worked in Google Earth while the other threw the Unknown Error. I discovered that the images (who had both one band) had different data types. One featured Float64, the other one Int16. Therefore some gdalwarp to change Float64 to Int16 and that was it. ...


1

There is an experimental plugin for QGIS called "GeorefExport" that will allow you to export a Geospatial PDF (as well as other formats) maps from QGIS directly. From what I can tell, though, this plugin does not work from a Composer template, just the primary editor map frame.


5

This can be achieved with the help of GDAL's Virtual Raster Format. With this you can essentially skip the step of creating one giant DEM. The VRT will be handled by GDAL like a giant, merged DEM but is just a small XML file containing the file paths for each tile as well as some metadata. This can then be fed to gdalwarp together with a bounding box or a ...



Top 50 recent answers are included