Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Polygonize wrapper #533

Open
Libbum opened this issue Apr 29, 2024 · 3 comments
Open

Polygonize wrapper #533

Libbum opened this issue Apr 29, 2024 · 3 comments

Comments

@Libbum
Copy link

Libbum commented Apr 29, 2024

Hi all, I'm looking to be able to access Polygonize. Reading through the only issue that references it (#306), I'll probably need to head down to gdal-sys to write a wrapper—something I've not done in quite a while and never in this project.

Can someone give me some pointers on how I should begin with this, an example that is similar perhaps?

@lnicola
Copy link
Member

lnicola commented Apr 29, 2024

#456 might serve as an example. It went back and forth a lot because of my nit-picking regarding the API. But GDALFPolygonize is simpler, because the DEM routines were actually a thin wrapper over the gdaldem implementation, taking command line arguments and so on. For some reason, GDALFPolygonize isn't like that, and I don't see a higher-level version.

And I don't think we support progress callbacks at this point.

@Libbum
Copy link
Author

Libbum commented Apr 29, 2024

Thanks. Either method can work, I'll take a dive into 456 then!

@lnicola
Copy link
Member

lnicola commented Apr 29, 2024

#468 is a simpler example, but not exactly the same thing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants