mapbox / mapbox-studio-classic

https://www.mapbox.com/mapbox-studio/
BSD 3-Clause "New" or "Revised" License
1.14k stars 229 forks source link

Simplified Shape File Error When Uploading as TileSet to Mapbox Account #1587

Open TiffanyFHA opened 5 years ago

TiffanyFHA commented 5 years ago

First I uploaded a zipped shape file (37 mb) to Mapbox as a Tileset, but I have to zoom in a lot to see the shapes in Power BI Desktop. So I used the mapshaper to simplify it and exported it as GeoJSON file with a smaller size, but when I tried to upload it to Mapbox as a Tileset, it threw an error like the attached screenshot "bounds west value must be between -360 and 360" errormessage

matuteiglesias commented 5 years ago

Same error but I was trying to upload a .geojson file. All my coordinates are longitudes around -60, is it possible that something on the projection info is sending the points away past the 360 degrees?

TiffanyFHA commented 5 years ago

Have no idea... Currently, very frustrated by this as we don't want to zoom in a lot just to see the shapes showing up and the display is not what we want... Since downsizing through mapshaper doesn't look like to work, I also tried to downsize the precision of the coordinates in kml format, but unfortunately, after I uploaded the kml file as a tilest, nothing shows up in Power BI desktop no matter how much I zoom in or out.... I checked everywhere to make sure everything up to requirements like field name, url, tileset name, property name.... Couldn't figure out why it just doesn't work.

matuteiglesias commented 5 years ago

@TiffanyFHA Solved it. I was forgetting to translate de coordinates from metric to lat lng for a few points, so that intead of -60 those were around 70000. It worked right after I corrected that.

TiffanyFHA commented 5 years ago

@TiffanyFHA https://github.com/TiffanyFHA is me :)

Sorry that I don't quite understand what you mean by "translate the coordinates from metric to lat lng..." do you mean that I should change those -60 to 70000 in the ESRI shape file? If yes, how can I change it since that's a zipped shaped file? I only know how to edit the kml file as I can only it in note...

On Sat, Oct 20, 2018 at 7:07 AM Matias Iglesias notifications@github.com wrote:

@TiffanyFHA https://github.com/TiffanyFHA Solved it. I was forgetting to translate de coordinates from metric to lat lng for a few points, so that intead of -60 those were around 70000. It worked right after I corrected that.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/mapbox/mapbox-studio-classic/issues/1587#issuecomment-431585001, or mute the thread https://github.com/notifications/unsubscribe-auth/Apzmq6L-1u2F1nn0rb28OsgJPhjdN6kyks5umy48gaJpZM4XHV0h .

matuteiglesias commented 5 years ago

Im saying that you make completely sure that all lat lng coordinate values in your file are between +-360

On Mon, Oct 22, 2018, 1:07 PM TiffanyFHA notifications@github.com wrote:

@TiffanyFHA https://github.com/TiffanyFHA is me :)

Sorry that I don't quite understand what you mean by "translate the coordinates from metric to lat lng..." do you mean that I should change those -60 to 70000 in the ESRI shape file? If yes, how can I change it since that's a zipped shaped file? I only know how to edit the kml file as I can only it in note...

On Sat, Oct 20, 2018 at 7:07 AM Matias Iglesias notifications@github.com wrote:

@TiffanyFHA https://github.com/TiffanyFHA Solved it. I was forgetting to translate de coordinates from metric to lat lng for a few points, so that intead of -60 those were around 70000. It worked right after I corrected that.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub < https://github.com/mapbox/mapbox-studio-classic/issues/1587#issuecomment-431585001 , or mute the thread < https://github.com/notifications/unsubscribe-auth/Apzmq6L-1u2F1nn0rb28OsgJPhjdN6kyks5umy48gaJpZM4XHV0h

.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/mapbox/mapbox-studio-classic/issues/1587#issuecomment-431899103, or mute the thread https://github.com/notifications/unsubscribe-auth/AQ9YVmev0qE7Pte6ycxnOgCXjnnVydmuks5unfs2gaJpZM4XHV0h .