Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aspose-com-gists/3d8540271b8374fb14e0e1a0e0fb69dc to your computer and use it in GitHub Desktop.
Save aspose-com-gists/3d8540271b8374fb14e0e1a0e0fb69dc to your computer and use it in GitHub Desktop.
using (var layer = Drivers.OsmXml.OpenLayer(dataDir + "fountain.osm"))
{
// Get features count
int count = layer.Count;
Console.WriteLine("Layer count: " + count);
// Iterate through all the features.
foreach (Feature feature in layer)
{
// Print to the console
Console.WriteLine(feature.Geometry.AsText());
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment