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

--box parameter takes forever on large table #104

Open
bertt opened this issue Feb 5, 2025 · 2 comments
Open

--box parameter takes forever on large table #104

bertt opened this issue Feb 5, 2025 · 2 comments
Assignees

Comments

@bertt
Copy link

bertt commented Feb 5, 2025

Hi,

I was running Roofer with --box parameter on a large footprint table, but it takes forever as the specified box
is not used when getting the layer extent in https://github.com/3DBAG/roofer/blob/develop/src/extra/io/VectorReaderOGR.cpp#L175

Query executed:

SELECT ST_Extent("geom") FROM mytable AS ogrpgextent

I guess the box should be used in this query.

@Ylannl Ylannl self-assigned this Feb 6, 2025
@Ylannl
Copy link
Member

Ylannl commented Feb 7, 2025

Do you have a spatial index on geom here?

@bertt
Copy link
Author

bertt commented Feb 7, 2025

yes but it does not help with this query (all the geometries needs to be scanned)

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