Closed Rumpelstinsk closed 4 years ago
Hi, interesting scenario you have. What kind of work on the original pbf do you perform? At the moment this library only does the decoding not encoding.
Hi @bertt thanks for the answer.
Acording to the info in pbf, I need to calculate some extra points and lines, acording to some math rules and user settings criteria. But that was out of the question.
If the library cannot encode right now, i will search for a workaround :)
I'm using react-map in a project. This map, adds a tile layer:
As you can see this layer queries an endpoint which provides a tile-layer. This endpoint is made in C#, and simple returns a
Stream
which reads a valid pbf file. However I don't want to provide the base pbf, I need to work a little on it first.So I'm using your library to decode the pbf, and work with it, before returning the result to client. But, i don't know how to encode again the object, there is no
to-pbf-byte
method.I tried to serialice vector tile using BinaryFormatter, but it seems
VectorTileLayer
it's not marked as serializable, because it throws an exception.