Skip to content

Documentation referenced geo filter does not exist #277

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

Closed
gabortim opened this issue Jan 28, 2025 · 1 comment
Closed

Documentation referenced geo filter does not exist #277

gabortim opened this issue Jan 28, 2025 · 1 comment

Comments

@gabortim
Copy link

gabortim commented Jan 28, 2025

The example code does not work for me in https://github.com/osmcode/pyosmium/blob/master/docs/user_manual/03-Working-with-Geometries.md#python-geo-interface

Traceback (most recent call last):
  File "filename.py", line 14, in <module>
    for o in osmium.FileProcessor(Path('filename.py')).with_locations().with_filter(osmium.GeoHandler()):
                                                                                    ^^^^^^^^^^^^^^^^^
AttributeError: module 'osmium' has no attribute 'GeoHandler'. Did you mean: 'BaseHandler'?

I think osmium.GeoHandler() filter does not exist, osmium.filter.GeoInterfaceFilter() should be used instead.

Using osmium 4.0.2 on Python 3.12.8.

@lonvia lonvia closed this as completed in 5c5e84a Jan 31, 2025
@lonvia
Copy link
Member

lonvia commented Jan 31, 2025

You are, of course, right. Thanks for spotting this.

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

No branches or pull requests

2 participants