Re: [Qgis-user] Is location info included in metadata when save an image file?

2019-06-04 Thread Kirk Schmidt
Ert: With a jpg or png file, the coordinate data are stored in the world file (a simple text file with the pixel x gsd , rotation,pixel y gsd, x coordinate, top left, y coordinate top left - see sample below).  For a pdf, the coordinate data is stored within the pdf and you would have to

Re: [Qgis-user] Is location info included in metadata when save an image file?

2019-06-04 Thread Alex M
Nyall, I just did a test like Kirk png and jpg do not contain EXIF coordinates. For the purposes of this discussion the original poster wants to know which formats drop the location data, and it appears jpg and png are safe for that purpose. I would advise that not every format will behave the

Re: [Qgis-user] Is location info included in metadata when save an image file?

2019-06-03 Thread qgis-user
As a purely empirical experiment - I exported a map canvas (the OP's goal)  to jpeg with no world file. I opened a new map and brought in the jpeg as a layer. qgis could NOT geolocate it. I would think (hope?) that if qgis were writing location data to the file it would be able to read it. This

Re: [Qgis-user] Is location info included in metadata when save an image file?

2019-06-03 Thread Nyall Dawson
On Tue, 4 Jun 2019 at 09:13, Fernando M. Roxo da Motta wrote: > > On Mon, 3 Jun 2019 11:01:06 -0300, Kirk Schmidt > wrote: > > > > Hi Ert: > > > > You can save locational data in jpg and pdf files from within the > > Print Composer window. Under composition tab on the right hand side > > of the

Re: [Qgis-user] Is location info included in metadata when save an image file?

2019-06-03 Thread Brent Wood
JPG images can only store a gps location internally, not the geographic extent of the image. TIFF is the only conventional raster image format which supports internal geographic extent metadata. Brent Wood Programme leader: Environmental Information Delivery NIWA DDI: +64 (4) 3860529

Re: [Qgis-user] Is location info included in metadata when save an image file?

2019-06-03 Thread Fernando M. Roxo da Motta
On Mon, 3 Jun 2019 11:01:06 -0300, Kirk Schmidt wrote: > Hi Ert: > > You can save locational data in jpg and pdf files from within the > Print Composer window.  Under composition tab on the right hand side > of the window, scroll down and check the Save World File checkbox. > Export your

Re: [Qgis-user] Is location info included in metadata when save an image file?

2019-06-03 Thread Kirk Schmidt
Hi Ert: You can save locational data in jpg and pdf files from within the Print Composer window.  Under composition tab on the right hand side of the window, scroll down and check the Save World File checkbox.  Export your map/composition as a jpg or pdf and the geolocation data will be

Re: [Qgis-user] Is location info included in metadata when save an image file?

2019-06-03 Thread Ert Four
FYI, an update on this. I asked this question to the qgis developer list and Nyall Dawson indicated most image files will have location information embedded in them, here's what he wrote: yes - regardless of that setting, the outputs are georeferenced and have coordinates baked in* (*

Re: [Qgis-user] Is location info included in metadata when save an image file?

2019-06-02 Thread Ert Four
Thank you Alex and Roxo for your replies. From what I can tell the SVG and JPG files probably don't have location info in them, but it's also hard to tell what exactly the data is in some places, especially in the SVG. It looks like qgsmaprenderertask.cpp was written two years ago, which

Re: [Qgis-user] Is location info included in metadata when save an image file?

2019-06-01 Thread Fernando M. Roxo da Motta
On Thu, 30 May 2019 17:09:59 +0200 (CEST), Ert Four <4...@mailbox.org> wrote: > Does any coordinate or location data get embedded in the image file > if I use Project > Save as Image or Composer > Export as > Image/PDF/SVG? > > I'm using QGIS version 2.14.3 Essen, although I would like to know

Re: [Qgis-user] Is location info included in metadata when save an image file?

2019-05-31 Thread Alex M
The QGIS Developer list might be the better place to get confirmation. For the Save as Image I think this is the code, starting around line 106 https://github.com/qgis/QGIS/blob/736e8cbbc34ef8ea4ec935851766dd295a365b1a/src/core/qgsmaprenderertask.cpp#L106 Which appears to render an image, and

Re: [Qgis-user] Is location info included in metadata when save an image file?

2019-05-31 Thread Ert Four
Thank you, I didn't know SVG was XML/text based, I will check that out. Sometimes I will need to export a PNG or JPG. Sorry, I need to be really careful, have you or has anyone reading this read the relevant parts of the code, by chance? For now I'm taking screenshots to be sure nothing is

Re: [Qgis-user] Is location info included in metadata when save an image file?

2019-05-30 Thread Alex M
On 5/30/19 08:09, Ert Four wrote: > Does any coordinate or location data get embedded in the image file if I use > Project > Save as Image or Composer > Export as Image/PDF/SVG? > > I'm using QGIS version 2.14.3 Essen, although I would like to know about more > recent versions, too, for when I

[Qgis-user] Is location info included in metadata when save an image file?

2019-05-30 Thread Ert Four
Does any coordinate or location data get embedded in the image file if I use Project > Save as Image or Composer > Export as Image/PDF/SVG? I'm using QGIS version 2.14.3 Essen, although I would like to know about more recent versions, too, for when I upgrade later. (I'm aware of the option to