-
Notifications
You must be signed in to change notification settings - Fork 171
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
rename /crop endpoints to /bbox or /feature #704
Conversation
src/titiler/core/pyproject.toml
Outdated
@@ -33,7 +33,8 @@ dependencies = [ | |||
"geojson-pydantic>=1.0,<2.0", | |||
"jinja2>=2.11.2,<4.0.0", | |||
"numpy", | |||
"pydantic~=2.0", | |||
# https://github.com/pydantic/pydantic/pull/7653 | |||
"pydantic==2.3", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ref #703
This will be fixed with pydantic 2.4.2
@@ -320,6 +320,20 @@ def __post_init__(self): | |||
self.max_size = None | |||
|
|||
|
|||
@dataclass | |||
class PartFeatureParams(DefaultDependency): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
New Dependency for /bbox
, /feature
and /statistics [POST]
endpoint where we don't set max_size
default
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PartFeatureParams
is a confusing name but I can't really thing of anything better myself 🤷
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
closes #702
This PR does:
/crop
endpoints to both/bbox
and/feature
endpoint breakingimg_dependency
withimg_preview_dependency
andimg_part_dependency
breaking1024
default formax_size
when usingbbox
andfeature
endpoints