TransWikia.com

Performing reverse-clip/difference() point GeoJSON from polygon GeoJSON in QGIS?

Geographic Information Systems Asked by Pratik Yadav on December 13, 2020

I am trying to clips the points outside of a polygon GeoJSON.

In QGIS(2.18.2) vector-> geoprocessing tools -> difference deletes the geometry but keeps the attributes of the points.

The hacky way is to use vector -> research tools -> select by location to select all points inside the polygons and then delete them.

One Answer

You can select directly the points that you are interested in with "Select by location" by using the geometric predicate "disjoint". If you would rather use the Difference tool, it seems to create an empty GeometryCollection as geometry for the points which are inside a polygon.

enter image description here

You can select all those features with the "Select by expression" tool and then delete them.

enter image description here

Answered by user30184 on December 13, 2020

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP