Is it possible to use Polygonize in QGIS (GDAL) so that a line shapefile is converted to a polygon shapefile with an attribute(s) in the line file carried into the polygon file. I am trying to build an elevation polygon dataset - I downloaded data from EU-DEM, clipped and merged a few files into a new raster. Then created contours from the new raster. Now I want to create polygons - however the elevation value is not retained in the output polygon shapefile. I have said yes to the option Keep Table Structure of Line Layer. THe struture of the polygons are all fine but the value in the elevation attribute is NULL. One way around of this is to do it for each value of elevation 100, 200....up to the max. Then add an attribute and set it to the correct value - however it would be quicker if Polygonize could do it. Am I missing something here? Is this a bug in Polygonize or was it just not designed to do this? Anyone got any ideas? I am using QGIS 2.4.

  • You should rather try to create polygons directly. I hope this helps you osgeo-org.1560.x6.nabble.com/….
    – user30184
    Mar 10, 2015 at 17:42
  • Which function would you suggest? QGIS raster to vector (polygonize) won't work because it creates polygons joining areas of equal value. With elevation data, i need to create polygons of 100m, 200m etc...
    – Aquamarine
    Mar 10, 2015 at 18:21
  • Wasn't there something about GRASS in the thread I linked?
    – user30184
    Mar 10, 2015 at 18:49
  • Sorry - i didn't notice the link! I will check that out - thanks
    – Aquamarine
    Mar 10, 2015 at 19:24
  • That link is now dead. It would be nice to have any updates on this posted here.
    – Akaisteph7
    Oct 13, 2022 at 15:28


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.