Hi Amira:
I'd be glad to try to help.

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:  http://lists.osgeo.org/mailman/listinfo/qgis-user
I am cc-ing your question to the list also.

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.

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.

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.

HTH,
Micha




On 29/05/2014 10:25, Amira El-Shal wrote:
Dear Ms. Micha,

I hope that this message finds you safe and sound.

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.

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).

I would like to thank you in advance for your kind cooperation.

Sincerely,
Amira El-Shal

This mail was received via Mail-SeCure System.


-- 
Micha Silver
GIS Consulting
052-3665918
http://www.surfaces.co.il

_______________________________________________
Qgis-user mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/qgis-user

Reply via email to