I'm new using QGIS (version 3.22) and I think my doubt is simple, but I didn't find any answer.

I have a vector shapefile from Brazil like this: https://geoftp.ibge.gov.br/organizacao_do_territorio/malhas_territoriais/malhas_municipais/municipio_2020/Brasil/BR/BR_UF_2020.zip.

enter image description here

And I have another shapefile with a contour like one of these: https://dados.ons.org.br/dataset/bacia_contorno.

enter image description here

I want to use the contour to crop a piece of the shapefile and get the points inside. What I want to do is cut like a "biscuit mold".

enter image description here

I tried use Vector > Geometry Tool > Clip or Intersection... but the contour is empty inside and result the same contour but not filled inside.

  • 1
    Sharing your data is great! Even better would be to additionally add a screenshot so people can immediately see what's the case without downloading the data (this is, however, great for testing purpose).
    – Babel
    Nov 12 '21 at 19:25
  • 1
    Ok! I will share!
    – MauTOz
    Nov 12 '21 at 19:26
  • 4
    I suppose that your contour is a linestring. Convert it into a polygon and try again.
    – user30184
    Nov 12 '21 at 20:54
  • Thaks! @user30184! Your tip was what I was expecting!
    – MauTOz
    Nov 12 '21 at 23:43

I followed the idea from @user30184 and found how to convert line to polygon and it solved my problem.

I only click in Vector > Geometry Tools > Lines to Polygons and selected the layer with contour.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.