gavinr / world-countries-centroids

Center points of world countries - CSV and GeoJSON
https://gavinr.github.io/geojson-viewer/?url=https://cdn.jsdelivr.net/gh/gavinr/world-countries-centroids@v1/dist/countries.geojson
MIT License
31 stars 15 forks source link

The centroids of some countries seem not right. #8

Closed qzhang6862 closed 1 year ago

qzhang6862 commented 1 year ago

The centroid of New Zealand seems the centroid of the South Island only. The centroid of Malaysia seems the centroid of Sarawak and Sabah. The centroid of Indonesia seems the centroid of Indonesian Kalimantan. The centroid of the Philippines seems the centroid of Luzon Island. The centroid of Italy and Greece seems the centroid of the mainland only without islands. ...

merwok commented 1 year ago

This was done on purpose: https://github.com/gavinr/world-countries-centroids/issues/7#issuecomment-1229599050

qzhang6862 commented 1 year ago

I see. But a centroid is not necessary to be in a polygon. I would like a version of this application with parameters like withinPolygon=true/false.

gavinr commented 1 year ago

Thank you for the feedback.

This is a duplicate of: https://github.com/gavinr/world-countries-centroids/issues/7#issuecomment-1411180779