Skip to content

Loading a style cause duplicate attribute values found error #32

Description

@SioGabx

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é]

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions