Skip to content

Unhandled exception #243

@FransKnibbe

Description

@FransKnibbe

I am trying to use pg2b3dm (version 2.25.1.0 on Windows) to generate 3D tiles from a table that contains only linestrings. After some time, the following error occurs:

  Start generating tiles...
Creating tile: 7_20_127.glb  Unhandled exception. System.ArgumentNullException: Value cannot be null. (Parameter 'bytes')
   at System.ArgumentNullException.Throw(String paramName)
   at System.IO.File.WriteAllBytes(String path, Byte[] bytes)
   at pg2b3dm.QuadtreeTiler.GenerateTiles(BoundingBox bbox, Tile tile, List`1 tiles, Int32 lod, Boolean createGltf, Boolean keepProjection)
   at pg2b3dm.QuadtreeTiler.GenerateTiles(BoundingBox bbox, Tile tile, List`1 tiles, Int32 lod, Boolean createGltf, Boolean keepProjection)
   at pg2b3dm.QuadtreeTiler.GenerateTiles(BoundingBox bbox, Tile tile, List`1 tiles, Int32 lod, Boolean createGltf, Boolean keepProjection)
   at pg2b3dm.QuadtreeTiler.GenerateTiles(BoundingBox bbox, Tile tile, List`1 tiles, Int32 lod, Boolean createGltf, Boolean keepProjection)
   at pg2b3dm.QuadtreeTiler.GenerateTiles(BoundingBox bbox, Tile tile, List`1 tiles, Int32 lod, Boolean createGltf, Boolean keepProjection)
   at pg2b3dm.QuadtreeTiler.GenerateTiles(BoundingBox bbox, Tile tile, List`1 tiles, Int32 lod, Boolean createGltf, Boolean keepProjection)
   at pg2b3dm.QuadtreeTiler.GenerateTiles(BoundingBox bbox, Tile tile, List`1 tiles, Int32 lod, Boolean createGltf, Boolean keepProjection)
   at pg2b3dm.QuadtreeTiler.GenerateTiles(BoundingBox bbox, Tile tile, List`1 tiles, Int32 lod, Boolean createGltf, Boolean keepProjection)
   at pg2b3dm.Program.QuadtreeTile(String connectionString, InputTable inputTable, StylingSettings stylingSettings, TilesetSettings tilesetSettings, TilingSettings tilingSettings)
   at pg2b3dm.Program.<>c__DisplayClass1_0.<Main>b__0(Options o)
   at CommandLine.ParserResultExtensions.WithParsed[T](ParserResult`1 result, Action`1 action)
   at pg2b3dm.Program.Main(String[] args)

I don't know what the problem can be. I have checked the geometry and radius columns: they do not contain null values.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions