Hello,

I am a little bit late to the discussion, but this type of question is a 
typical use case for the “Select by Location” processing tool. In your case you 
would import your CSV data and the countries into a QGIS project. After that 
you can run the “Select by Location” processing tool and define criteria like 
intersects, within et al. Run the tool and it will select all points from your 
CSV that will match the criteria, you can then go ahead and save the selection 
as a new layer (Shapefile, CSV or something else). Make sure to tick the “Save 
only selected features” though.

HTH
Frank

Dipl. Geogr. Frank Broniewski
Waldhölzbacher Str. 51
66679 Losheim am See
06872 509 068 4
0176 611 26 9 2 6
www.frankbroniewski.com

Von: Qgis-user <qgis-user-boun...@lists.osgeo.org> Im Auftrag von Steve Research
Gesendet: Dienstag, 27. März 2018 15:05
An: Alexandre Neto <senhor.n...@gmail.com>
Cc: qgis-user@lists.osgeo.org
Betreff: Re: [Qgis-user] clipping csv data to shapefile

Thanks Alexandre,

I had done this for the Europe layer but did it again for both the data and 
coast layers.

Removed all other layers and ran the clip again.

That has worked perfectly.

Cheers
Steve

On 27 Mar 2018, at 08:10, Alexandre Neto 
<senhor.n...@gmail.com<mailto:senhor.n...@gmail.com>> wrote:
In that case, your Europe shape was not well projected. Setting the CRS at the 
project is not enough.

Set it back to the original CRS, then use the save as tool on the layer to 
reproject to WGS84.

If you are in QGIS 3, I think you no longer need to use the same CRS on both 
layers.

A ter, 27/03/2018, 07:54, Steve Research 
<stevesteveresea...@gmail.com<mailto:stevesteveresea...@gmail.com>> escreveu:
Thanks Alexandre,

I have tried that but it is odd. I have plant world distribution data (lat and 
long) in a csv which I have as a WGS84 vector layer. I have a European shp file 
which is converted to WGS84. If I clip the world data layer to the Europe shp I 
end up with a new, but blank, vector layer.

Cheers
Steve



On 26 Mar 2018, at 22:25, Alexandre Neto 
<senhor.n...@gmail.com<mailto:senhor.n...@gmail.com>> wrote:
Hi Steve,

In the processing toolbox search for clip.

set the csv as the input layer, and the world ?countries? shapefile as clip 
layer.

Hope it helps

Steve Research 
<stevesteveresea...@gmail.com<mailto:stevesteveresea...@gmail.com>> escreveu no 
dia segunda, 26/03/2018 às 21:31:
I have some plants distribution data (from GBIF) in CSV format.

I added this to my world map shapefile (Layer\Add Layer\Add Delimited Text 
layer).

Some records are outside of the coastline.

How can I clip this CSV data to the coastline?

Regards,
Steve
_______________________________________________
Qgis-user mailing list
Qgis-user@lists.osgeo.org<mailto:Qgis-user@lists.osgeo.org>
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
--
Alexandre Neto
---------------------
@AlexNetoGeo
http://sigsemgrilhetas.wordpress.com
http://gisunchained.wordpress.com
--
Alexandre Neto
---------------------
@AlexNetoGeo
http://sigsemgrilhetas.wordpress.com
http://gisunchained.wordpress.com
_______________________________________________
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Reply via email to