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

            if (coord != null)
            {
                ret = OgrGeometry.Distance(coord.ToOgrPoint());
            }
            return(ret);
        }
Esempio 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);
        }