public double Distance(ICoordinate coord) { double ret = 0; if (coord != null) { ret = OgrGeometry.Distance(coord.ToOgrPoint()); } return(ret); }
public IGeometry GetPoint(ICoordinate coordinate) { Geometry geometry = null; OSGeo.OGR.Geometry ogrGeometry = coordinate?.ToOgrPoint(); if (ogrGeometry != null) { geometry = new Geometry(ogrGeometry); } return(geometry); }