Tag Info

Hot answers tagged

3

The tags you're interested in are: ModelTiepointTag, ModelPixelScaleTag, and ModelTransformationTag. The specification describes how they stored the information: http://www.remotesensing.org/geotiff/spec/geotiff2.6.html#2.6.1 You could have a look at how GDAL implements them in this file: ...


3

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 ...


2

I think this is best left up to the authorities. However, from a GIS perspective, a location is given. That's about it. From a crime analysis perspective, if the technology is available (more than certainly it is) the police could track cellphone GPS locations that were in that area at the time. As another reddit user posted they could potentially track ...


2

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


2

I would use listgeo http://www.remotesensing.org/geotiff/listgeo.html and then geotifcp.


2

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 = ...


2

As suggested by user30184, the best method is probably manually your contour lines except if you have dozens of images. For some automation with ArcGIS, you can try to reclassify your tif in order to isolate the contour (it it has a specific colour), then (if you have the licence) do our digitization with the help of ArcScan. If you don't have ArcScan but ...


1

Probably the easiest thing to do is use gdal_translate to create the resized image with something like: gdal_translate -outside 50% in.tif in.small.tif But if you do need to use ImageMagick, try translating your raster to a VRT first: gdal_translate in.tif in.vrt The resulting XML document should include all the relevant metadata, including the ...


1

If you save the Geotiff to png format using gdal_translate, an additional file with the extension.aux.xml will be written. It contains the metadata that your target format does not know. So it should be possible to process your image with ImageMagick, and use the information in the .aux.xml file afterwards.


1

You can certainly use GeoTools for this, you will also probably want to look at a relsted project JAITools which does helpful things with rasters. I wrote some code a while back to rasterize circles on to a Grid and output them as GeoTiffs which should point you in the right direction.



Only top voted, non community-wiki answers of a minimum length are eligible