<html style="direction: ltr;">
<head>
<meta content="text/html; charset=windows-1255"
http-equiv="Content-Type">
<style type="text/css">body p { margin-bottom: 0cm; margin-top: 0pt; } </style>
</head>
<body style="direction: ltr;"
bidimailui-detected-decoding-type="preferred-charset"
bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Hi Amira<br>
<br>
On 29/05/2014 14:39, Amira El-Shal wrote:<br>
</div>
<blockquote
cite="mid:CAJ=5x6m28Qhaaz2uKq7E+jiu3d_JnYyhg7FvXhpTbtauBh0K0A@mail.gmail.com"
type="cite">
<div dir="ltr">Hi Micha,
<div><br>
</div>
<div>I cannot thank you enough for your prompt and illaborative
response.</div>
<div><br>
</div>
<div><span style="font-family:arial,sans-serif;font-size:13px">"On
the fly reprojection" was enabled. I disabled "On the fly
reprojection", but still the layers did not overlap
correctly.</span><br>
</div>
<div><span style="font-family:arial,sans-serif;font-size:13px"><br>
</span></div>
</div>
</blockquote>
<br>
Ah, so that's the problem, for sure.<br>
<br>
<blockquote
cite="mid:CAJ=5x6m28Qhaaz2uKq7E+jiu3d_JnYyhg7FvXhpTbtauBh0K0A@mail.gmail.com"
type="cite">
<div dir="ltr">
<div><span style="font-family:arial,sans-serif;font-size:13px">I
could not save the interview locations to a new layer, using
the CRS of the boundaries, because I do not know the CRS of
the boundaries. No </span><span
style="font-family:arial,sans-serif;font-size:13px">*.prj
file is there and I do not have access to the supplier in
the meantime. </span><span
style="font-family:arial,sans-serif;font-size:13px">I just
know the CRS of the interview locations. Therefore, I tried
to save the boundaries to the CRS of the interview
locations, but it did not work either. What is your advice?</span></div>
</div>
</blockquote>
<br>
What is the CRS of the interview locations?<br>
Is it possible to use district boundaries from another source, such
as the Global Administrative Areas website <a class="moz-txt-link-abbreviated" href="http://www.gadm.org">www.gadm.org</a>. This data
is referenced in WGS84, latitude/longitude.<br>
The data for Egypt is at:
<a class="moz-txt-link-freetext" href="http://biogeo.ucdavis.edu/data/gadm2/shp/EGY_adm.zip">http://biogeo.ucdavis.edu/data/gadm2/shp/EGY_adm.zip</a>. The first
level (adm1) data includes only the 25 Governates. Is that enough
detail for your project?<br>
<br>
Otherwise, you'll have to somehow verify the CRS of the district
boundaries. AFAIK, Egypt uses two geodetic reference system know as
"Old Egyptian" or "Egypt 1907" with code 6229. The other is called
"New Egyptian" or Egypt 1930, having code 4199. Maybe the data will
overlay correctly if you declare the layer to be in one of these
CRS? You do that by opening the layer's property window, in the
"General" tab. There, in the section on coordinate reference system,
is a button "Specify". Using this button does *not* change the data
at all, it only declares that the layer is referenced in the CRS
that you specify. If that works, and the districts with interview
locations overlay correctly, then you have probably found the right
CRS.<br>
<br>
<br>
<blockquote
cite="mid:CAJ=5x6m28Qhaaz2uKq7E+jiu3d_JnYyhg7FvXhpTbtauBh0K0A@mail.gmail.com"
type="cite">
<div dir="ltr">
<div><span style="font-family:arial,sans-serif;font-size:13px"><br>
</span></div>
<div><span style="font-family:arial,sans-serif;font-size:13px">Thank
you again.</span></div>
<div><span style="font-family:arial,sans-serif;font-size:13px"><br>
</span></div>
<div><span style="font-family:arial,sans-serif;font-size:13px">Sincerely
yours,</span></div>
<div><span style="font-family:arial,sans-serif;font-size:13px">Amira</span></div>
</div>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">On Thu, May 29, 2014 at 11:55 AM, Micha
Silver <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:micha@arava.co.il" target="_blank">micha@arava.co.il</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="direction:ltr" bgcolor="#FFFFFF" text="#000000">
<div>Hi Amira:<br>
I'd be glad to try to help.<br>
<br>
First, note that you can also post on the qgis-users
maillist. You might get better responses there. You can
signup to join that maillist here: <a
moz-do-not-send="true"
href="http://lists.osgeo.org/mailman/listinfo/qgis-user"
target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
I am cc-ing your question to the list also.<br>
<br>
Now as to spatial join. I would tend to believe that the
the error message is correct - the layers are probably
not really in the same coordinate system. Do you have
the option "On the fly reprojection" enabled? If you
disable "On the fly reprojection" do the layers still
overlap correctly? If not, then they are indeed in
different CRS. In this case, you should reproject one
of the layers to a new shapefile, and specify to save in
the CRS of the other. For example, save the interview
locations to a new layer, using the CRS of the
boundaries.<br>
<br>
Obviously you must know what the actual CRS of each
layer is to begin with. This information usually comes
in the form of a *.prj file together with the rest of
the shapefile components. If there is no *.prj file,
then you might have to contact the supplier of the data
to understand what CRS the data are located in.<br>
<br>
Now, save the interview layer to a new shapefile,
reprojected to the CRS of the boundaries. You do this
with a right-click on the layer, and choose "Save
As...". In the save dialog, choose the CRS of the
boundaries layer. So you will now have a new copy of the
interview locations, but reprojected to the CRS of the
boundaries. Now try the spatial join between the new
interview locations and the boundaries.<br>
<br>
HTH,<br>
Micha <br>
<div>
<div class="h5"> <br>
<br>
<br>
<br>
On 29/05/2014 10:25, Amira El-Shal wrote:<br>
</div>
</div>
</div>
<blockquote type="cite">
<div>
<div class="h5">
<div dir="ltr"><span
style="color:rgb(51,51,51);font-family:Arial,sans-serif;font-size:13px;line-height:17px">Dear
Ms. Micha,</span>
<div><br>
</div>
<div>I hope that this message finds you safe and
sound.<br
style="color:rgb(51,51,51);font-family:Arial,sans-serif;font-size:13px;line-height:17px">
<br
style="color:rgb(51,51,51);font-family:Arial,sans-serif;font-size:13px;line-height:17px">
<span
style="color:rgb(51,51,51);font-family:Arial,sans-serif;font-size:13px;line-height:17px">I
am doing my PhD in Health Economics.
Meanwhile, I am trying to spatially join point
layers of some 12,000 women interviewed in
Egypt to Egypt's polygon layers
(administrative districts boundaries) using
QGIS 2.2 and need some advice. Who can I ask?
I am a QGIS self-learner.</span><br
style="color:rgb(51,51,51);font-family:Arial,sans-serif;font-size:13px;line-height:17px">
<br
style="color:rgb(51,51,51);font-family:Arial,sans-serif;font-size:13px;line-height:17px">
<span
style="color:rgb(51,51,51);font-family:Arial,sans-serif;font-size:13px;line-height:17px">I
have read many QGIS manuals, but I cannot
complete the spatial join successfully. I have
added the vector layers of both Egypt's
women's GPS points and Egypt's polygons
(district boundaries). I used the UTF-8
encoding. Whenever I attempt to join
attributes by location, the following message
appears "Input layers have non-matching CRS".
However, when I check the CRS of both layers,
I found it the same (EPSG:4326 - WGS 84).</span><br
style="color:rgb(51,51,51);font-family:Arial,sans-serif;font-size:13px;line-height:17px">
<br
style="color:rgb(51,51,51);font-family:Arial,sans-serif;font-size:13px;line-height:17px">
<span
style="color:rgb(51,51,51);font-family:Arial,sans-serif;font-size:13px;line-height:17px">I
would like to thank you in advance for your
kind cooperation.</span><br
style="color:rgb(51,51,51);font-family:Arial,sans-serif;font-size:13px;line-height:17px">
<br
style="color:rgb(51,51,51);font-family:Arial,sans-serif;font-size:13px;line-height:17px">
<span
style="color:rgb(51,51,51);font-family:Arial,sans-serif;font-size:13px;line-height:17px">Sincerely,</span><br
style="color:rgb(51,51,51);font-family:Arial,sans-serif;font-size:13px;line-height:17px">
<span
style="color:rgb(51,51,51);font-family:Arial,sans-serif;font-size:13px;line-height:17px">Amira
El-Shal</span></div>
</div>
<br>
</div>
</div>
This mail was received via Mail-SeCure System.<span
class="HOEnZb"><font color="#888888"><br>
</font></span></blockquote>
<span class="HOEnZb"><font color="#888888"> <br>
<br>
<pre cols="72">--
Micha Silver
GIS Consulting
052-3665918
<a moz-do-not-send="true" href="http://www.surfaces.co.il" target="_blank">http://www.surfaces.co.il</a>
</pre>
</font></span></div>
</blockquote>
</div>
<br>
<br clear="all">
<div><br>
</div>
-- <br>
Best Regards<br>
<br>
<table border="0">
<tbody>
<tr>
<td><img moz-do-not-send="true"
src="http://www.fepslutc.org/Feps_logo.gif"></td>
<td>Faculty of Economics & Political Science<br>
Cairo University</td>
</tr>
</tbody>
</table>
<br>
<a class="moz-txt-link-freetext" href="Tel:(202)35728055-(202)35728116-(202)35736608-(202)35736605">Tel:(202)35728055-(202)35728116-(202)35736608-(202)35736605</a><br>
Fax:(202)35711020<br>
Follow us on twitter:<a moz-do-not-send="true"
href="https://twitter.com/fepsnews" target="_blank">https://twitter.com/fepsnews</a>
</div>
<br>
This mail was received via Mail-SeCure System.<br>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">--
Micha Silver
GIS Consulting
052-3665918
<a class="moz-txt-link-freetext" href="http://www.surfaces.co.il">http://www.surfaces.co.il</a>
</pre>
</body>
</html>