-
Notifications
You must be signed in to change notification settings - Fork 435
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
Can't get tippecanoe to output polygons without simplification #609
Comments
Thanks for the test case. Whatever is going on here might also explain the mystery of #562. I'll take a look and figure out what is going on. |
@iandees Can you be more specific about the lat/lon of the particular buildings in this screenshot so I don't have to find them? |
Found them at 42.42662,-83.28476 |
👍 For what it's worth, I ran tile-reduce until it spit out one z12 tile and then killed it. I added the output FeatureCollection to QGIS alongside the original FeatureCollection and zoomed into the area of the z12 tile. Not sure where I ended up looking so I'm glad you found something :) |
I really think the problem here is just insufficient maxzoom. With a specified maxzoom of 12 and the default detail of 12, the tile resolution is only good to 360 / (2 ^ (12 + 12)) / .00000274 ≈ 7.83 feet. The original GeoJSON is specified to 15 decimal digits, which is clearly excessive, but 8 feet is not enough precision to represent buildings that are only 30 or so feet on a side very well, so rounding error is inevitable. I would suggest using (If you need to use z12 tiles, increase |
Ah interesting! The primary goal here is to use this for processing an OSM import, not necessarily for visualization. I'll increase the detail and see what happens. |
This time around I used
and got the same sort of thing: |
Increasing to z15 tiles seems to have helped, thanks for the suggestion. I had to extract the OSM QA tiles into z15 tiles, too. I'll close here. |
@iandees You said |
Ah, ok. That's a touch confusing – the name of the flag implies that you're setting the zoom level at which you get full detail. So I was assuming that since I was rendering z12 tiles I would get full detail. |
Thanks. I'll try to make it clearer in the README what the flag does. |
PS Thanks for your time! The Tippecanoe+tile-reduce workflow is a fun to play with and easy to scale up way of doing OSM imports. |
I'm trying to generate a dataset of buildings in Detroit to use with OSM QA Tiles for the Detroit Mapping Challenge (osmus/detroit-mapping-challenge#4).
I took a shapefile from their open data site, used
ogr2ogr
to convert it to GeoJSON. The output of that is available here.I then pass that through
tippecanoe
:I then run a
tile-reduce
job that dumps out a tile's worth straight to GeoJSON through this map function:The output FeatureCollection is simplified, even though it shouldn't be (the green layer here is the output from tippecanoe via tile-reduce):
The text was updated successfully, but these errors were encountered: