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

Required geometry and centroids #11

Open
kiselev-dv opened this issue Jul 20, 2015 · 4 comments
Open

Required geometry and centroids #11

kiselev-dv opened this issue Jul 20, 2015 · 4 comments

Comments

@kiselev-dv
Copy link

There is an issue, when you looking for big admin. boundary or a way, encoding a full geometry into the answer may cause a big overhead, but this is a required field.

So in many cases, we want to return centroids (or any kind of reference points only). For such purposes, there is centroid field in GeoJSON geomery object. But I think it couldn't be used without coordinates of geometry.

So do someone see the way how not to return centroids instead of full geometries and not to break GeoJSON compatibility?

@yohanboniface
Copy link
Member

Good point!
I guess that if you return a "Point" geometry, instead of a "Polygon", for an admin boundary, it may be implicit that you are returning the centroid and not the original shape.
But implicit is rarelly a good thing, so I'm not saying this is the ultimate answer to the issue you raised.

@kiselev-dv
Copy link
Author

Yes, at least, in case you have returned a centroid instead of full geometry as geometry object, it should be clearly marked, that it's not an actual geometry.

@yohanboniface
Copy link
Member

Yes, at least, in case you have returned a centroid instead of full geometry as geometry object, it
should be clearly marked, that it's not an actual geometry.

Agreed.

@sgillies, any idea on this topic?

@sgillies
Copy link

Could the result features carry a geocoding.representative_point = true property to indicate that the geometry is only a representative point and not the complete geometry of the entity in your database and/or carry a link to the most complete and detailed GeoJSON data for the entity?

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

No branches or pull requests

3 participants