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

Fix #1612. Extent calculation for GeoJson supported #1615

Merged
merged 3 commits into from
Mar 21, 2017

Conversation

offtherailz
Copy link
Member

Now GeoJson extent calculation support also Feature and FeatureCollection (before this only geometry was supported).

@coveralls
Copy link

Coverage Status

Coverage increased (+0.07%) to 77.187% when pulling 7597da4 on offtherailz:i1612 into e017f1d on geosolutions-it:master.

@offtherailz offtherailz requested a review from mbarto March 21, 2017 08:25
extent[2] = (ext[2] > newExtent[2]) ? ext[2] : newExtent[2];
extent[3] = (ext[3] > newExtent[3]) ? ext[3] : newExtent[3];
return [
(ext[0] < extent[0]) ? ext[0] : extent[0],
Copy link
Contributor

Choose a reason for hiding this comment

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

can we create a function with this stuff, that is repeated many times?

Copy link
Member Author

Choose a reason for hiding this comment

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

Sure, as you see the original one had many side effects. I didn't noticed they become exactly the same function after my refactor.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.1%) to 77.25% when pulling a032278 on offtherailz:i1612 into e017f1d on geosolutions-it:master.

@offtherailz offtherailz merged commit f074646 into geosolutions-it:master Mar 21, 2017
@offtherailz offtherailz deleted the i1612 branch March 21, 2018 08:57
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