Skip to content

Conversation

@rouault
Copy link
Member

@rouault rouault commented Dec 7, 2025

…to adjust the extent to the one of actual features

Fixes #13519

@rouault rouault added this to the 3.13.0 milestone Dec 7, 2025
@rouault rouault added enhancement funded through GSP Work funded through the GDAL Sponsorship Program gdal_cli Anything related to the new 3.11 "gdal" CLI frontend labels Dec 7, 2025
@PostholerCom
Copy link

Thanks alot for doing that, Even!

It may be beneficial to update 'gdal vector rasterize' docs, so people are aware.

@rouault
Copy link
Member Author

rouault commented Dec 7, 2025

It may be beneficial to update 'gdal vector rasterize' docs, so people are aware.

I've actually added your use case as one of the examples

@rouault
Copy link
Member Author

rouault commented Dec 7, 2025

@PostholerCom
Copy link

PostholerCom commented Dec 7, 2025

Cool!

Also, rasterize is part of pipeline, now? That's a makes things muuuch easier!

Edit: nevermind, I read that wrong. ;)

…to adjust the extent to the one of actual features

Fixes OSGeo#13519
@dbaston
Copy link
Member

dbaston commented Dec 8, 2025

After skimming the implementation, I think I understand what's going on here, but when first reading the example pipeline and documentation it was not clear to me what function clip is performing here. I think that's because this PR is giving clip a new meaning.

If IGetExtent does not provide an extent that takes filtering into account, I think rasterize should either determine the extent on its own, or if this is undesirable because it would prevent streaming, the extent should be updated by gdal vector edit --update-extent or similar.

@PostholerCom
Copy link

I think rasterize should either determine the extent on its own, or if this is undesirable because it would prevent streaming, the extent should be updated by gdal vector edit --update-extent or similar.

Perhaps, ! filter should update the extent? filter by design restricts the results, maybe that should automatically update extent by results returned.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement funded through GSP Work funded through the GDAL Sponsorship Program gdal_cli Anything related to the new 3.11 "gdal" CLI frontend

Projects

None yet

Development

Successfully merging this pull request may close these issues.

gdal vector rasterize - clip to requested geometry, not source dataset

3 participants