Skip to content

Latest commit

 

History

History
77 lines (64 loc) · 3.5 KB

wiki.md

File metadata and controls

77 lines (64 loc) · 3.5 KB

Gimp Selection Feature Plugin

Gimp Selection Feature makes it easy to create polygon from image using the Gimp selection tools.

The Gimp Selection Feature is a panel plugin that permit send the image of view of map to GIMP, and, get the region selected by GIMP how a feature in QGIS.

Steps:

  • Open GIMP :
    Run IBAMA plugin alt-text-1
    alt-text-1

  • Send image to GIMP :
    Mark the visible images that you want send to GIMP. Of course, the images need be neighbours.
    alt-text-1
    alt-text-1
    alt-text-1

  • Select region in GIMP :
    alt-text-1
    Use the tools for select a region inside image.
    alt-text-1
    Select the tool that you want.
    In example, the "Fuzzy Select" tool and removes the holes.
    alt-text-1

  • Get features :
    alt-text-1
    The button "Get Features" get the selection region how a feature in QGIS, creating the "gimp_selection" layer(polygon) if not exists.
    The settings:

    • Annotation: The text to use for identify the polygon.
    • Remove area: The maximum size of area that will be remove.
    • Remove vertex: The limit angle between neighbours vertex, below this value the vertices will be remove.
    • Smooth(Chaikin algorithm):
    • Level: Number of interations.
    • Fraction of line: Percentage of line to begin create vertex.
    • Ajust the borders: Remove overlap and gap between the borders between the new and the exists geometries.
  • Getting the first feature: alt-text-1

  • Increase the "Remove area"(500 pixels), "Remove last features" and "Get features" again:
    alt-text-1

Attributes of gimp_selection layer:

alt-text-1

  • id_add: The index of the feature added.
  • total_imgs: Total of images sent to GIMP.
  • images: The list of image(name and source)
  • user: The name of user of machine.
  • date_add: The date of the feature added.
  • crs_map: CRS of map when the image was sent.
  • extent_map: The extent of map when the image was sent.
  • annotation: The text typed when the image was sent.
  • area_ha: The hectare of geometry(it is a virtual field)
    alt-text-1

Considerations:

  • The GIMP version tested was 2.10.8.
  • The CRS of 'gimp_selection' layer is EPSG:4326
  • If gimp_selection layer is visible, it is can send together with images.
    alt-text-1 alt-text-1
  • Example of "Adjust the borders"
    • "Send image" with 'gimp_selection' layer.
      alt-text-1
    • Create a selected region Create a selected region that is neighbor of other in Gimp.
      alt-text-1
    • Get features without adjust(Overlap and Gaps). alt-text-1
    • "Remove last features", "Adjust the borders" and "Get features" again. alt-text-1