Skip to content
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

Loading a style cause duplicate attribute values found error #32

Open
SioGabx opened this issue Nov 23, 2022 · 0 comments
Open

Loading a style cause duplicate attribute values found error #32

SioGabx opened this issue Nov 23, 2022 · 0 comments

Comments

@SioGabx
Copy link

SioGabx commented Nov 23, 2022

Hello, i have a issue when i'm loading this style to do a render : it trow "duplicate attribute values found" but this style load and render perfectly in maputnik.github.io
Whats wrong ?

Link to the style file : https://vectortiles.geo.admin.ch/styles/ch.swisstopo.leichte-basiskarte_world.vt/style.json
The pbf tile for exemple : https://vectortiles4.geo.admin.ch/tiles/ch.swisstopo.leichte-basiskarte.vt/v2.0.0/10/534/360.pbf

System.Exception
  HResult=0x80131500
  Message=Layer [transportation]: duplicate attribute values found
  Source=Mapbox.VectorTile.VectorTileReader
  Arborescence des appels de procédure :
   à Mapbox.VectorTile.VectorTileReader.getLayer(Byte[] data)
   à Mapbox.VectorTile.VectorTileReader.GetLayer(String name)
   à Mapbox.VectorTile.VectorTile.GetLayer(String layerName)
   à VectorTileRenderer.Sources.PbfTileSource.<baseTileToVector>d__15.MoveNext() dans C:\Users\franc\Source\Repos\VectorTileRenderer2\VectorTileRenderer\Sources\PbfTileSource.cs :ligne 101
   à System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   à System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   à System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   à VectorTileRenderer.Sources.PbfTileSource.<loadStream>d__13.MoveNext() dans C:\Users\franc\Source\Repos\VectorTileRenderer2\VectorTileRenderer\Sources\PbfTileSource.cs :ligne 73
   à System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   à System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   à System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   à VectorTileRenderer.Sources.PbfTileSource.<unzipStream>d__12.MoveNext() dans C:\Users\franc\Source\Repos\VectorTileRenderer2\VectorTileRenderer\Sources\PbfTileSource.cs :ligne 65
   à System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   à System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   à System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   à VectorTileRenderer.Sources.PbfTileSource.<GetVectorTile>d__11.MoveNext() dans C:\Users\franc\Source\Repos\VectorTileRenderer2\VectorTileRenderer\Sources\PbfTileSource.cs :ligne 41
   à System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   à System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   à System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   à VectorTileRenderer.Renderer.<Render>d__5.MoveNext() dans C:\Users\franc\Source\Repos\VectorTileRenderer2\VectorTileRenderer\Renderer.cs :ligne 167
   à System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   à System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   à System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   à Demo.WPF.MainWindow.<showPbf>d__20.MoveNext() dans C:\Users\franc\source\repos\VectorTileRenderer2\Static.Demo.WPF\MainWindow.xaml.cs :ligne 173

  Cette exception a été levée à l'origine dans cette pile des appels : 
    [Code externe]
    VectorTileRenderer.Sources.PbfTileSource.baseTileToVector(object) dans PbfTileSource.cs
    [Code externe]
    VectorTileRenderer.Sources.PbfTileSource.loadStream(System.IO.Stream) dans PbfTileSource.cs
    [Code externe]
    VectorTileRenderer.Sources.PbfTileSource.unzipStream(System.IO.Stream) dans PbfTileSource.cs
    [Code externe]
    VectorTileRenderer.Sources.PbfTileSource.GetVectorTile(int, int, int) dans PbfTileSource.cs
    [Code externe]
    VectorTileRenderer.Renderer.Render(VectorTileRenderer.Style, VectorTileRenderer.ICanvas, int, int, double, double, double, double, System.Collections.Generic.List<string>) dans Renderer.cs
    ...
    [Pile des appels tronqué]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant