nvkelso / natural-earth-vector

A global, public domain map dataset available at three scales and featuring tightly integrated vector and raster data.
https://www.naturalearthdata.com/
Other
1.76k stars 368 forks source link

Importing 110m Cultural Country Data to Mapbox gives "Input failed. Datasets don't support features outside longitude +/-180, latitude +/-90." #632

Open Spaxe opened 2 years ago

Spaxe commented 2 years ago

The Issue

I'm not able to import the 110m Cultural Boundaries Countries data into Mapbox studio, due to GeoJSON spec not supporting data points outside of the extent in the title.

I'm conscious that this isn't a support channel, and the data may not be faulty, but figured that this must be a common problem and decided to file an issue so we can knowledge share.

How to reproduce

  1. Download the 110m dataset (v.4.1.0 as of this issue).
  2. Upload the .shp, .dbf, and .prj files into Mapshaper.
  3. Export the data as-is, no changes, into GeoJSON. Save that file locally.
  4. Upload the GeoJSON file to Mapbox Studio > Datasets. This gives the error.

The 10m dataset doesn't work (file is too large for free accounts), and the 50m dataset gives no errors (this is a good workaround if that resolution works for you).

Potential questions

Workaround

As stated, the 50m Cultural data works with no issues on Mapbox, after exporting straight out of Mapshaper.

nvkelso commented 2 years ago

In the meantime, please clip the data with OGR or Mapshaper before importing to Mapbox.