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

Operator bbox fix #757

Merged
merged 6 commits into from
Sep 2, 2016
Merged

Operator bbox fix #757

merged 6 commits into from
Sep 2, 2016

Conversation

doublestranded
Copy link
Contributor

closes #714

@@ -18,6 +18,9 @@ def self.convex_hull(entities, as: :geojson, projected: false)
projected_geometries = entities.map { |e| e.geometry(as: :wkt, projected: true)}
geometry_collection = RGeo::Geographic.simple_mercator_factory.projection_factory.collection(projected_geometries)
convex_hull = geometry_collection.convex_hull
if (geometry_collection.size < 3)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

explain units (in degrees of lat/lng probably)

@doublestranded doublestranded merged commit ff6d271 into master Sep 2, 2016
@doublestranded doublestranded deleted the operator_bbox_fix branch September 2, 2016 04:17
@irees irees mentioned this pull request Sep 7, 2016
11 tasks
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.

if an operator only has two stops, its convex hull is a LineString rather than a Polygon
1 participant