Comments (9)
Sorry there was a small typo, I did include the class name Tile in the PrepareSerializer call. See below:
static VectorTileParser()
{
Serializer.PrepareSerializer();
}
from mapbox-vector-tile-cs.
Apparently the contents of the angle braces get removed when submitted text in this textbox!!
from mapbox-vector-tile-cs.
@Tom-Cuthill For code samples use 3 backticks (top left of keyboard) at start and end. See syntax 'highlighting' over here.
static VectorTileParser()
{
Serializer.PrepareSerializer();
}
from mapbox-vector-tile-cs.
@Tom-Cuthill Maybe a workaround is to do all vector tile parsing on a single background thread. So, start a background thread and do all parsing there. The main app is not blocked that way and protobuf-net is accessed on a single thread.
from mapbox-vector-tile-cs.
Yeah, well the tiles are all loading in separate background threads, so collapsing them down to a single thread to do parsing is a bottleneck and far from ideal. The protobuf-net library supports multithreading, it is just its initialization which isn't. I'll look for another solution ...
from mapbox-vector-tile-cs.
Hi, I'm trying to reproduce the exceptions using your sample code in a UWP project (see https://github.com/bertt/vectortileparsing/), but I don't see any exception occurring in method parseTile.
So how can we reproduce the exception?
from mapbox-vector-tile-cs.
I'm using Visual Studio 2015 and the project is a Universal Windows 8.1 app. Unfortunately we have to support this platform for the next year or so.
PS. I tried using the official google's official protobuf C# library, using the protoc utility to generate a C# class to do the protobuf parsing. Since it builds the class from the official mapbox vector tile project's proto file (see here: https://github.com/mapbox/vector-tile-spec/blob/master/2.1/vector_tile.proto), the library doesn't need to parse any metadata and consequently runs faster. I've tested it and it runs fine in a multithreaded environment. NOTE: That if you follow this route, you have to update the syntax of the vector_tile.proto file to version 3 of proto.
from mapbox-vector-tile-cs.
Can you send a PR of using the Google protobuf lib?
from mapbox-vector-tile-cs.
closing because no activity
from mapbox-vector-tile-cs.
Related Issues (20)
- Bugs in Attribute Parser ... HOT 4
- Signed area calculation is incorrect ... HOT 3
- Test TestMapzenTileFromUrl fails HOT 1
- Decryption of Encrypted Vector Tiles HOT 1
- Zero integer values lost on serialization HOT 16
- To Protobuf-net 3.0 HOT 1
- Question: Net Core 3.1 compaibility HOT 1
- Add support for vector tile spec version 2 HOT 1
- C#: How to encode vector tiles to be used in a mapbox endpoint HOT 2
- Is Grpc.AspNetCore implementation in the roadmap? HOT 2
- could not support new tile format. HOT 1
- Mapbox-vector-tile does not support MemoryStream HOT 3
- Nested geometry data arrays are not identified. HOT 4
- add support for polygon inner- and outerrings HOT 4
- Not supported in a UWP application HOT 3
- Using The package on UWP application with .pbf extention files. HOT 1
- Support older versions with polygons having outer/inner ring NOT coded by winding order HOT 4
- .Net Standard support HOT 3
- [Question] Mapbox vector tile server solution HOT 17
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mapbox-vector-tile-cs.