Thursday 30 January 2020

qgis - Line to polygon conversion


Currently we are working in a geological project..in which all the Contacts, Linear & some other geological features have to be captured.


The thing is most of the features have to be Captured as "Line" and then it has to be converted to "Polygon". So that we don't have to repeat the digitization for features like Contact....


1) Is it not at all possible in Qgis to Snap a line with the same line ? like that of in AutoCAD, Mapinfo..?? (Image 1)


2) I've captured a polygon as two separate lines...and when i use "Line to Polygon" (Enclose in the case of Mapinfo)....it actually creates two polygons instead of one single entity. Is it a bug ? (Image 2)



I am trying to convince some of colleagues (and the management as well) to switch over to QGIS..atleast in few systems...So i am trying to figure out the available functionalities in QGIS as that of MapInfo. So any sort of feedback will be of great help.


enter image description here


enter image description here


Update: Polygonize command does the trick of converting the two separate lines into one single polygon feature...(Image 2).



Answer



You can snap a line to itself, but only after saving.


My workaround is to digitize the line, but set the last point a bit offset to the first point, then save, and then move the last point to the first.


As a consequnce, I start digitizing a new closed line with a point that is already created by another adjacent polygon if possible.


No comments:

Post a Comment

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...