landam / grass-gis-git-migration-test

0 stars 0 forks source link

WxGUI "Save display to graphic file" should write out an World file #42

Open landam opened 5 years ago

landam commented 5 years ago

Reported by marisn on 1 Mar 2010 17:37 UTC Current wxgui version tool "Save display to graphic file" creates image file without any coordinate information. As Map Canvas already has information about extent, it would be trivial to dump that information into world file and thus make simple screen dumps georeferenced. QGIS and ArcGIS support such option.

GRASS GIS version and provenance

svn-trunk

Migrated-From: https://trac.osgeo.org/grass/ticket/977

landam commented 5 years ago

Comment by hamish on 2 Mar 2010 08:21 UTC for the xmon version use 'd.out.file format=geotiff'.

while this is possible it is not necessarily a good idea. it should only be used when there is a need to composite multiple layers (scalebars, decorations, and all) into a geotiff, which is generally a solution of last resort.

from the d.out.file mane page:

       GeoTIFF export is provided as  a  convenience.  For
       raster export it is generally preferable to use the
       r.out.gdal or r.out.tiff modules. The advantage  of
       using  d.out.file  is  that  you can easily overlay
       multiple raster maps, vector maps, and  decorations
       into  the  GeoTIFF at the expense of resolution and
       quality. If  you  wish  to  minimize  the  negative
       effects, use "g.region align=" or "g.region rast=",
       then "g.region -g" or "r.info -g" to  discover  the
       raster  rows and columns of the map, and feed these
       numbers  into  d.out.file's   size   parameter   as
       columns,rows.

Hamish

landam commented 5 years ago

Comment by marisn on 2 Mar 2010 10:14 UTC It's not about GeoTIFFs but about writing out World file. It's a nice meta-data add-on. It's not meant to replace proper data export for analysis, but can serve well to keep tracks of various screen dumps.

I.e. if I want to know what (where) I was using as a sample data to create PNG image with some random content for lectures, I can simply load that PNG into QGIS and see it's location. Probably writing out some other meta data according to some ISO spec would also be fine, still World file (i.e. .pgw) is also a nice start.

landam commented 5 years ago

Comment by hamish on 6 Sep 2010 03:21 UTC see also https://trac.osgeo.org/grass/ticket/822

landam commented 5 years ago

Modified by @landam on 12 May 2016 06:44 UTC

landam commented 5 years ago

Modified by @landam on 23 Aug 2016 11:47 UTC

landam commented 5 years ago

Comment by kuszinger on 23 Aug 2016 12:22 UTC Only a short note:

When map display window is resized, the resulting image file covers the same area '''and stripes of background colour''' may appear top/bottom or at the sides.

Saving display to '''graphic file will contain''' these "empty" areas. The relation of the proposed ''world file'' area (coordinates) to the displayed area (including empty areas) should be considered and handled. The user should also be informed well about these facts.

''BTW - I wonder if there is any drawback of always painting/filling the whole display canvas. ''

landam commented 5 years ago

Comment by @landam on 27 Aug 2016 13:42 UTC Milestone renamed

landam commented 5 years ago

Comment by neteler on 26 Jan 2018 11:40 UTC Ticket retargeted after milestone closed

landam commented 5 years ago

Modified by neteler on 12 Jun 2018 20:48 UTC

landam commented 5 years ago

Comment by @landam on 25 Sep 2018 16:53 UTC All enhancement tickets should be assigned to 7.6 milestone.

landam commented 5 years ago

Comment by @landam on 25 Jan 2019 21:08 UTC Ticket retargeted after milestone closed