I just saw that a RasterToVectorOp is coming in SNAP 12. Cool.
I took a closer look and found three issue that I would like to draw your attention to. I haven’t tested or investigated the code deeply. But following just some thoughts.
- First, the
MapIntegerRangeConverterfor theQuantizationOpuses line separation. That might make it difficult to specify on the command line, so it would only work with a graph. I think another format would be better. - The JAI Vectorize operator in
RasterToVectorOpis called for each tile. If I understand it correctly, it is executed at once for the entire image anyway. So, it could be moved todoExecuteorexecuteOp. - Then there are problems with counting the tiles. On the one hand, the tiling of the images does not necessarily have to follow the preferredTiling, and counting the calls to computeTile is also not correct. Tiles might be computed multiple times, while others not at all, or only much later, at least in the GUI. But this would be solved anyway if vectorization is moved to
doExecute.