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

feat: fix order for footprint vs bbox and other cr requests #46

Merged
merged 13 commits into from
Dec 19, 2022

Conversation

asafMasa
Copy link
Contributor

Question Answer
Bug fix
New feature
Breaking change
Deprecations
Documentation
Tests added
Chore

@asafMasa asafMasa marked this pull request as ready for review December 17, 2022 21:55
private sanitizeBbox(bbox: BBox, footprint: Polygon | MultiPolygon, zoom: number): BBox2d | null {
const intersaction = intersect(bboxPolygon(bbox), footprint);

private isAPolygon(obj?: object): obj is Polygon {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add logic to assert valid footprint, in case of failure throw 400

}

// eslint-disable-next-line @typescript-eslint/no-var-requires
const geojsonhint: IHinter = require('@mapbox/geojsonhint') as IHinter;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why it isn't on top with other importing?

@asafMasa asafMasa merged commit 1532109 into master Dec 19, 2022
@asafMasa asafMasa deleted the fix-bbox-logic branch December 19, 2022 10:35
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

Successfully merging this pull request may close these issues.

3 participants