Ejemplo n.º 1
0
        public double Distance(ICoordinate coord)
        {
            double ret = 0;

            if (coord != null)
            {
                ret = OgrGeometry.Distance(coord.ToOgrPoint());
            }
            return(ret);
        }
Ejemplo n.º 2
0
        public IGeometry GetPoint(ICoordinate coordinate)
        {
            Geometry geometry = null;

            OSGeo.OGR.Geometry ogrGeometry = coordinate?.ToOgrPoint();
            if (ogrGeometry != null)
            {
                geometry = new Geometry(ogrGeometry);
            }
            return(geometry);
        }