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

Add input support for shapefile file format #468

Open
wants to merge 15 commits into
base: master
Choose a base branch
from
Open

Add input support for shapefile file format #468

wants to merge 15 commits into from

Conversation

e-n-f
Copy link
Contributor

@e-n-f e-n-f commented Sep 21, 2017

No description provided.

@e-n-f
Copy link
Contributor Author

e-n-f commented Sep 26, 2017

Many malformed URL errors from mbview after

tippecanoe -z2 -f -o yes.mbtiles ne_110m_admin_0_countries.shp
blob:http://localhost:3000/5a1c4245-ff70-421f-b118-d80f273b8a0f:38 Uncaught URIError: URI malformed
    at decodeURIComponent (<anonymous>)
    at Uint8Array.toString (blob:http://localhost:3000/5a1c4245-ff70-421f-b118-d80f273b8a0f:38)
    at Pbf.readString (blob:http://localhost:3000/5a1c4245-ff70-421f-b118-d80f273b8a0f:41)
    at readValueMessage (blob:http://localhost:3000/5a1c4245-ff70-421f-b118-d80f273b8a0f:70)
    at readLayer (blob:http://localhost:3000/5a1c4245-ff70-421f-b118-d80f273b8a0f:70)
    at Pbf.readFields (blob:http://localhost:3000/5a1c4245-ff70-421f-b118-d80f273b8a0f:41)
    at new VectorTileLayer (blob:http://localhost:3000/5a1c4245-ff70-421f-b118-d80f273b8a0f:70)
    at readTile (blob:http://localhost:3000/5a1c4245-ff70-421f-b118-d80f273b8a0f:66)
    at Pbf.readFields (blob:http://localhost:3000/5a1c4245-ff70-421f-b118-d80f273b8a0f:41)
    at new VectorTile (blob:http://localhost:3000/5a1c4245-ff70-421f-b118-d80f273b8a0f:66)

Not sure what I'm doing wrong yet.

@jenningsanderson
Copy link

@ericfischer, not sure if helpful or not, but: I get this error exactly when I use tippecanoe to tile big geojsons of geo-tagged tweets. I'm usually generating big geojson files with Python and need to be sure all my values get HTML entity escaped before they are written to geojson for tippecanoe. Using this: urllib.parse.quote_plus() on all my values fixes this error. A totally different domain, but perhaps something in the shapefile (maybe a separator character?) is being encoded in the values and is causing this error? Good luck!

@e-n-f
Copy link
Contributor Author

e-n-f commented Sep 26, 2017

Ah, thank you @jenningsanderson! In this case it's probably because the Natural Earth shapefiles are in ISO-8859-1, not UTF-8, and I'm not checking for it properly!

I thought Tippecanoe was enforcing UTF-8 in GeoJSON, but maybe I messed something up there. If you see this again with GeoJSON, can you please let me know? Thanks!

@e-n-f e-n-f mentioned this pull request Apr 3, 2018
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.

2 participants