pkpolygonize(1)

✨ NAME ✨

pkpolygonize β€” bestie, it's the little program that makes a vector file out of a raster image. glow-up for your pixels, fr fr πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

pkpolygonize -i input [-m mask] -o output [options]

🌸 DESCRIPTION 🌸

okay so, pkpolygonize takes a raster and converts it into a vector dataset. that's the whole vibe. πŸ”₯

the way it works: every single pixel in the mask band that has a value other than zero gets considered suitable for collection as polygons. that's the rule, no cap.

πŸ’‘ pro move: use the same input file as the mask to remove the background polygon. highly recommended, you'll thank me later 🫢

πŸŽ€ OPTIONS πŸŽ€

  • -i filename, --input filename β€” the input image file, aka the glow-up candidate πŸ¦‹
  • -m mask, --mask mask β€” every pixel in the mask band with a value other than zero gets considered suitable for collection as polygons. use the input file as the mask to remove the background polygon! πŸ’€ (yes, again, it matters)
  • -o filename, --output filename β€” the output vector file, your little masterpiece ✨
  • -f format, --f format β€” the output OGR file format. yes the long flag is literally --f, she's iconic like that πŸ‘‘
  • -b band, --band band β€” band index(es) to crop. leave it empty if all bands must be retained, no exceptions 🌈
  • -n fieldname, --name fieldname β€” the field name of the output layer πŸŽ€
  • -nodata value, --nodata value β€” Disgard this nodata value when creating polygons. (that's the original spelling bestie, I'm just the messenger πŸ’œ)
  • -v level, --verbose level β€” verbose mode, but only if it's > 0. zero means shhh 🀫

and that's the whole page, you ate it up πŸ“ no notes. this was the pkpolygonize(1) manual, dated 01 January 2025, source and version and everything β€” go forth and polygonize, main character πŸ’–βœ¨πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from