Closed peitili closed 2 years ago
@nvkelso for this change, do we need to reimport(re-index min zoom stuffs like that) the DB to verify?
No change to min_zoom or kind (that's done in different config files), this is just stripping out names with a later transform. So you can build using previous database state fine.
The result has been build to buildid=mini20211120ferry
This has a positive effect of dropping the properties, good job!
The tiles still have separate ferry and aeroway features, many more than expected. For ferries this is more extreme, for aeroways it's much better.
There are also many short segments.
drop_length_pixels: 0.1
Try changing that to 1.0 and see what happens.
@nvkelso please see my last commit, I changed this value in two sections.
The tiles still have separate ferry and aeroway features, many more than expected. For ferries this is more extreme, for aeroways it's much better.
This sounds like https://github.com/tilezen/vector-datasource/issues/2018
So let's look at the final 1px config change here in a build... but leave the "why still so many separate features" question for #2018.
@nvkelso just finished the build with the latest change and here are the result.
The new build id is mini20211102ferry2
(previously before commit 59d362e, the buildid was mini20211120ferry
)
overall, the number of features dropped a lot, for example for tile 12/2046/1362 number of roads dropped from 1599 to 1442 from px 0.1 change. But if we filter only ferry
then the change is not that much, only 1 difference.
Similarly tile 10/511/240, number of roads dropped from 1373 to 995. "kind"='ferry doesn't change, both are 46.
For tile 8/127/85 number of roads dropped from 690 to 459.
Visually the change is not significant (which is good).
Looking at the data that changed (was dropped) in tile v1/512/12/2046/1362.mvt:
It's tiny line segments that are being dropped (shown in blue here, at around 150% enlargement):
Zooming in to around 300% enlargement:
These segments are sometimes includes in previously merged features, sometimes stand alone. But they are very small and it's OK to drop them – as long as any surrounding features that remain are stroked with a pixel then any geometric gap isn't obvious in the client.
Zoom 8 at 8/127/85 with 44% less features in roads layer over the property stripping reduction of 12% (total MVT size savings of 20%)
Zoom 10 at 10/511/340 with 28% reduction in feature count in roads layer over the property stripping reduction of 2% (total MVT size savings of 0.5%):
The earlier zoom 12 had 10% reduction in feature count over the property stripping reduction of 10% (total MVT size savings of 5%).
number of integration tests failures is 92 and matches that on master, so OK to merge.
These two 512 px sized tiles for the ferry changes:
10/511/340 has 63 ferry lines now... but should just have 3 or 5 after (one per unique min_zoom value), though colour may come into play, there are 5 values there now. 12/2046/1362 has 58 ferry lines now... but should have 4 to 5 after, same deal For the aeroway changes, this 512 px sized tile:
8/127/85 has 82 lines now, but should just have a couple (based if it's an international airport or not)
2017