georust / geozero

Zero-Copy reading and writing of geospatial data.
Apache License 2.0
336 stars 33 forks source link

Event API #26

Closed pka closed 1 year ago

pka commented 2 years ago

This PR adds an event API, which should eventually replace the direct method call API. Main advandages are:

Next steps:

michaelkirk commented 2 years ago

I'm hoping this is related to https://github.com/georust/geozero/pull/22#issuecomment-1115135463

I'm eager to see how it shakes out - let me know if you'd like me to test something.

pka commented 2 years ago

It's slowly getting serious! Chaining like in #22 now supported.

pka commented 2 years ago

It's slowly getting serious! Chaining like in #22 now supported.

Nice! I've just taken a quick look at it, and it seems promising!

Do you think it's ready to attempt something like #36 (comment)? I can give it a try if you think so.

Will have to support the event API in a format writer first. What's your favorite output format you want apply reprojection? geo-types?

michaelkirk commented 2 years ago

Will have to support the event API in a format writer first. What's your favorite output format you want apply reprojection? geo-types?

geo-types would be great!

pka commented 2 years ago

Testing the event API by implementing it for the FlatGeoBuf writer resulted in some major changes (e.g. bd3f1dd) and the following open points:

Ideas to investigate:

pka commented 1 year ago

Experimental branch is kept in https://github.com/pka/geozero/tree/event-api