-
Notifications
You must be signed in to change notification settings - Fork 117
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
Poorly encoded multipoints #144
Milestone
Comments
The bug is right here: mapnik-vector-tile/src/vector_tile_processor.ipp Lines 928 to 937 in 37f42a2
|
springmeyer
pushed a commit
that referenced
this issue
Aug 7, 2015
springmeyer
pushed a commit
that referenced
this issue
Aug 8, 2015
fixed in 4a3017c |
landed in master (and future v0.9.2) in 2f71ea9 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Currently in v0.9.x multipoint geometries are not encoded correctly. Multipoints are currently being encoded as:
Where
directive
is the command that stores thecommand
(e.g.move_to
in this case) and the length of repeated commands (number ofmove_to
commands). The problem is that thedirective
is always encodingcmd=move_to
andlength=1
which it not ideal.Instead multipoints should be encoded as:
Where directive is
cmd=move_to
andlength=4
(or more).This is likely a regression around the time of this merge.
While compliant decoders should (and do) handle this type of encoding, it is incorrect in the sense that it does not take advantage of the ability of the
directive
to tell the decoder about the # of repeated commands. This bug therefore makes it impossible to take advantage of this obvious optimization (for multipoints): #119The text was updated successfully, but these errors were encountered: