New answers tagged geotiff
Using the arcpy site package in Python, you can accomplish this by converting your geotiff to a raster object and using the extent and *max&*min classes. import arcpy arcpy.env.workspace = r'C:\path\to\ws' rasters = arcpy.ListRasters() for ras in rasters: f = arcpy.Raster(ras) xmin = f.extent.XMin ymin = f.extent.YMin xmax = ...
Check this thread, it worked for me https://groups.google.com/forum/#!topic/geoserver-manager-users/sa1D4kRr62A
As a related addition to people having similar problems: if your TIF only has one colour (i.e. blocks of the same exact colour, and transparent) then the min & max will be the same, and the default image may be transparent, which is confusing. If you zoom to layer extent, and you're in the right place, this may be the case. Go to styles and play around ...
I would recommend to use gdalcopyproj.py, a sample file from the GDAL repository done for this purpose as mentioned directly in the script: Duplicate the geotransform and projection metadata from one raster dataset to another, which can be useful after performing image manipulations with other software that ignores or discards georeferencing ...
Use gdalsrsinfo to get the srs of the tiff that still has the projection: gdalsrsinfo -o wkt tiffwithsrs.tiff Then copy the output and use gdal_translate to apply it to a new tiff: gdal_translate -a_srs '...' tiffwithoutsrs.tif newfixedtif.tif just paste your projection after the -a_srs option
I would use listgeo http://www.remotesensing.org/geotiff/listgeo.html and then geotifcp.
Try to choose WorldMapImage instead of GeoTIFF when choosing store, I had this problem and this was good solution.
What about file system permissions for your data directory? Is your servlet container like Tomcat or jetty able to read AND write files in the directory? I had the same error using linux. After correcting the permissions for that specific directory (chown -R tomcat7:tomcat ) everything was fine.
You can a nice tutorial about basic imagery on SAGA at this link: http://dst-iget.in/tutorials/IGET_RS_001/IGET_RS_001%20Introduction%20to%20SAGA.pdf
Thanks! Ok the function works fine, only a question. I need also to export as geotiff, but argis answer that Runtime error <type 'exceptions.TypeError'>: PageLayoutObject: Error in executing ExportToTIFF I've read in other topic that some options is only available if the export is maked in data frame, not in page layout. In the Data Driven I've set ...
Your output image will have more pixels than the sum of your input images, but this does not explain the large difference. I suggest that you look at the characteristics of your images based on gdalinfo in order to see what compression is used and check that the extents are correct. (assuming your input images have the same size, it makes 20000 * 12000 ...
Building on what @David mentioned you may use open source gdal library using python module to get image extent like this: import gdal from gdalconst import * data = gdal.Open('C:/Temp/myimage.tif',GA_ReadOnly) geoTransform = data.GetGeoTransform() minx = geoTransform maxy = geoTransform maxx = minx + geoTransform*data.RasterXSize miny = maxy + ...
Top 50 recent answers are included