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

Read OSM PBF file #140

Open
Elgamily opened this issue May 7, 2022 · 0 comments
Open

Read OSM PBF file #140

Elgamily opened this issue May 7, 2022 · 0 comments

Comments

@Elgamily
Copy link

Elgamily commented May 7, 2022

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

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