ccrook / QGIS-Contour-Plugin

Contour plugin for QGIS - uses python matplotlib to generate contours of data on vector point data.
43 stars 13 forks source link

if the point data has a shape can the contours be made to stay inside the shape? #22

Closed TheSQLWhisperer closed 6 years ago

TheSQLWhisperer commented 6 years ago

For instance I have point data for Japan northern island. I would like the contours to remain inside the point data (i.e. only connect points that are some distance apart or smaller). Is there a way to do this in the code?

image

ccrook commented 6 years ago

Hi @karapuzo. The plugin doesn't do this at the moment. If you have the outline of the area as a polygon you could trim the contours to that polygon after they have been calculated. Or you could build a polygon by buffering the data points and then using that. An alternative to trimming I have used for visualisation is to put the polygon layer on top of the contour layer and use the "inverted polygon" renderer to mask out the contours outside the polygon.

TheSQLWhisperer commented 6 years ago

@ccrook I will give it a try, Thank you.