Skip to content

Read OSM PBF file #140

@Elgamily

Description

@Elgamily

I'm trying to use the following code to read OSM PBF file:

                string filePath = DownloadFile(textBoxInput.Text);

                using (var fileStream = new FileInfo(@filePath).OpenRead())
                {
                    var source = new PBFOsmStreamSource(fileStream);
                    foreach (var element in source)
                    {
                        //Console.WriteLine(element.ToString());
                    }
                }

but I get an exception as you can see in the attached file.

Screenshot 2022-05-07 121625

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions