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

Part 4: reduce server response size #738

Open
benoitdm-oslandia opened this issue Jul 12, 2022 · 5 comments
Open

Part 4: reduce server response size #738

benoitdm-oslandia opened this issue Jul 12, 2022 · 5 comments

Comments

@benoitdm-oslandia
Copy link

For features with big geometry, what kind of mechanism do you suggest to apply to avoid the server sends the whole geometry when the user ask for {landingPageUri}/collections/{collectionId}/items? This is also the case when the user GET a single feature or PATCH a feature with only one property (says color) and receive in response the whole geometry WKT.

Is there some kind of Level Of Detail mechanism or a parameter on the request to specify the wanted properties in response?

@cportele
Copy link
Member

These capabilities are on our roadmap (as two separate extensions):

Property selection

Geometry simplification

@benoitdm-oslandia
Copy link
Author

@cportele Great proposals!

May I suggest to avoid negate word in var name as it tends to bring confusion: you could replace skipGeometry by addGeometry or enableGeometry.

I thinks we will implement these extensions in our next developments.

@cportele
Copy link
Member

@benoitdm-oslandia

avoid negate word

Both options are not really optimal (skip=true fails "avoid negatives in names for standalone variables" and enable=false fails "always choose names that enable setting false by default"). Anyhow, from initial discussions it seems that most would prefer to treat the geometry property like any other property and include it in properties (or not).

Thank you for the feedback!

@benoitdm-oslandia
Copy link
Author

@cportele you're right! It looks like a better solution to treat the geometry property like any other property!

Thanks!

Part 4: Create, Replace, Update and Delete automation moved this from To do to Done Jul 12, 2022
@benoitdm-oslandia
Copy link
Author

Hi @cportele,

I am rolling back my thoughts for the property selection, do you think it will be possible to have an excluded-properties parameter?

It can be useful when only a small sub set of properties needs to be avoided instead to list all displayable properties (as it can be a long list depending on the feature).

This property will be or-exclusive with the properties parameter.

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

No branches or pull requests

2 participants