I have created vector layer using GRASS tool v.snap, which resulted in a vector layer as output. I want to display the vector layer in QGIS. How can i view the vector layer created by snap tool in QGIS that is created by GRASS tool. After search on internet i found that there is a button used to Add GRASS vector layer in QGIS plugin. But in my current version that is 2.18. I did not find a option for this.

  • 2
    Assuming you used the GRASS Tool inside QGIS, next to the Run button there should be a View output button. Clicking this should load the output into QGIS. – Joseph Aug 18 '17 at 14:11
  • 1
    This is at the end of output. But i closed the results, and don't know how to add it in QGIS. – Ahsan Mukhtar Aug 18 '17 at 14:13
  • Try running v.out.ogr and select your output from the list of vector maps (which should include the output). This will export the GRASS vector layer into a shapefile which you can then load into QGIS. – Joseph Aug 18 '17 at 14:16
  • I tried that and it created the shapefile. But ultimately i have to export it back to postgreSQL database, but that encountered the attributes problem. Previously it was resolved by viewing the output file in QGIS and the export it using DbManager of PostgreSQL. – Ahsan Mukhtar Aug 18 '17 at 14:20
  • Good thing there is the v.out.ogr.pg module which exports the vector map directly to PostgreSQL ;) – Joseph Aug 18 '17 at 14:23

Your Answer

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

Browse other questions tagged or ask your own question.