Opened 10 years ago

Last modified 8 months ago

#977 new enhancement

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

Reported by: marisn Owned by: grass-dev@…
Priority: minor Milestone: 7.6.2
Component: wxGUI Version: svn-trunk
Keywords: wxgui Cc:
CPU: Unspecified Platform: Unspecified

Description

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.

Change History (12)

comment:1 Changed 10 years ago by hamish

Milestone: 6.4.07.0.0
Version: svn-releasebranch64svn-trunk

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

comment:2 Changed 10 years ago by marisn

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.

comment:3 Changed 9 years ago by hamish

see also #822

comment:4 Changed 4 years ago by martinl

Milestone: 7.0.07.0.5

comment:5 Changed 3 years ago by martinl

Milestone: 7.0.57.3.0

comment:6 Changed 3 years ago by kuszinger

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.

comment:7 Changed 3 years ago by martinl

Milestone: 7.3.07.4.0

Milestone renamed

comment:8 Changed 22 months ago by neteler

Milestone: 7.4.07.4.1

Ticket retargeted after milestone closed

comment:9 Changed 17 months ago by neteler

Milestone: 7.4.17.4.2

comment:10 Changed 14 months ago by martinl

Milestone: 7.4.27.6.0

All enhancement tickets should be assigned to 7.6 milestone.

comment:11 Changed 10 months ago by martinl

Milestone: 7.6.07.6.1

Ticket retargeted after milestone closed

comment:12 Changed 8 months ago by martinl

Milestone: 7.6.17.6.2

Ticket retargeted after milestone closed

Note: See TracTickets for help on using tickets.