<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Hi,</p>
<p>Ok what you want to do is to sample a raster with data points
(and not merge two rasters). This mean you have a csv of points
and a raster with values. You want the values of the raster to be
added to a column in the csv. When you open both layers, do they
appear to be well placed in space (georeferenced) and one on top
of the other? If not, right click on the layer in the layer panel
and go to "set CRS/Set layer CRS". Once both layers are in the
correct CRS, they should be one on top of the other. <br>
</p>
<p>Then used the Processing tool (sample raster values) or install
the Point Sampling tool. Both are plugins that need to be
activated under the plugins menu but the Point Sampling tool will
need to be installed first. You will need to save the CSV in
another format because you cannot write to a CSV. Use Shp or
better, Geopackage.<br>
</p>
<p>Nicolas<br>
</p>
<p><br>
</p>
<div class="moz-cite-prefix">On 2020-05-06 10:48 a.m., Nikos Benos
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAJw3XZ4xNZGcsq4tqJf1wTs55jAbpG52K2LoUsZOMxqdHdhY2Q@mail.gmail.com">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<div dir="ltr">
<div>Dear Nicolas,</div>
<div><br>
</div>
<div>I have used the following methodology</div>
<div><a
href="https://www.qgistutorials.com/en/docs/3/sampling_raster_data.html"
moz-do-not-send="true">https://www.qgistutorials.com/en/docs/3/sampling_raster_data.html</a></div>
<div>It works fine, but the problem is that the coordinates of
the tiff file are in different scale than the coordinates of
the csv file.</div>
<div>If I convert my csv file (list of points with their
coordinates) in raster file, how will I combine 2 raster files
to produce an excel file?</div>
<div>Thank you very much in advance for your help.</div>
<div><br>
</div>
<div>Best,</div>
<div>Nikos<br>
</div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">Στις Τετ, 6 Μαΐ 2020 στις 4:36
μ.μ., ο/η Nicolas Cadieux <<a
href="mailto:nicolas.cadieux@archeotec.ca"
moz-do-not-send="true">nicolas.cadieux@archeotec.ca</a>>
έγραψε:<br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div dir="auto">Hi,
<div><br>
<div>You can save a file and reproject it by changing the
coordinates reference system (CRS). That would change
the coordinates (and the data dependent on the method
used). However, the is the csv a vector file (a file
with a list of points for example) or is it a true
raster file (a matrix). If it’s a vector file, you will
need to change it as a raster. Look for rasterize or «
vector to raster ». Google it to understand the
differences between raster and vector.<br>
<br>
<div dir="ltr">Nicolas Cadieux
<div>Ça va bien aller!</div>
</div>
<div dir="ltr"><br>
<blockquote type="cite">Le 6 mai 2020 à 02:22, Nikos
Benos <<a href="mailto:nbenos@uoi.gr"
target="_blank" moz-do-not-send="true">nbenos@uoi.gr</a>>
a écrit :<br>
<br>
</blockquote>
</div>
<blockquote type="cite">
<div dir="ltr">
<div dir="ltr"><br>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">----------
Forwarded message ---------<br>
Από: <b class="gmail_sendername" dir="auto">Nikos
Benos</b> <span dir="auto"><<a
href="mailto:nbenos@uoi.gr"
target="_blank" moz-do-not-send="true">nbenos@uoi.gr</a>></span><br>
Date: Τρί, 5 Μαΐ 2020 στις 12:25 μ.μ.<br>
Subject: Question<br>
To: <<a
href="mailto:qgis-user@lists.osgeo.org"
target="_blank" moz-do-not-send="true">qgis-user@lists.osgeo.org</a>><br>
</div>
<br>
<br>
<div dir="ltr">
<div>Dear Sir or Madam,</div>
<div><br>
</div>
<div>I hope all is well with you. I have
converted a png file to a tiff file (when I
attached it to the e-mail, the e-mail became
too big and was not sent). I have been
trying to combine the tiff file with a csv
file with no success. The reason is that the
coordinate units are different between the 2
files. <br>
</div>
<div>Since I have constructed myself the csv
file, is there any way to transform the
coordinate units of the png file to make
them compatible to those of the csv file?<br>
</div>
<div>Thank you very much in advance for our
help and I am sorry if this is a vdery
simple question, but I am very new to QGIS.</div>
<div><br>
</div>
<div>Best regards,</div>
<div>Nikos Benos<br>
</div>
<div>-- <br>
<div dir="ltr">
<div dir="ltr">
<div>
<div dir="ltr">
<pre cols="72">Dr Nikos Benos
Associate Professor
Department of Economics
University of Ioannina
University Campus
45110 Ioannina
GREECE
Tel: +30-26510-05955
Fax: +30-26510-05092
e-mail: <a href="mailto:nbenos@uoi.gr" target="_blank" moz-do-not-send="true">nbenos@uoi.gr</a></pre>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<br clear="all">
<br>
-- <br>
<div dir="ltr">
<div dir="ltr">
<div>
<div dir="ltr">
<pre cols="72">Dr Nikos Benos
Associate Professor
Department of Economics
University of Ioannina
University Campus
45110 Ioannina
GREECE
Tel: +30-26510-05955
Fax: +30-26510-05092
e-mail: <a href="mailto:nbenos@uoi.gr" target="_blank" moz-do-not-send="true">nbenos@uoi.gr</a></pre>
</div>
</div>
</div>
</div>
</div>
<span>_______________________________________________</span><br>
<span>Qgis-user mailing list</span><br>
<span><a href="mailto:Qgis-user@lists.osgeo.org"
target="_blank" moz-do-not-send="true">Qgis-user@lists.osgeo.org</a></span><br>
<span>List info: <a
href="https://lists.osgeo.org/mailman/listinfo/qgis-user"
target="_blank" moz-do-not-send="true">https://lists.osgeo.org/mailman/listinfo/qgis-user</a></span><br>
<span>Unsubscribe: <a
href="https://lists.osgeo.org/mailman/listinfo/qgis-user"
target="_blank" moz-do-not-send="true">https://lists.osgeo.org/mailman/listinfo/qgis-user</a></span></div>
</blockquote>
</div>
</div>
</div>
</blockquote>
</div>
<br clear="all">
<br>
-- <br>
<div dir="ltr" class="gmail_signature">
<div dir="ltr">
<div>
<div dir="ltr">
<pre cols="72">Dr Nikos Benos
Associate Professor
Department of Economics
University of Ioannina
University Campus
45110 Ioannina
GREECE
Tel: +30-26510-05955
Fax: +30-26510-05092
e-mail: <a href="mailto:nbenos@uoi.gr" target="_blank" moz-do-not-send="true">nbenos@uoi.gr</a></pre>
</div>
</div>
</div>
</div>
</blockquote>
</body>
</html>