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
- ubuntu questing: pktools 2.6.7.6+ds-6build4
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms