I have an in-house .NET library which processes geometry data in GeoAPI form (https://github.com/NetTopologySuite/GeoAPI). Within this library I have a method which I need to call which is expecting a GeoAPI.Geometries.IGeometry parameter.
I'm processing OSM PBF data using the PbfReader in SpatialLite.Osm (http://spatial.litesolutions.net/index.html). This gives me objects which implement SpatialLite.Core.API.IGeometry.
My question is how can acheive a conversion from SpatialLite.Core.API.IGeometry to GeoAPI.Geometries.IGeometry? I've made a few searches and found nothing to help me. I can go about creating a conversion procedure myself but it strikes me that there might be a better way.
Any suggestions?