//Not supportig Z and M Values private static EsriPoint PointToEsriPoint(SqlGeometry geometry, Func <IPoint, IPoint> mapFunction) { var point = geometry.AsEsriPoint(); return(mapFunction == null ? point : (EsriPoint)mapFunction(point)); }